Re: RE: maybe I hit a bug of Term ?

2010-12-11 Thread Duy DINH
Hi Lucene community, This is not a novel question but I tried to search on Google the query: "how to index TREC collection with Lucene" I found nothing about that except some of your answers about the papers using Lucene for indexing TREC collection, and I think that I have to write code for inde

Re: Search for "similar documents" with a query as another document ?

2009-12-21 Thread Dinh
Have you taken a look at MoreLikeThis http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/similar/MoreLikeThis.html Regards, Dinh my mission is that finding in the SET what are tops of similar documents > with this query. > -- Spica Framework: http://code.google.com/p

Re: Why Lucene takes longer time for the first query and less for subsequent ones

2009-11-17 Thread Dinh
Hi, Thanks for your feedbacks. I have checked it again and found that this behavior is rather consistent. So may be OS cache and Lucene warm up have big impact. Regards, Dinh

Why Lucene takes longer time for the first query and less for subsequent ones

2009-11-17 Thread Dinh
LuceneSearchService:151 - Internal search took 1.668648ms 00:28:31,625 INFO SearchController:86 - Page rendered in 15.57237ms Why does it happens? Does it mean that Lucene has an internal cache engine, just like MySQL query result cache or Oracle query execution plan cache? Thanks Dinh

Re: deleteDocuments() does not work

2009-11-03 Thread Dinh
r = oldReader.reopen(true); if (newReader != oldReader) { oldReader.close(); searcher.close(); searchers.put(entry.getKey(), new IndexSearcher(newReader)); } Thanks, Dinh On Tue, Nov 3, 2009 at 4:50 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > On Tue, Nov 3, 2009

Re: deleteDocuments() does not work

2009-11-03 Thread Dinh
er before creating new ones. However, I don't know if it is a good practice to do so. Thanks Dinh On Wed, Oct 28, 2009 at 6:47 PM, Michael McCandless < luc...@mikemccandless.com> wrote: > Can you not suppress the AIOOBE (just in case you're hitting that)? > > Also, you are

Re: deleteDocuments() does not work

2009-10-28 Thread Dinh
uation? Thanks, Dinh On Wed, Oct 28, 2009 at 5:49 PM, Anshum wrote: > Hi Dinh, > Is it that your engine keeps an IndexSearcher[Reader] open all through this > while? For the deleted document to actually reflect in the search > (service), > you'd need to reload the index search

deleteDocuments() does not work

2009-10-28 Thread Dinh
after executing this method without any exception, I come back and try to do a search the supposed-to-be-deleted record is still there. I need to restart my servlet engine to have that record been really deleted. How can it happen? Thanks Dinh