FAQ
Hello

An example: my document has 3 fields: field1, field2 and field3. I
have to make queries for each field, and sometimes using all the
fields. Should I use a BooleanQuery when searching for a string in the
3 fields, or should I create a redundant field4 (where field4 is the
concat of field1+field3+field3).

Which one is faster?

Also, creating a field4 could improve the search results, since it
would calculate the score based on the 3 fields together, not merging
the search results for each field (as BooleanQuery does). Am I right?

thanks a lot

--
Paulo E. A. Silveira
Caelum Ensino e Soluções em Java
http://www.caelum.com.br/

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedMay 18, '06 at 6:51p
activeMay 18, '06 at 6:51p
posts1
users1
websitelucene.apache.org

1 user in discussion

Paulo Silveira: 1 post

People

Translate

site design / logo © 2022 Grokbase