org.hibernate.search.query.dsl

## Interface PhraseContext

- All Superinterfaces:
    QueryCustomization<PhraseContext>

      public interface PhraseContext
      extends QueryCustomization<PhraseContext>

  Author:
    Emmanuel Bernard

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `PhraseMatchingContext` | `onField(String fieldName)` field / property the term query is executed on
    `PhraseContext` | `withSlop(int slop)` Sets the number of other words permitted between words in query phrase.

    - ### Methods inherited from interface org.hibernate.search.query.dsl.QueryCustomization

      `boostedTo, filteredBy, withConstantScore`

- - ### Method Detail

    - #### 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
      Parameters:
        `slop` - the slop value
      Returns:
        a `PhraseContext`

    - #### onField

          PhraseMatchingContext onField(String fieldName)

      field / property the term query is executed on
      Parameters:
        `fieldName` - the name of the field
      Returns:
        a `PhraseContext`

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved