lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donna L Gresh <>
Subject Re: uncorrect results
Date Wed, 17 Nov 2010 17:57:31 GMT
As it is probably more likely that you're doing something incorrect than 
that Lucene is reporting incorrect results :), it might help if you 
reported the exact query that is being submitted to the IndexSearcher, and 
then showing us the document that was incorrectly returned. My guess is 
that either looking at the query itself will immediately reveal the 
problem to you, or that the query in combination with the document and 
knowledge of which analyzers you are using will reveal the problem-


Jan <> wrote on 11/17/2010 11:47:49 AM:

> [image removed] 
> uncorrect results
> Jan 
> to:
> java-user
> 11/17/2010 11:51 AM
> Please respond to java-user
> Hi,
> i have an assignment in my Text Analytics class. I am supposed to create
> an index and search it. The corpus is a PubMed-like XML file. it is
> possible to query terms (programcall a few terms) and phrases
> (programcall "a phrase"). 
> When a phrase is queried the program should answer how often the phrase
> occured.
> The problem is, on certain queries the IndexSearcher returns some
> documents that do not have that particular query in its fields.
> I'd be delighted if someone could tell me what i am doing wrong.
> See the source code at my github repo

> Thanks in advance
> jan
> PS: I use Lucene 3.0.2 and the OpenJDK Runtime Environment (IcedTea6
> 1.8.2) on an 64 bit Linux machine.
> [attachment "signature.asc" deleted by Donna L Gresh/Watson/IBM] 
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message