Skip to content

Commit 5ad4b78

Browse files
committed
Update fulltext search documentation
1 parent 4188ca5 commit 5ad4b78

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/topics/Search.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ To configure a fulltext search with the trigram backend, set `search_backend` to
290290

291291
- `:term`: The full search text
292292
- `:terms`: A list of search text words (i.e. the full search text split by whitespace).
293-
- `:thres`: The trigram similarity treshold value (note that the service will also separately execute `SET pg_trgm.similarity_threshold = <value>`)
293+
- `:thres`: The trigram similarity treshold value (note that the service will also separately execute `SET pg_trgm.similarity_threshold = <value>`).
294+
- `:facets`: The permitted search facets, as a list (only relevant for feature query).
294295

295296
The `trgm_feature_query` must return the following fields:
296297

@@ -319,7 +320,7 @@ In alternative to specifying `trgm_feature_query` and/or `trgm_layer_query`, you
319320

320321
* `searchtext`: the full search text, as a string
321322
* `words`: the single words of the search text, as an array
322-
* `facets`: the permitted search facets, as an array
323+
* `facets`: the permitted search facets, as an array (only relevant for feature query).
323324

324325
Example for `trgm_feature_query_template` to generate an "unrolled" query for each word in the searchtext:
325326

0 commit comments

Comments
 (0)