Based the document score on a unique field


(tdudouet) #1

Hi all,

I try to make a search query based on a unique field, nevertheless,
the document score seems to be attached on the other fields content
too.

final FieldQueryBuilder qBuilder =
QueryBuilders.fieldQuery("searchable", "my query");
qBuilder.defaultOperator(Operator.AND);

For example, the code above is supposed to search into the unique
field named "searchable", but the score depends on other fields
too...

I thought about map the non relevant fields (for search) as not
indexed, but they are used for facetting...

Am I wrong in my practices ?

Thanks for responses... and nice work about ES !

Thomas


(system) #2