RE: Re: Custom scores and sort

2022-03-25 Thread Claude Lepère
: Adrien Grand Sent: Wednesday, March 23, 2022 17:58 To: Lucene Users Mailing List Subject: Re: Re: Custom scores and sort CAUTION: external mail Sorry Claude, but I have some trouble following what you are doing with your CustomScoreQuery. It feels like your query is doing something that breaks some

Re: Re: Custom scores and sort

2022-03-23 Thread Adrien Grand
Sorry Claude, but I have some trouble following what you are doing with your CustomScoreQuery. It feels like your query is doing something that breaks some assumptions that Lucene makes. Have you looked at existing ways that Lucene supports boosting documents by recency, such as putting a LongDist

RE: Re: Custom scores and sort

2022-03-14 Thread Claude Lepere
Adrien, thank you for your answer and sorry for the lack of clarity. No, the score of a document does not depend on the score of another document, the problem lies within a document. There are several "only once score" fields; to simplify, I suppose there is only one "only once score" field; a do

Re: Custom scores and sort

2022-03-14 Thread Adrien Grand
It's a bit hard for me to parse what you are trying to do, but it looks like you are making assumptions about how Lucene works internally that are not correct. Do I understand correctly that your scoring mechanism has dependencies on other documents, ie. the score of a document could depend on the

Custom scores and sort

2022-03-10 Thread Claude Lepere
Hi. The problem is that although sorting by score a match with a lower score is ranked before a match with a greater score. The origin of the problem lies in a subclass of CustomScoreQuery which calculates an "only once" score for each document: on the first pass the document gets its score and, if

RE: Custom scores and sort

2022-02-27 Thread Claude Lepere
Hi! I see where the problem lies but I can't find a way to solve it. First feature: one of the fields must be scored only once: if a document matches this field several times (the values are different), the score is counted only the first time. A map is given as an argument to the CustomScoreQuer

Re: Custom scores and sort

2022-02-21 Thread passignat
Reply-To: java-user@lucene.apache.org To: java-user@lucene.apache.org Subject: Custom scores and sort Date: Mon, 21 Feb 2022 10:56:18 +0100 Hi! I have a question with sorting, I don’t understand why in a test a hitwith a lower score is ranked before hits with higher scores. I am using Lucene 5.

Custom scores and sort

2022-02-21 Thread Claude Lepere
Hi! I have a question with sorting, I don’t understand why in a test a hit with a lower score is ranked before hits with higher scores. I am using Lucene 5.2.1. Two CustomScoreQuery subqueries on two fields, subquery 1 and subquery 2, and two test cases: case 1: the two calculated custom score