org.hibernate.search.query.dsl

## Interface MoreLikeThisOpenedMatchingContext

- All Superinterfaces:
    FieldCustomization<MoreLikeThisOpenedMatchingContext>, MoreLikeThisMatchingContext
  All Known Implementing Classes:
    ConnectedMoreLikeThisMatchingContext

      public interface MoreLikeThisOpenedMatchingContext
      extends MoreLikeThisMatchingContext, FieldCustomization<MoreLikeThisOpenedMatchingContext>

  Represents the next step after comparingField(s). Additional fields can be defined.
  Author:
    Emmanuel Bernard <emmanuel@hibernate.org>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `MoreLikeThisOpenedMatchingContext` | `andField(String fieldname)` Add one field to the fields selected to match the content.

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

      `toEntity, toEntityWithId`

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

      `boostedTo, ignoreAnalyzer, ignoreFieldBridge`

- - ### Method Detail

    - #### andField

          MoreLikeThisOpenedMatchingContext andField(String fieldname)

      Add one field to the fields selected to match the content. An exception is thrown if the field are neither storing the term vectors nor physically stored. We highly recommend to store the term vectors if you plan on using More Like This queries.
      Parameters:
        `fieldname` - the name of the field
      Returns:
        `this` for method chaining

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