Class NgramQueryFactory

  • All Implemented Interfaces:
    ESQueryFactory

    public class NgramQueryFactory
    extends Object
    implements ESQueryFactory

    Builds a multi-match-query that uses the ngram sub-fields to handle decomposition and fuzziness.

    Supported QueryBuildingSettings:
    • tieBreaker
    • multimatch_type
    • minShouldMatch
    • acceptNoResult: if set to true, no results will be accepted and no further search is done
    • allowParallelSpellcheck: run parallel spell-check with this query. If terms could be corrected and 0 results are found, this query is built again with the corrected terms.