Interface PhraseContext

All Superinterfaces:
QueryCustomization<PhraseContext>

public interface PhraseContext extends QueryCustomization<PhraseContext>
  • Method Details

    • withSlop

      PhraseContext withSlop(int slop)
      Sets the number of other words permitted between words in query phrase. If zero, then this is an exact phrase search. For larger values this works like a WITHIN or NEAR operator. Defaults to 0
    • onField

      PhraseMatchingContext onField(String fieldName)
      field / property the term query is executed on