Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

DO NOT REPLY [Bug 35157] New: - Inconsistent scoring with SpanTermQuery in BooleanQuery

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


bugzilla at apache

Jun 1, 2005, 9:31 AM

Post #1 of 1 (37 views)
Permalink
DO NOT REPLY [Bug 35157] New: - Inconsistent scoring with SpanTermQuery in BooleanQuery

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=35157>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=35157

Summary: Inconsistent scoring with SpanTermQuery in BooleanQuery
Product: Lucene
Version: CVS Nightly - Specify date in submission
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Search
AssignedTo: lucene-dev [at] jakarta
ReportedBy: yahootintin-lucene [at] yahoo


When a SpanTermQuery is added to a BooleanQuery, incorrect results are
returned.

I am running Lucene 1.9 RC1 on Windows XP. I have a test case which has
several tests. It has an index with 4 identical documents in it.

When two TermQuerys are used in a BooleanQuery, the score looks like this:
4 hits for search: two term queries
ID:1 (score:0.54932046)
ID:2 (score:0.54932046)
ID:3 (score:0.54932046)
ID:4 (score:0.54932046)

Notice how it is correctly setting the score to be the same for each document.

When two SpanQuerys are used in a BooleanQuery, the score looks like this:
2 hits for search: two span queries
ID:1 (score:0.3884282)
ID:4 (score:0.1942141)

Notice how it only returned two documents instead of four. And the two it did
return have differing scores.

I believe that there is an error in the scoring algorithm that is making the
other two documents not show up.

--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe [at] lucene
For additional commands, e-mail: java-dev-help [at] lucene

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.