Skip to main content

Module query

Module query 

Source
Expand description

Candidate queries for the three search modes.

  • FTS parses a Jena/Lucene-style query string over the analyzed text field.
  • PREFIX asks “the stored prefix starts with this seed” through a literal-prefix [RegexQuery] over text_begin. A literal prefix is a contiguous range of the sorted term dictionary, so the FST walk only visits terms under the seed.
  • SUFFIX is the same query over the reversed text_end field, with the reversed seed. Without the reversal a suffix would have no automaton prefix and the walk would cover the whole dictionary.

Seeds are truncated to the configured character count. For patterns within that length the candidate set is exact; longer patterns are seeded with the leading (or trailing) characters and the residual FILTER decides.

Functions§

build_query
Build the query for request.
build_query_scoped
build_query conjoined with a predicate-set filter on the stored predicate.