Search Operators

Funnelback's query language supports a number of operators that can be used to enhance the search query. This chapter outlines the operators available, shown in the table below.

Search Operator    Query Expression 
Phrase "term1 term2"  
Dysjunction [ term1 term2 ]  
Negation term1 !term2  
Mandatory Exclusion term1 -term2  
Mandatory Inclusion term1 +term2   
Scoped Mandatory Inclusion   |term1 |term2  
Proximity `term1 term2`  
Truncation *term1* *term2*  
Metadata class:query  
Date d<01jan2010  

Phrase Operator

A phrase can be specified by using quotation marks ( " ) around the search query. Using this operator specifies that the words within the quotation marks will be treated as a phrase, with the search displaying results that contain this phrase in full.

"squiz matrix" 

This search will only return documents containing the full phrase squiz matrix.  

Dysjunction Operator

This operator acts as an OR rule, with the search displaying results that have at least one of the query terms.

[ matrix labs ] squiz 

A fully matching result of this search will include the word squiz and one or both of either matrix or labs.

Negation Operator

This operator allows you to exclude results that contain a negated query, marked with an exclamation mark ( ! ).

squiz !matrix 

A fully matching result of this search will include the word squiz  and contain no occurrence of the word matrix. However, Unlike the Mandatory Exclusion Operator, partial results may contain the word matrix.

Mandatory Exclusion Operator

This operator acts as a NOT rule, with the search excluding results that contain the negated query.

squiz -matrix 

A fully matching result of this search will include the word squiz and contain no occurrence of the word matrix. Partial results of this search are those that satisfy the mandatory constraint (no matrix) but which do not contain the word squiz.

Mandatory Inclusion Operator

This operator will return results that have the included terms.

matrix +squiz 

A fully matching result of this search will include the words matrix and squiz. All results will contain the word squiz.

Proximity Operator

This operator specifies that the query words appear within 15 words of each other.

`matrix squiz` 

A fully matching results of this search will include the word matrix within 15 words of the word squiz (in any order).

Truncation Operator

This operator matches words on a querystem. This stem is specified using asterisks (*) to match words that either start or end with the query.

anti* 

This search query will match words starting with anti, for example: 'antithesis' or 'antibiotics'. If the asterisk was appended to the beginning of the word, the search would match words ending with anti.

You can append asterisks to both the beginning and end of the query to match words that contain the term.

*anti* 

This search query will match words containg anti, for example: 'frantic' or 'meantime'.

Metadata Search Operator

Documents may contain metadata, such as the document's author and when it was created. This information can be queried using the following format:

class:query 

In this format, class specifies the metadata class that is being queried (the single letter classes specified by the Funnelback Manager - for more information, refer to the Funnelback Manager chapter in this manual).

t:matrix 

This search will locate documents containing the word matrix within the metadata class t fields (ie. the documents' title).

Date Query Operator

Date queries constrain the search results to those that were modified or created during a specified date period. 

d<1jan2010 

This search will locate documents that were modified or created before the 1st of January 2010.