lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Search multiple Fields
Date Thu, 02 Dec 2004 20:13:13 GMT
On Dec 2, 2004, at 11:43 AM, Eric Louvard wrote:
> I'm searching, for example
>
> title:world OR contents:world OR author:world
>
> Is it possible to know where (in which Field) have Lucene found 
> 'world' in each Document,
> without making 3 queries ?

Not in a straightforward way, but you can dig through the Explanation 
returned from IndexSearcher.explain() to see what factors are involved 
in the score, which does include info on what fields/terms were 
matched.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message