Query Languages-WPS Office
Query Languages-WPS Office
5
Single-Word Queries
• The most elementary query that can be formulated
in a text retrieval system is the word
• All documents that include this word are retrieved.
• Documents may be ranked by the frequency of this
word in the document.
• A query is a single word.
• Usually used for searching in document images
• Simplest form of query.
• A query is formulated by a word
• A document is formulated by long sequences of words
Phrase Queries
• A query is a sequence of words treated as a single unit.
• Also called “literal string” or “exact phrase” query.
• Phrase is usually surrounded by quotation marks.
• All documents that include this phrase are retrieved.
• Usually, separators (commas, colons, etc.) and common words
(e.g., “a”, “the”, “of”, “for”…) in the phrase are ignored.
• In effect, this query is for a set of words that must appear in
sequence.
• Allows users to specify a context and thus gain precision.
• “e.g, enhance retrieval