eZ Community » Forums » Developer » ezFind php filter selection
expandshrink

ezFind php filter selection

ezFind php filter selection

Thursday 01 December 2011 11:14:43 am - 3 replies

I tried to filter object by ezFind in PHP with multiple attribute values. Example: $filter[] = "application/statussad.gif Emoticon\"Order placed\" OR \"Draft\"blunk.gif Emoticon"; This is not working properly and I don't know how to fix it.

Monday 25 June 2012 2:18:46 pm

Hello

I would like to know if you found a solution because I have the same problem...

Thank you

Tuesday 26 June 2012 1:35:42 pm

Can you add some more code detail around the class methods you are using?

Wednesday 27 June 2012 9:48:01 am

I solved my problem by using AND and OR, like this :

 {set $search=fetch( ezfind,search,
                                hash(   'query', $search_text,
                                        'offset', $view_parameters.offset,
                                        'limit', $page_limit,
                                        'facet', $defaultSearchFacets,
                                        'filter', array('or', 'attr_categorie_s:"2 étoiles"', 'attr_categorie_s:"3 étoiles"'),
                                        'class_id',54,
                                        'subtree_array', array( 10733 ),
                                        'spell_check', array( true() )
                                    )
                                )
            }  

And with a combination of 'and' and 'or' it works fine (with ezfind 2.6).

Thank you

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from