Septima.Search.Searcher
Base class for all searchers - these options are available on all searchers
Options
Name | Type | Mandatory | Default value | Description |
---|---|---|---|---|
blankBehavior | string | "search" | "none" | |
queryBehaviour | string | "auto" | "auto | |
minimumShowCount | string | 0 | Instead of collapsing results show at least some | |
showMinimumOnBlank | string | false | Show minimum count even on blank search | |
resultTypes | Object | {} | Use this options to override singular, plural, and iconURI of results (See example) | |
searchDelay | int | 0 | Delay in ms before executing the search | |
iconURI | boolean | Default icon for results if not set by searcher. Prefer to use options.resultTypes.[type].iconURI if possible | ||
onSelect | function | Function to call when a result is selected by the user. Alternatively use the controller.addOnSelectHandler(callback) | ||
usesGeoFunctions | boolean | false | [Internal use] Does the implementation need the geo functions | |
logger | Object | [Internal use] | ||
logLevel | string | [Internal use] | ||
defaultCrs | string | [Internal use] Sets crs of createQueryResult, sets crs of translateWktToGeoJsonObject |
Examples
Usage
YAML Declaration:
_type: Septima.Search.DawaSearcher
_options:
goal: adgangellerenhedsadresse
minimumShowCount: 3
showMinimumOnBlank: true
resultTypes:
adresse:
singular: Adresse
plural: Adresser
iconURI: data:image/svg+xml;base64,.........