Examples of scoreMode()


Examples of org.elasticsearch.index.query.CustomFiltersScoreQueryBuilder.scoreMode()

 
  private BaseQueryBuilder applyManualWeights(BaseQueryBuilder queryObj, AdvancedQueryPojo.QueryScorePojo score)
  {
    if ((null != score.tagWeights) || (null != score.typeWeights) || (null != score.sourceWeights)) {
      CustomFiltersScoreQueryBuilder manualWeights = QueryBuilders.customFiltersScoreQuery(queryObj);
      manualWeights.scoreMode("avg"); // Only tags can match multiple filters, in which case we average them
     
      if (null != score.sourceWeights) {
        // Find all weightings with the same score:
        ArrayListMultimap<Float, String> invSourceWeights = ArrayListMultimap.create();
        for (Map.Entry<String, Double> sourceKeyEl: score.sourceWeights.entrySet()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.