Re: Scoring in Lucene 6.6.0, 7.7.2, 8.1

2019-06-26 Thread baris . kazar
Let me ask the next question in another thread, and it is: how to find out each score contribution from a booleanquery. Best regards On 6/26/19 11:53 AM, baris.ka...@oracle.com wrote: This should be very straight forward usage but i am not getting any usefeul info from explain: Explanation

Re: Scoring in Lucene 6.6.0, 7.7.2, 8.1

2019-06-26 Thread baris . kazar
This should be very straight forward usage but i am not getting any usefeul info from explain: Explanation expl = is.explain(booleanQuery.build(), 10); System.out.println(expl); This prints: 0.0 = Failure to meet condition(s) of required/prohibited clause(s)   0.0 = no match on required clause

Re: Scoring in Lucene 6.6.0, 7.7.2, 8.1

2019-06-26 Thread baris . kazar
Yes, i know that feature but so far it did not help me much but i am still looking into that. Thanks On 6/26/19 2:41 AM, Adrien Grand wrote: You can use IndexSearcher#explain to see how scores are computed. On Wed, Jun 26, 2019 at 12:48 AM wrote: Hi,- i really want to know why the scor

Re: Scoring in Lucene 6.6.0, 7.7.2, 8.1

2019-06-25 Thread Adrien Grand
You can use IndexSearcher#explain to see how scores are computed. On Wed, Jun 26, 2019 at 12:48 AM wrote: > > Hi,- > > i really want to know why the scoring works this way: search String is > either MAINO or MAINS: MAIN appears as the 276th entry in the results. > > NEW HAMPSHIRE in results: ci