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 tom.grade1...@163.com 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

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

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 {

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 ansh...@gmail.com 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