Septima.Search.S4IndexSearcher

Extends Septima.Search.Searcher
Searches a Spatial Suite index. An S4 index must have been created and populated on the host. See https://github.com/Septima/spatialsuite-s4#5-configure-your-search-index

Options

NameTypeMandatoryDefault valueDescription
hoststringYes"Service endpoint (SpatialSuite Url) eg.: [http:]//sps-demo.septima.dk[:80]. Protocol and port are optional"
datasourcesstring"*"Comma separated list of indexed data sources to search. Default: "*"
sourcestring"WebGis"The source property of results. Type property

Examples

Usage

YAML Declaration:


    _type: Septima.Search.S4IndexSearcher
    _options:
      host: "http://sps.test.septima.dk"
      datasources: "*"

JS options:


s4IndexSearcherOptions = {
    host : "http://sps.test.septima.dk/",
    datasources : "*"
};

js client:


// Include septimaSearch
<script type="text/javascript" src="http://search.cdn.septima.dk/{version}/septimasearch.min.js"/>
controller.addSearcher(new Septima.Search.S4IndexSearcher(s4IndexSearcherOptions))

ES6:


import S4IndexSearcher from './searchers/S4IndexSearcher.js'
controller.addSearcher(new S4IndexSearcher(s4IndexSearcherOptions))