how to get max value of a long field?

2013-05-17 Thread Hu Jing
I want to know the max value of a long field. I read lucene api , but don't find any api about this? does someone can supply any hits about how to implement this. thanks very much.

Re: how to forcemerge a index library with many segmens to another dir?

2012-12-20 Thread Hu Jing
out and see what happens. > > > -- > Ian. > > > On Thu, Dec 20, 2012 at 1:24 AM, Hu Jing wrote: > > Now, i have a index library with 100 segments. > > Using forcemerge function can merge all segments into a segment. > > But I also want the newly generated index libra

Re: how to get term docs in lucene 4.0

2012-12-17 Thread Hu Jing
thanks. 2012/12/18 Steve Rowe > Check out MIGRATE.txt: > > http://lucene.apache.org/core/4_0_0/MIGRATE.html > > Steve > > On Dec 17, 2012, at 7:18 PM, Hu Jing wrote: > > > in lucene 3.0,i can get term doc by using indexreader termdocs. how to &g