Class PhraseWildcardQuery.Builder

    • Field Detail

      • field

        protected final String field
      • slop

        protected int slop
      • maxMultiTermExpansions

        protected final int maxMultiTermExpansions
      • segmentOptimizationEnabled

        protected final boolean segmentOptimizationEnabled
    • Constructor Detail

      • Builder

        public Builder​(String field,
                       int maxMultiTermExpansions)
        Parameters:
        field - The query field.
        maxMultiTermExpansions - The maximum number of expansions across all multi-terms and across all segments. It counts expansions for each segments individually, that allows optimizations per segment and unused expansions are credited to next segments. This is different from MultiPhraseQuery and SpanMultiTermQueryWrapper which have an expansion limit per multi-term.
      • Builder

        public Builder​(String field,
                       int maxMultiTermExpansions,
                       boolean segmentOptimizationEnabled)
        Parameters:
        field - The query field.
        maxMultiTermExpansions - The maximum number of expansions across all multi-terms and across all segments. It counts expansions for each segments individually, that allows optimizations per segment and unused expansions are credited to next segments. This is different from MultiPhraseQuery and SpanMultiTermQueryWrapper which have an expansion limit per multi-term.
        segmentOptimizationEnabled - Whether to enable the segment optimization which consists in ignoring a segment for further analysis as soon as a term is not present inside it. This optimizes the query execution performance but changes the scoring. The result ranking is preserved.