lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
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.



-Hoss


Mime
View raw message