lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tate Avery" <tate.av...@nstein.com>
Subject Searching in "all"
Date Thu, 01 Apr 2004 15:30:38 GMT
Hello,

If I have, for example, 3 fields in my document (title, body, notes)... is there some easy
what to search 'all'?


Below are the only 2 ideas I currently have/use:

1) If I want to search for 'x' in all, I do something like:
	title:x OR body:x OR notes:x

... but this does not really work if you are search for (a AND b) and a is in the title and
b is in the notes, etc... leading to an explosion of boolean combinations it seems.


2) Actually index an 'all' field for my document by just concatenating the content from the
title, body, and notes fields.
... but this doubles my index size.  :(


So, is there a better way out there?

Thanks,
Tate

---------------------------------------------------------------------
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