Re: Query in a doc context

2017-12-26 Thread Vadim Gindin
Mike, I need the following. I want to create a query using the following information: query string "blah blah blah" and constant scores map: "field1" -> 3.0 "field2" -> 4.0 "field3" -> 5.0 // field1, field2, field3 - fields in the index. The created query should search "blah blah blah" in each

Wrong ID in explain() method.

2017-12-26 Thread Vadim Gindin
Hi all. I've written a simple plugin, that implements custom scoring logic and extending `Explanation`. I have some real index data that looks like this: "_source": { "price": 1, "params_model": "Дверь задняя правая Honda CR-V", "categories": [ {