You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Lukasz Rzeszotarski <l....@gmail.com> on 2007/11/07 16:41:50 UTC
How to check which field contains Term
Hello. Let assume I have a Document which has two fields: Content_1 and
Content_2.
I am making query to find word "blabla" in the Content_1 OR Content_2.
But as a result I receive Hits collection without knowledge in which
Content_X, the word was founded.
Is it possible to receive Hits collection with documents and with
konwledge which Content_X was matched to the query.
I must write application, where client wants to make very complex query,
like:
find word "blabla" in (Content_1 OR Content_2) AND (...) AND (...).......
and as a result he expectes not only documents, but also information in
which Content_X
was it founded.
Can lucene manage with it ?
Re: How to check which field contains Term
Posted by Lukasz Rzeszotarski <l....@gmail.com>.
Thanks for yours response, Probably, I will use this class in my project.
Re: How to check which field contains Term
Posted by Daniel Noll <da...@nuix.com>.
On Thursday 08 November 2007 02:41:50 Lukasz Rzeszotarski wrote:
> I must write application, where client wants to make very complex query,
> like:
> find word "blabla" in (Content_1 OR Content_2) AND (...) AND (...).......
> and as a result he expectes not only documents, but also information in
> which Content_X
> was it founded.
>
> Can lucene manage with it ?
Query#explain can probably help. It gives you back a tree of explanations
describing which parts of the query tree matched a given document.
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org