lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baris Kazar <baris.ka...@oracle.com>
Subject Lucene Scoring
Date Sun, 15 Jul 2018 23:17:18 GMT



Since i cant use payloads, i tried another way: i decomposed my text into two fields and i
want the first field to be searched until nothing is found/matched there. then i want the
second field to be searched. 

currently i added field.setBoost but that does not help. i see scores being modified but the
order of results is pretty much the same. 

what happens is that when part of the search string is found on both fields then those entries
are hit first since Lucene scoring takes number of occurrences as dominant in scoring. 

But i want the search string to be fully-matched with the first field first, then if not successful,
do partial matching on the first field and then on both fields. 

i also read https://lucene.apache.org/core/6_0_1/core/org/apache/lucene/search/similarities/TFIDFSimilarity.html


how can i achieve this in lucene? 
Best regards 




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message