Interface QueryCustomization<T>

All Known Subinterfaces:
AllContext, BooleanJunction<T>, FuzzyContext, MustJunction, PhraseContext, RangeContext, SimpleQueryStringContext, SpatialContext, TermContext, WildcardContext

@Deprecated public interface QueryCustomization<T>
Deprecated.
See the deprecation note on QueryBuilder.
Operations common to all types of queries
Author:
Emmanuel Bernard
  • Method Summary

    Modifier and Type
    Method
    Description
    boostedTo(float boost)
    Deprecated.
    Boost the query to a given value Most of the time positive float: - lower than 1 to diminish the weight - higher than 1 to increase the weight Could be negative but not unless you understand what is going on (advanced)
    filteredBy(Query filter)
    Deprecated.
    Filter the query results with the given Query instance
    Deprecated.
    All results matching the query have a constant score equals to the boost FIXME is that true?
  • Method Details

    • boostedTo

      T boostedTo(float boost)
      Deprecated.
      Boost the query to a given value Most of the time positive float: - lower than 1 to diminish the weight - higher than 1 to increase the weight Could be negative but not unless you understand what is going on (advanced)
      Parameters:
      boost - the value to use as boost
      Returns:
      an instance of T for method chaining
    • withConstantScore

      T withConstantScore()
      Deprecated.
      All results matching the query have a constant score equals to the boost FIXME is that true?
      Returns:
      an instance of T for method chaining
    • filteredBy

      T filteredBy(Query filter)
      Deprecated.
      Filter the query results with the given Query instance
      Parameters:
      filter - the Query to use as a filter
      Returns:
      an instance of T for method chaining