Boolean operator problem

Submitted by Peter_H on Tue, 2010-06-29 14:26.Troubleshooting

I can't get the boolean logic operator to work. I have selected 'AND mode for all keywords' under the 'Configure search' > 'search options' tab, but is does not seem to have any effect on the seachresults. Also appending '&booleanOperator=and' to the search url did not work.

I have combined the Q en LQ parameters in the same URL, the Q parameter contains the date ranges, the LQ parameter the words to be searched for in Lucene syntax.

When I put AND between the words manually there is no problem at all, also combining AND and OR seems to work correctly.

Letting the PHP script (which sends the query to DBSight) add the AND operator between the keywords is no option, it did not work not as expected when using complex queries.

Do you have any idea on how to fix the issue?

Thanks in advance.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Submitted by will on Tue, 2010-06-29 20:56.

I suspect you may have something wrong assumptions.

The booleanOperator would only work for q=..., not for lq=...

On the contrary, DBSight's query q=... does not take AND or OR in the query syntax. Only the Lucene's lq=... takes the AND and OR.

Submitted by dbuser on Sat, 2010-08-14 03:07.

Could you add the option to use Lucenes SetDefaultOperator?

Submitted by will on Sat, 2010-08-14 23:36.

Thanks for this suggestion!

We have added this to 3.2.5 release. Now you can use

 &lqBooleanOperator=and

to set boolean operator for lucene query lq.

Submitted by dbuser on Sun, 2010-08-15 03:29.

wow thx :)