(Quick Reference)

3 Configuration - Reference Documentation

Authors: Matouš Kučera

Version: 0.5.0

3 Configuration

There are few configuration options for the plugin:

NameDefaultDescription
grails.plugins.quickSearch.search.tokens' 'A string of characters which should be used for "tokenizing" (in other words splitting) the query string. The defualt tokenizer is a a gap which means that if the user search for 'Grails in Action' it will search for 'Grails' OR 'in' OR 'Action'.
grails.plugins.quickSearch.search.tokenizeNumberstrueThe Quick Search plugin supports the search for numbers and strings, this configuration option sets the default behavior of splitting the search queries into numbers and strings. If the user will search for 'Lindwurmstr. 76' the result search would be 'Lindwurmstr.' OR '76'.
grails.plugins.quickSearch.search.searchIdentifierfalseThe Quick Search plugin supports the search for numbers and strings, by default search doesn't include domain class identifier (usually 'id'). You can set this property to true in order to search by the identifier as well. This doesn't apply if you specify the explicit search properties, there you can set your identifier to be searched manually.
grails.plugins.quickSearch.search.tokenWrapper'"'A character which determines a wrapper for a token. If this character is used in start and end of the search query. i.e. "Lindwurmstr. 76", it doesn't apply "tokenizing". If you would like to turn off this feature you can set tokenWrapper property to empty string.