<title>QWC Fulltext Search Service</title>

QWC Fulltext Search Service

Type: object

JSON Schema

Type: stringFormat: uri Default: "https://raw.githubusercontent.com/qwc-services/qwc-fulltext-search-service/master/schemas/qwc-search-service.json"

Reference to JSON schema of this config

Service name

Type: const
Specific value: "search"

Config options

Type: object

Type: string

Search backend: solr or trgm. Default: solr.

Type: string

SOLR service URL

Type: string

Search result ordering for solr search results. Default: searchresultsort

Type: string

Jinja template string to generate the feature query SQL. The following variables are passed to the template: searchtext (the full search text, as a string), words (the single words of the search text, as an array), facets (the permitted search facets, as an array). The generated SQL needs to satisfy the same requirements as documented in trgm_feature_query.

Type: string

Trigram feature query SQL. You can use the placeholder parameters :term (full search string), :terms (list of words of the search string) and :thres (similarity threshold). The query must return the columns display, facetid, idfieldname, featureid, bbox (as a [xmin,ymin,xmax,ymax] string), srid.

Type: string

Jinja template string to generate the layer query SQL. The following variables are passed to the template: searchtext (the full search text, as a string), words (the single words of the search text, as an array), facets (the permitted search facets, as an array). The generated SQL needs to satisfy the same requirements as documented in trgm_layer_query.

Type: string

Trigram layer query SQL. You can use the placeholder parameters :term (full search string), :terms (list of words of the search string) and :thres (similarity threshold). The query must return the columns display, dataproductid, dsetinfo, sublayers.

Type: number

Trigram similarity treshold. Default: 0.3

Type: string Default: "[\\s,.:;\"]+"

Word split Regex

Type: integer Default: 50

Result count limit per search

Type: string

Default DB connection for geometry result query

Resources

Type: object

Search facets

Type: array of object
No Additional Items

Each item of this array must be:

Facet

Type: object

Type: string

Facet name

Type: string

Type: string Default: "search_v"

Table/View for search result geometries

Type: string Default: "geom"

Geometry column in search result table

Type: string Default: "subclass"

Facet name column in search result table

Type: string

DB connection for geometry result query