Prev | Current Page 208 | Next

Rob Allen, Nick Lo, and Steven Brown

"Zend Framework in Action"


Prohibit - Documents containing the term after the ??“ symbol are excluded from
the search results.
AND AND or && php and power Both terms must exist anywhere in the document
OR OR or || php or html Either term must be present in all returned documents.
NOT NOT or ! php not java Only include documents that contain the first term but not the second
term.
Careful use of the Boolean operators can create very complex queries however, in the ???real world??? most
users are unlike to use more than one or two operators in any given query. The set of Boolean operators
supported is pretty much the same as that used by major search engines, such as Google, and so your users will
have a degree of familiarity. We will now look at the other way to creating a search query: programmatic
creation.
Licensed to Menshu You
Please post comments or corrections to the Author Online forum at
http://www.manning-sandbox.com/forum.jspa?forumID=329
Programmatically creating search queries
A programmatic query involves instantiating the correct objects and putting them together. There are a lot
of different objects available that can be combined to make up a query. Table 8.4 lists search query objects that
can be used.
Table 8.4: Search query objects
Type Example and Description
Term Query A term query is used to search for a single term.


Pages:
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
przeszycia łódź hotele praga Wczasy nad morzem mallow.histod.pl Hotele spa