lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukas Kahwe Smith <...@pooteeweet.org>
Subject optional vs. probhibited aka standard vs. dismax handler
Date Tue, 29 Jun 2010 07:41:04 GMT
Hi,

I am a bit confused about the +/- syntax. Am I understanding it properly that when using the
normal query handler + means required and - means prohibit where as in the dismax handler
+ means required and - means optional?

http://lucene.apache.org/java/2_9_1/queryparsersyntax.html
The "+" or required operator requires that the term after the "+" symbol exist somewhere in
a the field of a single document.
The "-" or prohibit operator excludes documents that contain the term after the "-" symbol.

http://wiki.apache.org/solr/DisMaxRequestHandler
Quotes can be used to group phrases, and +/- can be used to denote mandatory and optional
clauses ... but all other Lucene query parser special characters are escaped to simplify the
user experience.

regards,
Lukas Kahwe Smith
mls@pooteeweet.org




Mime
View raw message