Advanced Search
Along with simple searches, the Oxygen Feedback search engine also supports advanced query syntax that allows users to create more complex, flexible, and useful queries to make the search more precise. This topic describes the advanced search features that you can use searching in WebHelp output that is configured to use the Oxygen Feedback search engine.
Phrase Search
A query is divided into terms and operators, comprising two term categories: Single Terms and Phrases. A Single Term pertains to an individual word (i.e. "test" or "hello"). A Phrase denotes a cluster of words enclosed within double quotation marks (i.e. "hello dolly").
When using a phrase search, the search will only return results where the exact phrase is found.
Field Search
During a search, you have the option to specify a particular field. To
search within any given field, you can input the field name followed by a colon
(:
) and then the term you are trying to find.
title:"The Right Way"
title:Do it right
will solely retrieve "Do" from the title field. Meanwhile, it will locate both "it" and
"right" within the default field (in this case, the text field, which stores all
the text from the document).- title - The title of the document.
- description - The description of the document.
- text - The raw text content of the document.
- keywords - The keywords of the document.
Wildcard Search
The Oxygen Feedback search engine facilitates both single and multiple character wildcard searches within individual terms (these are not applicable within phrase queries).
For a single character wildcard search, use the ?
symbol. For a multiple character wildcard search, use the *
symbol.
me?t
test*
te*t
*
or ?
symbol as the first character.Regular Expression Search
You can use regular expression searches to match patterns enclosed within forward slashes ("/").
/[mb]oat/
Proximity Search
The Oxygen Feedback search engine offers the capability to identify words that are situated within a defined distance of each other. To conduct a proximity search, add the tilde symbol (~) to the end of a phrase.
"dita webhelp"~10
Boosting
To emphasize a specific term's importance, use the ^
symbol followed by a boost factor (a numerical value) at the end of the term. A higher boost
factor increases the term's significance.
^
symbol with a boost
factor after the term:dita^4 webhelp
This adjustment elevates the prominence of documents featuring the term "dita."
"dita webhelp"^4 "feedback search"
The default boost factor is 1, and while it must be a positive value, it can also be less than 1 (e.g. 0.2).
Boolean Operators
The OR operator functions as the default conjunction operator. If
no Boolean operator is present between two terms, the OR operator is assumed (the
||
symbol can also replace the term OR). The OR operator
links two terms and identifies a matching document if either term is present. This is
comparable to a set union.
"dita webhelp" dita
"dita webhelp" OR dita
Operators:
- AND
-
The AND operator locates documents where both terms appear anywhere within a single document. This equates to a set intersection. The
&&
symbol can be used in place of the term AND.For example, to find documents that contain "dita webhelp" and "feedback search," use the following query:"dita webhelp" AND "feedback search"
- +
-
The + (or required) operator requires that the term after the + symbol exist somewhere in a the field of a single document.
For example, to search for documents that must contain "dita" and may contain "webhelp", use the following query:+dita webhelp
- NOT
-
The NOT operator excludes documents that contain the term after "NOT". This is equivalent to a difference using sets. The
!
symbol can be used in place of the word NOT.To search for documents that contain "dita webhelp" but not "feedback search", use the following query:"dita webhelp" NOT "feedback search"
Note: The NOT operator cannot be used with just one term. For example, the following query will return no results:NOT "dita webhelp"
- -
-
The - (or prohibit) operator removes documents that contain the term following the - symbol.
For example, to find documents that feature "dita webhelp" while excluding "feedback search," use the following query:"dita webhelp" -"feedback search"
Field Grouping
title:(+dita +"feedback search")
Escaping Characters
The Oxygen Feedback search engine includes the capability to
escape special characters that are integral to the query syntax. The present set of special
characters include: && || ! ( ) { } [ ] ^ " ~ * ? : \
\(1\+1\)\:2