Examples of ScoreAugmentFunction


Examples of com.senseidb.search.query.ScoreAugmentQuery.ScoreAugmentFunction

    else
    {
        // the olde code path, now turned off;
//      return new RelevanceQuery(baseQuery, jsonRelevance);
     
      ScoreAugmentFunction func = RelevanceFunctionBuilder.build(jsonRelevance);
      JSONObject valuesJson = jsonRelevance.optJSONObject(RelevanceJSONConstants.KW_VALUES);
      if(func == null)
        throw new JSONException("Can not create the score function;");
     
      return new ScoreAugmentQuery(baseQuery, func, valuesJson);
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.