lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: One Field!
Date Thu, 15 Jul 2004 11:06:27 GMT
On Jul 14, 2004, at 10:19 PM, Jones G wrote:
> I have an index with multiple fields. Right now I am using 
> MultiFieldQueryParser to search the fields. This means that if the 
> same term occurs in multiple fields, it will be weighed accordingly. 
> Is there any way to treat all the fields in question as one field and 
> score the document accordingly without having to reindex.

You could change the coord() factor of Similarity in a custom 
implementation - that might do what you want with scoring.

But I prefer having a single queryable field that aggregates everything 
I want searchable, which would require re-indexing in your scenario.

	Erik


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