eZ Community » Forums » Extensions » eZ Find » eZ Find query: OR condition between...

eZ Find query: OR condition between words/phrases (flection)

eZ Find query: OR condition between words/phrases (flection)

Friday 25 September 2009 7:56:43 pm - 2 replies


Is it possible to create an eZ Find query which would search for either query words of phrases (OR condition) rather than for content that contains all of them (AND condition)? I'm not sure if this isn't against solr logic - I would be grateful for any feedback on this issue.

What I'm trying to create is a multi-step search. By default, I would like to try search for all and precise phrases the user gave. However, if none/few results pop out, I would like to run query #2, which would include all available flection of those words. Step #3: thesaurus based reladed meanings with their flection. The problem is that flection of a word can result in tens of words, and no content object is likely to have them all at the same time.


Modified on Friday 06 November 2009 5:03:25 pm by Piotr Karaƛ

Friday 25 September 2009 8:39:59 pm

Just tried to force q.op=OR option in ezfeZPSolrQueryBuilder::buildSearch() method, but it didn't seem to change anything... Chances are, though, that I did something wrong... Any thoughts?

Sunday 27 September 2009 10:39:41 am

How about simple OR-separated search query string? Would it be that simple? Not sure of the rules, but it... works blunk.gif Emoticon


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

36 542 Users on board!

Forums menu

Proudly Developed with from