Vadim,
Why wouldn't you ask in Elastic forum?
On Mon, Jun 25, 2018 at 11:39 PM Vadim Gindin wrote:
> Hi All.
>
> I've found that explain flag (that is set via URL) is transferred to
> DefaultSearchContext. I'd like to check this flag in my CustomQuery. I
> expected that SearchContext will be pro
Hi All.
I've found that explain flag (that is set via URL) is transferred to
DefaultSearchContext. I'd like to check this flag in my CustomQuery. I
expected that SearchContext will be propagated to a Query, but I didn't
found the way how to get. I only have LeafReaderContext or LeafReader.
Could y
Hi Nicola,
if you sort it elsewhere, why do you care about sort order then? What you see
as result is simple: As there is nothing available for scoring a constant score
query returns the results in index order. That's wanted. There is no way to
change this "default" order for a TermInSetQuery b
Hi Uwe,
thanks for the reply. TermInSetQuery cover most of my use case:
- thousands of term values (also 100,000)
- no need for scoring, because it's calculated elsewhere
- intersect with normal full text query for further filtering
Using a TermQuery do I risk to hit the BooleanQuery.getMaxClause
Hi,
the TermInSetQuery is a so-called Constant Score Query. It is more meant as a
filter, so you would need some "real" fulltext query in parallel. See the
term-in-set query more like the SQL "IN" operator. It can be used to pass lots
of identifiers to filter results (e.g. when you apply access
Probably is more a sort problem than scoring the single document and
the order of the input terms is calculated at runtime, in case someone
is thinking about adding a sorting field at indexing time.
Nicola
On Mon, 2018-06-25 at 12:23 +0100, Nicola Buso wrote:
> Hi,
>
> I need to use the TermInSe
Hi,
I need to use the TermInSetQuery, but I would like to keep the sorting
of the results based on the term set order provided. Currently seems
using a index documents insertion order in the results.
Is this already implemented somewhere or do I need to implement a
CustomScoreQuery to calculate