You can search for any word or phrase on a Web site by typing the word or phrase into a query form and clicking the button to execute the query (for example, the Execute Query button on the sample query form). This section covers the following topics:
Searches produce a list of files that contain the word or phrase no matter where they appear in the text. This list gives the rules for formulating queries:
Boolean and proximity operators can create a more precise query.
| To Search For | Example | Results |
|---|---|---|
| Both terms in the same page | access and basic Or access & basic |
Pages with both the words access and basic |
| Either term in a page | cgi or isapiOr cgi | isapi |
Pages with the words cgi or isapi |
| The first term without the second term | access and not basicOr access & ! basic |
Pages with the word access but not basic |
| Pages not matching a property value | not @size = 100Or ! @size = 100 |
Pages that are not 100 bytes |
| Both terms in the same page, close together | excel near projectOr excel ~ project |
Pages with the word excel near the word project |
Hints:
Note The symbols (&, |, !, ~) and the English keywords AND, OR, NOT, and NEAR work the same way in all languages supported by Index Server. Localized keywords are also available when the browser locale is set to one of the following six languages:
| Language | Keywords |
|---|---|
| German | UND, ODER, NICHT, NAH |
| French | ET, OU, SANS, PRES |
| Spanish | Y, O, NO, CERCA |
| Dutch | EN, OF, NIET, NABIJ |
| Swedish | OCH, ELLER, INTE, NÄRA |
| Italian | E, O, NO, VICINO |
Note The NEAR operator can be applied only to words or phrases.
Wildcard operators help you find pages containing words similar to a given word.
| To Search For | Example | Results |
|---|---|---|
| Files that match free-text | $contents how do I print in
Microsoft Excel? |
Pages that mention printing and Microsoft Excel. |
The query engine supports vector space queries. Vector queries return pages that match a list of words and phrases. The rank of each page indicates how well the page matched the query.
| To Search For | Example | Results |
|---|---|---|
| Pages that contain specific words | light, bulb |
Files with words that best match the words being searched for |
| Pages that contain weighted prefixes, words, and phrases | invent*, light[50], bulb[10],
"light bulb"[400] |
Files that contain words prefixed by invent, the words light, bulb, and the phrase light bulb (the terms are weighted) |
With property value queries, you can find files that have property values that match a given criteria. The properties over which you can query include basic file information like file name and file size, and ActiveX properties including the document summary (information) that is stored in files created by ActiveX-aware applications.
There are two types of property queries:
This section covers the following topics:
Property names are preceded by either the at (@) or number sign (#) character. Use @ for relational queries, and # for regular expression queries.
If no property name is specified, @contents is assumed.
Properties available for all files include:
| Property Name | Description |
|---|---|
| All | Matches words, phrases, and any property |
| Contents | Words and phrases in the file |
| Filename | Name of the file |
| Size | File size |
| Write | Last time the file was modified |
ActiveX property values can also be used in queries. Web sites with files created by most ActiveX-aware applications can be queried for these properties:
| Property Name | Description |
|---|---|
| DocTitle | Title of the document |
| DocSubject | Subject of the document |
| DocAuthor | The documents author |
| DocKeywords | Keywords for the document |
| DocComments | Comments about the document |
For a complete list of property names, see the List of Property Names later on this page.
Relational operators are used in relational property queries.
| To Search For | Example | Results |
|---|---|---|
| Property values in relation to a fixed value | @size < 100 |
Files whose size matches the query |
| Property values with all of a set of bits on | @attrib ^a 0x820 |
Compressed files with the archive bit on |
| Property values with some of a set of bits on | @attrib ^s 0x20 |
Files with the archive bit on |
| To Search For | Example | Results |
|---|---|---|
| A specific value | @DocAuthor = Bill Barnes |
Files authored by Bill Barnes |
| Values beginning with a prefix | #DocAuthor George* |
Files whose author property begins with George |
| Files with any of a set of extensions | #filename *.|(exe|,dll|,sys|) |
Files with .exe, .dll, or .sys extensions |
| Files modified after a certain date | @write > 96/2/14 10:00:00 |
Files modified after February 14, 1996 at 10:00 GMT |
| Files modified after a relative date | @write > -1d2h |
Files modified in the last 26 hours |
| Vectors matching a vector | @vectorprop = { 10, 15, 20 } |
ActiveX documents with a vectorprop value of { 10, 15, 20 } |
| Vectors where each value matches a criteria | @vectorprop >^a 15 |
ActiveX documents with a vectorprop value in which all values in the vector are greater than 15 |
| Vectors where at least one value matches a criteria | @vectorprop =^s 15 |
ActiveX documents with a vectorprop value in which at least one value is 15 |
Regular expressions in property queries are defined as follows:
( opens a group. Must be followed by a matching ).
) closes a group. Must be preceded by a matching (.
[ opens a character class. Must be followed by a matching (un-escaped) ].
{ opens a counted match. Must be followed by a matching }.
} closes a counted match. Must be preceded by a matching {.
, separates OR clauses.
* matches zero or more occurrences of the preceding expression.
? matches zero or one occurrences of the preceding expression.
+ matches one or more occurrences of the preceding expression.
Anything else, including |, matches itself.
^ matches everything but following classes. Must be the first character.
] matches ]. May only be preceded by ^, otherwise it closes the class.
- range operator. Preceded and followed by normal characters.
Anything else matches itself (or begins or ends a range at itself).
|{m|} matches exactly m occurrences of the preceding expression. (0 < m < 256).
|{m,|} matches at least m occurrences of the preceding expression. (1 < m < 256).
|{m,n|} matches between m and n occurrences of the preceding expression, inclusive. (0 < m < 256, 0 < n <
256).
| Example | Results |
|---|---|
@size > 1000000 |
Pages larger than one million bytes |
@write > 95/12/23 |
Pages modified after the date |
Apple tree |
Pages with the phrase apple tree |
"apple tree" |
Same as above |
@contents apple tree |
Same as above |
Microsoft and @size > 1000000 |
Pages with the word Microsoft that are larger than one million bytes |
"microsoft and @size > 1000000" |
Pages with the phrase specified (not the same as above) |
#filename *.avi |
Video files (the # prefix is used because the query contains a regular expression) |
@attrib ^s 32 |
Pages with the archive attribute bit on |
@docauthor = John Smith |
Pages with the given author |
$contents why is the sky blue? |
Pages that match the query |
@size < 100 & #filename *.gif |
Graphics Interchange Format (GIF) files less than 100 bytes in size |