lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <>
Subject Re: Which is better ,Search through query and whole text document or search through query with document field.
Date Thu, 13 Feb 2014 11:39:06 GMT
The one that meets your requirements most easily will be the best.

If people will want to search for words in particular fields you'll
need to split it but if they only ever want to search across all
fields there's no point.

A common requirement is to want both, in which case you can split it
and also store everything in a common field called something like
"contents".  Or look at MultiFieldQueryParser.


On Thu, Feb 13, 2014 at 10:16 AM, Rajendra Rao
<> wrote:
> Hello,
> I have query and document.Its unstructured & natural  text.I used lucene
> for searching document on query.If I  separate Document into field and then
> search.what will be difference?
> I can't check it because now i don't have field separated data .But in
> future we will have.
> Thanks.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message