Some characters are recognized as search modifiers when found
immediately after the closing double quote of a phrase, as in
"some term"modifierchars
. The actual "phrase"
can be a single term of course. Supported modifiers:
l
can be used to turn off stemming (mostly makes sense withp
because stemming is off by default for phrases, but see alsox
further down).o
can be used to specify a "slack" for bothphrase
andproximity
searches: the number of additional terms that may be found between the specified ones. Ifo
is followed by an integer number, this is the slack, else the default is 10. The default slack (with noo
) is 0 forphrase
searches and 10 forproximity
searches.p
can be used to turn an orderedphrase
search into an unorderedproximity
one. Example:"order any in"p
. You can find a little more detail aboutphrase
andproximity
searches here.s
(1.22) can be used to turn off synonym expansion, if a synonyms file is in place.x
(1.33.2) will enable the expansion of terms inside a phrase search (the default is for phrases to be searched verbatim). Also see thestemexpandphrases
in the configuration section, for changing the default behaviour.A weight can be specified for a query element by specifying a decimal value at the start of the modifiers. Example:
"Important"2.5
.
The following only make sense on indexes which are capable of case and diacritics sensitivity (not the default):
C
will turn on case sensitivity.D
will turn on diacritics sensitivity (if the index supports it).e
(explicit) will turn on diacritics sensitivity and case sensitivity, and prevent stem expansion.