lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rohit Banga <iamrohitba...@gmail.com>
Subject Re: examples of using explain method
Date Wed, 10 Mar 2010 18:57:40 GMT
yes i have printed the output to screen and used Luke to see what explain
does.

"I was wondering if I could use it to find out which terms in my query
 matched against a particular document.
 I am using fuzzy matching with the QueryParser."

On Wed, Mar 10, 2010 at 11:56 PM, Erick Erickson <erickerickson@gmail.com>wrote:

> Have you tried System.out.println(searcher.explain(blah blah).toString());?
>
> Also, Luke will do a  lot of this for you, google Lucene Luke....
>
> HTH
> Erick
>
> On Wed, Mar 10, 2010 at 12:11 PM, Rohit Banga <iamrohitbanga@gmail.com
> >wrote:
>
> > Could you help me understand how to use the explain method:
> >
> >
> http://lucene.apache.org/java/3_0_1/api/core/org/apache/lucene/search/Searcher.html#explain%28org.apache.lucene.search.Query,%20int%29
> >
> > I was wondering if I could use it to find out which terms in my query
> > matched against a particular document.
> > I am using fuzzy matching with the QueryParser.
> >
> > Thanks
> >
> > Rohit Banga
> >
>



-- 
Rohit Banga
http://www.google.com/profiles/iamrohitbanga

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