lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liat oren <oren.l...@gmail.com>
Subject Query scoring
Date Thu, 16 Apr 2009 10:27:26 GMT
Hi,

I try to understand why the following query gives the scoring below:

document 1 : a b c document 2 : g k a h u c


0.0 = (NON-MATCH) product of:
  0.0 = (NON-MATCH) sum of:
  0.0 = coord(0/3)
0.06155877

The query code is:
   IndexSearcher searcher = new IndexSearcher(path);
   Analyzer analyzer = new StandardAnalyzer();
   QueryParser parser = new QueryParser("text", analyzer);
   Query query = parser.parse("g k a h u c");
   Hits hits = searcher.search(query);
I also tried the WhiteSpaceAnalyzer.

Why does it give me "no match"?
doesn't if have to do "or" on each of the letters "g k a h u c"?

Thanks,
Liat

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