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

Scoring in Lucene 6.6.0, 7.7.2, 8.1

2019-06-25 Thread baris . kazar
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: city="NASHUA" municipality="HILLSBOROUGH" region="NEW HAMPSHIRE" country="UNITED STATES" in the 0 th result NEW HAMPSHI

Re: Scoring in Lucene

2011-10-07 Thread Doron Cohen
r the document. HTH, Doron On Wed, Oct 5, 2011 at 10:19 PM, David Ryan wrote: > Hi, > > The defaulting scoring in Lucene uses tf x idf^2 instead of tf x idf . > Does any have have insight that why not using tf x idf? > > > Here is the note on score calculation. > > ht

Scoring in Lucene

2011-10-05 Thread David Ryan
Hi, The defaulting scoring in Lucene uses tf x idf^2 instead of tf x idf . Does any have have insight that why not using tf x idf? Here is the note on score calculation. https://lucene.apache.org/java/3_4_0/api/core/org/apache/lucene/search/Similarity.html

Re: Scoring in Lucene (for Precision and Recall)

2008-01-02 Thread Liaqat Ali
Grant Ingersoll wrote: You might also have a look at the quality package under contrib/benchmark, as it works w/ trec files, etc. I am not sure what the similarity parameter is you are referring to, but if I recall (and it has been a while), in the rel. files the last number is either 1 or 0,

Re: Scoring in Lucene (for Precision and Recall)

2008-01-02 Thread Grant Ingersoll
You might also have a look at the quality package under contrib/ benchmark, as it works w/ trec files, etc. I am not sure what the similarity parameter is you are referring to, but if I recall (and it has been a while), in the rel. files the last number is either 1 or 0, depending on whethe

Scoring in Lucene (for Precision and Recall)

2008-01-02 Thread Liaqat Ali
Hello, I am using treceval for precision, recall calculation. Treceval takes Relevance judgments and Result file as an arguments to calculate the precision, recall. There is a similarity parameter in the result file. The score which is calculated by Lucene is equal to that similarity paramet

Re: Implementing scoring in Lucene

2006-11-21 Thread Chris Hostetter
: Is there a step by step guide on how to implement the scoring function : for Apache Lucene? : The help given on the website is not easy to follow. : : How do I integrate the search function into my website? First off, what help did you look at? ... did you start with the tutorial? http://luce