Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Different order of results Lucene vs Luke
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
dmpolo  
View profile  
 More options Oct 14 2011, 11:53 am
From: dmpolo <dmp...@gmail.com>
Date: Fri, 14 Oct 2011 08:53:43 -0700 (PDT)
Local: Fri, Oct 14 2011 11:53 am
Subject: Different order of results Lucene vs Luke
Hi,

I'm obtaining different results doing a search with Lucene 3.1 from
the results obtained with Luke 3.1.

The query is exactly the same and the number of results is the same,
but the order is different.

Here is the code printing the first 10 results:

Directory directory = FSDirectory.open(new File("C:/data/indexes/
com.test.TestObject"));
IndexReader indexReader = IndexReader.open(directory);
IndexSearcher indexSearcher = new IndexSearcher(indexReader);
TopDocs hits = indexSearcher.search(query, 10);
for (ScoreDoc sd : hits.scoreDocs) {
   System.out.println("doc:" + sd.doc + " - score: " + sd.score);

}

indexSearcher.close();

After examining the results I have found that the order obtained with
Luke is the good one. So, I'm interested in

Is there something I'm missing? Maybe some configuration of Lucene?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Andrzej Bialecki  
View profile  
 More options Oct 14 2011, 2:18 pm
From: Andrzej Bialecki <sig...@gmail.com>
Date: Fri, 14 Oct 2011 20:18:54 +0200
Local: Fri, Oct 14 2011 2:18 pm
Subject: Re: Different order of results Lucene vs Luke
On 14/10/2011 17:53, dmpolo wrote:

You didn't show us how you constructed the "query" object in your
code... Also, just print Explanations, things should become obvious then.

--
Best regards,
Andrzej Bialecki<><
  ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »