Prev | Current Page 207 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"

Other
Table 8.2 lists the key modifier symbols that can be applied to a search term
Table 8.2: Modifiers for search terms can be applied to control how the parser uses the term when searching.
Modifier Symbol Example Description
Wildcards ? and * H?t h*t ? is a single character placeholder and *
represents multiple characters
Proximity ~x ???php power???~10 The terms must be within a certain number of
words apart (10 in the example)
Inclusive Range fieldname:[x TO y] category:[skiing TO surfing] Find all documents whose field values are
between the upper and lower bounds specified
Exclusive Range fieldname:{x To y} published:[20070101 TO 20080101] Find all documents whose field values are
greater than the specified lower bound and less
than the upper bound. This does not include the
bounds.
Term Boost ^x ???Rob Allen???^3 Increase the relevance of a document containing
this term. The number determines how much of
a increase in relevance is given.
Each modifier in table 8.1 affects only the term to which it is attached. Operators on the other hand affect
the make up of the query. The key operators available are listed in Table 8.3.
Table 8.3: Boolean operators affect the make up of the query and provide the power to refines the search
Operator Symbol Example Description
Required + +php power The term after the + symbol must exist in the document.


Pages:
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
yerba mate ABC wokar Accept nokia