Forums / Developer / Advanced search OR

Advanced search OR

Author Message

Julien Plesniak

Wednesday 18 July 2007 2:34:46 am

Hello,
for beginning, sorry for my english.

I want to do an advanced search with OR condition.

Example: If i search "word letter", i want to return all the results who contains "word" OR "letter". Is it possible in ez-publish 3.9.2? or how modify the search engine to do that?

I think there is one personn which do that.

Thanks for help

André R.

Wednesday 18 July 2007 5:04:47 am

The included search engine does not support OR search, and it is not very easy to implement as far as I have seen.
The simplest solution would be to look into the the alternative search engines. You currently have Lucene, and soon ( within a month ) Solr will be added as a alternative.

But most search engines will use AND search as default search anyway, just so you know.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Julien Plesniak

Wednesday 18 July 2007 5:26:52 am

hello,

thanks for your answer. I try to modify the search engine but it is very difficult. I try to install Lucene today, i hope that works :)

Thanks

Julien Plesniak

Wednesday 18 July 2007 9:07:15 am

I have a question before installing this plugin.

I want to do a search with or condition but like this:

I have a textbox which search on the attribute "Name" (if we write "word letter", i want to return all the results who contains "word" OR "letter")

BUT i want to have an another textbox with search on the attribute "Color" (with the same research)

An example that i want:

(Name = word OR name = letter) AND ( color="blue OR color="white")

It is possible with this plugin?

thanks