lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: how to search multiple fields
Date Wed, 25 May 2011 10:20:13 GMT
> Quite a few Lucene examples on lines shows how to insert multiple fields
> into a Document and how to query the indexed file with certain fields and
> queried text. I would like to know:
>
> 1.       How to do a cross-field search?

http://wiki.apache.org/lucene-java/LuceneFAQ#How_can_I_search_over_multiple_fields.3F

> 2.       How to specify some key fields as well as some less important
> fields?

Boosting.  See http://wiki.apache.org/lucene-java/LuceneFAQ#What_is_the_difference_between_field_.28or_document.29_boosting_and_query_boosting.3F

> 3.       How many fields would cause performance issue?

Impossible to answer since there are too many variables but in general
the fewer fields used in a search the faster it will be.  There are
many other factors, some of which are likely to outweigh this.  See
http://wiki.apache.org/lucene-java/ImproveSearchingSpeed.


--
Ian.

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


Mime
View raw message