Interface PhraseContext

All Superinterfaces:
QueryCustomization<PhraseContext>

@Deprecated public interface PhraseContext extends QueryCustomization<PhraseContext>
Deprecated.
See the deprecation note on QueryBuilder.
Author:
Emmanuel Bernard
  • Method Details

    • withSlop

      PhraseContext withSlop(int slop)
      Deprecated.
      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
      Parameters:
      slop - the slop value
      Returns:
      a PhraseContext
    • onField

      PhraseMatchingContext onField(String fieldName)
      Deprecated.
      field / property the term query is executed on
      Parameters:
      fieldName - the name of the field
      Returns:
      a PhraseContext