RE: How to get the "greater" term/word in a single-word numeric field

2010-01-21 Thread Luis Fco Ramirez Daza Glez
rsday, January 21, 2010 12:35 PM > To: lucene-net-user@lucene.apache.org > Subject: RE: How to get the "greater" term/word in a single-word > numeric field > > Is this a joke? > http://mail-archives.apache.org/mod_mbox/lucene-lucene-net- > user/201001.mbox/date?

RE: How to get the "greater" term/word in a single-word numeric field

2010-01-21 Thread Digy
Is this a joke? http://mail-archives.apache.org/mod_mbox/lucene-lucene-net-user/201001.mbox/date?1 DIGY -Original Message- From: Luis Fco. Ramriez Daza Glez [mailto:luis.francisco@gmail.com] Sent: Thursday, January 21, 2010 8:29 PM To: lucene-net-user@lucene.apache.org Subject: How t

RE: How to get the "greater" term/word in a single-word numeric field

2010-01-21 Thread Digy
Hi Luis, Why do you post the same question twice? Please read previous answers. Here is a code that may give you a hint private void Form2_Load(object sender, EventArgs e) { IndexInt(); FindMinAndMax(); } L

RE: How to get the "greater" term/word in a single-word numeric field

2010-01-19 Thread Moray McConnachie
al Message- From: Digy [mailto:digyd...@gmail.com] Sent: 18 January 2010 20:56 To: lucene-net-user@lucene.apache.org Subject: RE: How to get the "greater" term/word in a single-word numeric field You can use TermEnum to find the min. value since terms are stored *sorted* in the index. But

RE: How to get the "greater" term/word in a single-word numeric field

2010-01-18 Thread Digy
You can use TermEnum to find the min. value since terms are stored *sorted* in the index. But finding max. may not be so easy. Storing these values in a control doc(such as doc{ fieldMinValue:m ; fieldMaxValue:n} ) or at an external location (while indexing) may be a solution. DIGY. -Orig