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: using custom sort method
Date Tue, 18 Apr 2006 19:49:35 GMT
Could your computation be done at indexing time rather than at search  
time?  If so, pre-compute the value and index that into a single field.

	Erik


On Apr 18, 2006, at 3:46 PM, Urvashi Gadi wrote:

> Hello All,
>
> My requirement is to combine 2 or more fields using some critera  
> (for example weighted average) and sort the search results based on  
> the combined fields.
>
> I am looking at DistanceComparatorSource class to implement custom  
> sort but it takes only one field for calculation and then sorts the  
> result. Is there a way to use more than one field? I looked in  
> sorts in succession by the criteria in each SortField class but  
> this doesn't fulfill my requirement.
>
> Please suggest.
>
> Urvashi
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org


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