|
You can search for any word or phrase on our Web site by typing the word or phrase into the query form and clicking the button to execute search. The search returns a list of files that contain the word or phrase no matter where they appear in the text. Tips for SearchingAt its simplest, a query can be just a word or a phrase. But with the tips on this page, you can expand the focus of your query to give you more complete results. These tips will get you started with basic query language of Microsoft Index Server.
These hints will get you started, but for more complex queries and more examples, see the MSDN web site. The following information is taken from that site. Content QueriesContent queries search text-type properties of documents. Content queries process the textual content of a sequence of words in one of two ways. A series of words such as "Web server administrator" can be treated as a phrase, where the proximity of words and the word order is significant (no intervening words, and words must appear in a specific order). Alternatively, the words can be treated independently, ignoring the order and proximity of the words. To handle both cases, phrase and non-phrase (free-text) interpretation of textual content, Dialect 2 has two modes for content queries: phrase and freetext. It uses the two following text interpretation tags. {phrase} text {/phrase}
{freetext} text {/freetext}
The {phrase} tag specifies the use of the phrase mode, and the text within the tags is considered to be a single entity. The search engine treats the word sequence and position as significant. The {freetext} tag specifies the use of free-text mode, where the word sequence and position are insignificant, and which includes word stemming. The {phrase} and {freetext} tags are mutually exclusive and cannot be embedded or nested. The default mode of Dialect 2, if no tag is used, is free-text mode. (In Dialect 1, the default mode is phrase mode.) To indicate free-text mode in the short form, either leave off any enclosing quote marks around the text or use the dollar sign ($) with the Contents property. The following table summarizes the text modes and their long and short forms.
The following table illustrates examples of the use of text modes in content queries.
CONTAINS OperatorThe CONTAINS operator indicates a search for any of the specified words or phrases within a particular property. If no operator is specified, the CONTAINS operator is assumed. The CONTAINS operator contrasts with the relational operator "equals to" (=), which requires a match of the specified words or phrases and only those words or phrases. The CONTAINS operator is available only in its English spelling. The following examples illustrate the use of the CONTAINS operator.
|
© Numerical Algorithms Group
Visit NAG on the web at:
www.nag.co.uk (Europe and ROW)
www.nag.com (North America)
www.nag-j.co.jp (Japan)
http://www.nag.com/Advisory/Query_Syntax_Help.asp