Re: Custom scores and sort

2022-02-21 Thread passignat
Hello Claude, here is what I'm doing and it seems to work, I haven't yet created failure tests. Maybe more expert member will have more information. Date field inserted: final Date parse = DATE_FORMAT.parse(DATE_FORMAT.format(o1)); new LongPoint(attributeName, parse.getTime())); The sorter: Sor

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