Query Search
When filtering applications there are options that allow you to search for key words, application ID numbers and to add wildcard queries.
For those interested in the specifics of this function, SmartyGrants uses Lucene Search.
Types of searches
Results include specific character/number/word/phrase etc
If you would like your filter to return results for only those applications that contain specific character, number, word, phrase, etc, then you are able to do this by using double quotation marks ( ““) on either side of the required result.
For example, to search for all the applications that contain ‘community’ you can use the search:
“community”
Wildcard Searches
Lucene supports single and multiple character wildcard searches within single terms (not within phrase queries). To perform a single character wildcard search use the "?" symbol. To perform a multiple character wildcard search use the "*" symbol. The single character wildcard search looks for matching terms which replace the "?" with another character. For example, to search for "text" or "test" you can use the search: Multiple character wildcard searches look for 0 or more characters. For example, to search for test, tests or tester, you can use the search: You can also use the wildcard searches in the middle of a term. Note: You cannot use a * or ? symbol as the first character of a search.te?t
test*
te*t
Boolean Operators
Boolean operators allow terms to be combined. Lucene supports AND, "+", OR, NOT and "-" as Boolean operators (Note: Boolean operators must be ALL CAPS).
For example, to search for applications that include community events or just the word events you can use the search:
“community events” events
or
“community events” OR events
You can use the AND operator to find results where both terms exist anywhere in the Application ID.
For example, to search for applications that include community events and also youth events you can use the search:
“community events” AND “youth events”
The + operator requires that the term after the + symbol must exist somewhere in the result.
For example, to search for applications that must contain community, but may also contain events you can use the search:
+community events
The NOT operator excludes results that contain the term after NOT.
For example, to search for applications that contain community but do not include events you can use the search:
“community” NOT “events”
Note: The NOT operator cannot be used with just one term. For example, the following search will return no results: NOT “events”
The - prohibit operator excludes documents that contain the term after the - symbol.
For example, to search for applications contain community events but not youth events you can use the search:
“community events” - “youth events”
Info: For further technical information on Lucene search parameters, see Technical Lucene Parameters (external site).