Login

Operands to use with PageSeach control

Versions: 4.60, FAQ number: 171, Old FAQ number: 9882

Which operands can be used with the PageSeach control?

This information is valid for EPiServer 4.60 and later versions, although most of the information here is also valid for earlier versions.

Simple searches

When the search string only contains words and no operands the OR operator will be used.

Searching for Results
abc Pages containing "abc".
abc def Pages containing "abc" OR "def".

The + and - operands

These operands are used to mark words that MUST or MUST NOT occur on a page in order for it to be considered a hit.

Searching for Results
+abc +def Pages containing "abc" AND "def".
+abc -def Pages containing "abc" BUT NOT "def", equivalent to the row below.
abc -def Pages containing "abc" BUT NOT "def", equivalent to the row above.
+abc def Pages containing "abc", the presence of "def" is irrelevant and does not affect the number of hits or the ranking of hits.

Match whole word

With the "Match whole word" checkbox unchecked all words are implicitly considered to have a wildcard at the end, i.e. a search for "abc" will generate a hit for the word "abcdef". When the checkbox is checked hits will only be generated if a word on the page matches a word in the query exactly. User-entered wildcards can be used regardless of the value of this switch.

The * operand

The * character is used as a wildcard in search queries. Wildcards can be used regardless of the setting of the "Match whole word" switch described above.

Searching for Results
ab* Pages containing words beginning with "ab".
a*c Pages containing words beginning with "a" and ending with "c".
*bc Pages containing words ending with "bc".

Phrase search, the " operand

The PageSearch control does not support phrase searches. This is because phrase searches are very costly and demands that all searchable properties on a page will have to be scanned to determine if the words occur in the same sequence as in the query.

EPiTrace logger