<title>QWC Fulltext Search Service</title>
QWC Fulltext Search Service
Type: objectJSON 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: constSpecific value:
"search"
Config options
Type: objectSearch backend: solr or pg. Default: solr.
SOLR service URL
SOLR service basic authentication. Default: None
Username for SOLR service authentication
Password for SOLR service authentication
Search result ordering for solr search results. Default: searchresultsort
Postgres feature query SQL. You can use the placeholder parameters :term (full search string), :terms (list of words of the search string), :thres (similarity threshold), :facets (the permitted search facets, as a list) and :facetlimit (maximum number of results per facet). The query must return the columns display, facetid, idfieldname, featureid, bbox (as a [xmin,ymin,xmax,ymax] string), srid.
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) and facetlimit (maximum number of results per facet). The generated SQL can accept the same placeholder parameters and must return the columns as documented in pg_feature_query.
Postgres layer query SQL. You can use the placeholder parameters :term (full search string), :terms (list of words of the search string), :thres (similarity threshold) and :facets (the permitted search facets, as a list). The query must return the columns display, dataproductid, dsetinfo, sublayers, stacktype.
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) and facets (the permitted search facets, as an array). The generated SQL can accept the same placeholder parameters and must return the columns as documented in pg_layer_query.
Postgres search result limit per facet. Controls the facetlimit parameter passed to the trgm_feature_query. Note: trgm_facet_search_limit + 1 will be passed to the query, and the results will be limited to trgm_facet_search_limit in the backed, in order to discover where more than trgm_facet_search_limit results exist, in which case the backend will return count: -1 in the facet result counts.
DEPRECATED - use pgfeaturequery instead
DEPRECATED - use pgfeaturequery_template instead
DEPRECATED - use pglayerquery instead
DEPRECATED - use pglayerquery_template instead
DEPRECATED - use pgfacetsearch_limit instead
Trigram similarity treshold. Default: 0.3
Word split Regex
Result count limit per search
Default DB connection for geometry result query
Resources
Type: objectSearch facets
Type: array of objectNo Additional Items
Each item of this array must be:
Facet
Type: objectFacet name
Table/View for search result geometries
Geometry column in search result table
Facet name column in search result table
DB connection for geometry result query