KB Version:

Page Navigation

Related Links

Learning Levels

Most Read

Announcements RSS Feed of Announcements

Search

Digest

Search Resources/Topics

There are several concepts related to search on the Cascade Server Knowledge Base. Below are links to our current search resources:

Advanced Search

Basic Search

Search and Replace

Type-Ahead Search

Concept

General Search Syntax Information

With the release of Cascade Server 5.7.3, users can now use wild cards and the following specific search characters to construct more powerful search queries:
+, -, !, (, ), {, }, [, ], ^, ", ~, *, ?, :, \

Technical

Detailed Search Syntax Information

These characters hold special meaning in search queries allowing logical combinations of search terms like (a OR b) AND c and search language features. In order to actually search for one of the special characters (e.g. they want to find "+" character), users will need to "escape" the special character by placing a \ in front of it. Therefore, the query to find the "+" character would need to look like this:

\+

or

*\+* (if we want to find + character that is not standing alone.)

If a user wants to find an asset with path "/path/to/asset", by typing just the end of the path "/to/asset", they will need to put a wildcard * before their query:

*/to/asset

If a user wants to find all assets in folder with path "/path/to", he will need to put a wildcard * after the query:

path/to/*

Paths in Cascade Server's search index are stored without the leading slash. Therefore, when looking for a specific asset with path "/path/to/asset" without wildcards a user should enter:

path/to/asset

instead of:

/path/to/asset

Search Syntax Examples

As was mentioned in the general search syntax information section above, it is now possible to look for assets that contain multiple terms at once. To do this, we use keyword AND. Therefore, in order to find a page that contains words "Mr" and "Smith" we use the following query:


Mr AND Smith

If you want to find all pages that contain either word "Mr" or "Mrs", we can use keyword OR:

Mr OR Mrs

If you want to find all pages that contain word "Smith" and either "Mr" or "Mrs", we should use parenthesis for that:

(Mr OR Mrs) AND Smith

Only keywords in the Cascade type-ahead search are case sensitive. If we want to find assets that contain the actual word "AND", we can simply use lowercase "and,"

and

which will not be taken as a keyword but will find all assets with occurences of "and", "And", "AND" etc.

The logical keywords AND and OR need text before them and after them. Query that ends with AND or OR will result with an error, like:

Something AND

will result with:

Could not parse the search query

in type ahead search. The full error message will appear when we submit the search (by hitting the "Enter" key). For example, 

Search failed: Cannot parse 'Something AND': Encountered "" at line 1, column 13. Was expecting one of:  ... "+" ... "-" ... "(" ... "*" ...  ...  ...  ...  ... "[" ... "{" ...  ...  ... "*" ...

It is also possible to find a specific phrase using the quotes. For example, we might want to find "Hello World!":

"Hello World!"

For more detailed information and explanation, please visit: http://lucene.apache.org/java/2_4_0/queryparsersyntax.html

Related Links