Re: [ANN] Luke 3.4.0 release

2011-10-04 Thread Ivan Liu
Thanks Andrezj ! Works for me, win7 and lucene 2.9 and JRE 1.6. 2011/10/4 janwen > thanks so much.I am going to upgrade the lucene to version3.4 in my > project.I'll try the new version luke.thanks for hard-work > > > On 2011-10-3 17:52, Andrzej Bialecki wrote: > >> Hi, >> >> I'm happy to annou

Re: Using IndexReader in the web environment

2010-05-05 Thread Ivan Liu
You may look this: private static IndexSearcher indexSearcher = null; public synchronized IndexSearcher newIndexSearcher() { try { if (null == indexSearcher) { Directory directory = FSDirectory.open(new File(Config.DB_DIR+"/rssindex")); indexSearcher = new IndexSearcher(IndexReader.

Re: Indexing and Searching fields that have unique values

2010-04-24 Thread Ivan Liu
I think Anshum is right。 And may your range is too big and is sorting 2010/4/23 Anshum > Hi Ravi, > > Adding to what Erick said, you could do index the numbers as numeric fields > instead of strings. This should improve things for you by a considerable > amount. > P.S: I'm talking with my knowl

Re: Reopening a Searcher for each request

2010-04-24 Thread Ivan Liu
like this? public synchronized IndexSearcher newIndexSearcher() { try { // semaphore.acquire(); if (null == indexSearcher) { Directory directory = FSDirectory.open(new File(Config.DB_DIR+"/rssindex")); indexSearcher = new IndexSearcher(IndexReader.open(directory, true)); } else {