lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravis <>
Subject Custom Sorting Based on Input Value
Date Mon, 13 Oct 2008 21:54:46 GMT


I have a sorting requirement where I need to bubble up documents exactly
matching of particular value passed in sort criteria. 

For example: Hypothetically, Say I am sorting on field A. I want all values
matching value '5' on top and then regular sorting for other values. So I
would like to do something like: sort by: fieldA(5).

Any recommendation how I can achieve this using Lucene.

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message