Class TextWeights


  • public final class TextWeights
    extends Object
    Defines weights on index fields for which matches should boost scoring in search queries.
    • Constructor Detail

      • TextWeights

        public TextWeights​(Map<String,​Double> weights)
        Creates an instance of TextWeights class.
        Parameters:
        weights - the weights value to set.
    • Method Detail

      • getWeights

        public Map<String,​Double> getWeights()
        Get the weights property: The dictionary of per-field weights to boost document scoring. The keys are field names and the values are the weights for each field.
        Returns:
        the weights value.