change the the name to indices boost

This commit is contained in:
kimchy 2010-02-27 01:37:14 +02:00
parent 929bb3f2be
commit c30d790609
3 changed files with 4 additions and 4 deletions

View File

@ -191,7 +191,7 @@ public class SearchSourceBuilder {
}
if (indexBoost != null) {
builder.startObject("queryBoost");
builder.startObject("indicesBoost");
for (TObjectFloatIterator<String> it = indexBoost.iterator(); it.hasNext();) {
it.advance();
builder.field(it.key(), it.value());

View File

@ -27,7 +27,7 @@ import org.elasticsearch.search.internal.SearchContext;
/**
* <pre>
* {
* queryBoost : {
* indicesBoost : {
* "index1" : 1.4,
* "index2" : 1.5
* }
@ -36,7 +36,7 @@ import org.elasticsearch.search.internal.SearchContext;
*
* @author kimchy (shay.banon)
*/
public class QueryBoostParseElement implements SearchParseElement {
public class IndicesBoostParseElement implements SearchParseElement {
@Override public void parse(JsonParser jp, SearchContext context) throws Exception {
JsonToken token;

View File

@ -46,7 +46,7 @@ public class QueryPhase implements SearchPhase {
ImmutableMap.Builder<String, SearchParseElement> parseElements = ImmutableMap.builder();
parseElements.put("from", new FromParseElement()).put("size", new SizeParseElement())
.put("queryParserName", new QueryParserNameParseElement())
.put("queryBoost", new QueryBoostParseElement())
.put("indicesBoost", new IndicesBoostParseElement())
.put("query", new QueryParseElement())
.put("sort", new SortParseElement())
.putAll(facetsPhase.parseElements());