Septima.Search.Searcher

Base class for all searchers - these options are available on all searchers

Options

NameTypeMandatoryDefault valueDescription
blankBehaviorstring"search""none"
queryBehaviourstring"auto""auto
minimumShowCountstring0Instead of collapsing results show at least some
showMinimumOnBlankstringfalseShow minimum count even on blank search
resultTypesObject{}Use this options to override singular, plural, and iconURI of results (See example)
searchDelayint0Delay in ms before executing the search
iconURIbooleanDefault icon for results if not set by searcher. Prefer to use options.resultTypes.[type].iconURI if possible
onSelectfunctionFunction to call when a result is selected by the user. Alternatively use the controller.addOnSelectHandler(callback)
usesGeoFunctionsbooleanfalse[Internal use] Does the implementation need the geo functions
loggerObject[Internal use]
logLevelstring[Internal use]
defaultCrsstring[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,.........