RE: Re: Custom scores and sort

2022-03-14 Thread Claude Lepere
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 > score of other documents? This is something that Luce

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
better solution. Thanks in advance. Claude Lepère On 2022/02/21 09:56:18 Claude Lepere wrote: > 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

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

test

2022-02-20 Thread Claude Lepere
Am I subscribed, please? Claude Lepère claudelep...@gmail.com Virus-free. www.avg.com

PhraseQuery doc

2021-12-13 Thread Claude Lepere
https://lucene.apache.org/core/8_0_0/core/org/apache/lucene/search/PhraseQuery.html#getSlop--, writes the following: For instance, when searching for "quick fox", it is expected that the difference between the positions of fox and quick is 1. So "a quick brown fox" would be at an edit distance of

A question on PhraseQuery and slop

2021-12-10 Thread Claude Lepere
Hello. The explanation of https://lucene.apache.org/core/8_0_0/core/org/apache/lucene/search/PhraseQuery.html#getSlop writes that the edit distance between "quick fox" and "the fox is quick" would be a

A custom Object (a Map) needed in MyCustomScoreProvider class inherited from CustomScoreProvider

2021-02-19 Thread Claude Lepere
Hi. I need a custom Object - a Map - in MyCustomScoreProvider to calculate a custom score. This map contains info about previous custom score calculations. How can I achieve that? Many thanks in advance. Claude Lepère claudelep...@gmail.com

Does CustomScoreProvider skip some documents when calculating custom scores? Explanation

2021-02-08 Thread Claude Lepere
Hi! I think the explanation is: my previous tests were on an index of a db table of 300 documents; small index = 1 segment and doc at index level is equal to docID at LeafReaderContext. Anyway it is not recommanded to use doc as id of document, it is reserved for Lucene use. Next step, my index was

Does CustomScoreProvider skip some documents when calculating custom scores?

2021-02-07 Thread Claude Lepere
Hi! I am using Lucene 5.2.1. I have indexed a "big" table of about 3 entries. I have a query with 2 simple sub TermQuery, the second one requiring a custom score (with CustomScoreQuery and CustomScoreProvider); all the matching hits (300) have the correct id but problem with the calculation of

Lucene 5.2.1 score for MUST_NOT query

2019-08-04 Thread Claude Lepere
Hello! What score of a hit in response to a query that begins with the clause MUST_NOT? Is it 0 or something else? What does it mean? How is it calculated? Thank you in advance. Claude Lepère