lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Finding minimum and maximum value in a field
Date Thu, 04 Mar 2010 17:54:56 GMT

: I want to find out the minimum and maximum value in a field. How to achieve
: is Lucene.Net. Currently I am using Lucene.Net version 2.4.0 can anyone help
: me.

assuming you mean the indexed values then the min is easy (use a TermEnum 
starting at Term(yourField,"")) but the max is a bit less efficient ... 
you essentially have to just iterate over the list of terms until you find 
hte "last" one.


View raw message