lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Buso <nb...@ebi.ac.uk>
Subject Re: TermInSetQuery keep terms order in results
Date Mon, 25 Jun 2018 11:26:03 GMT
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 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 this score?
> 
> Cheers,
> 
> 
> Nicola
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message