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
Name | Type | Mandatory | Default value | Description |
---|---|---|---|---|
host | string | Yes | "Service endpoint (SpatialSuite Url) eg.: [http:]//sps-demo.septima.dk[:80]. Protocol and port are optional" | |
datasources | string | "*" | Comma separated list of indexed data sources to search. Default: "*" | |
source | string | "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))