Re-Search Hits

2008-07-17 Thread Sascha Fahl
Hi, for performance reasons I cache Hits for a certain Query in memcached, for things like pageination etc. My question right now is if it is possible to re-search such a cached Hits sets. That would be great for features like live-learch and so on. Does Lucene support that? Sascha -

Re: Re-Search Hits

2008-08-06 Thread Chris Hostetter
: for performance reasons I cache Hits for a certain Query in memcached, for : things like pageination etc. My question right now is if it is possible to : re-search such a cached Hits sets. That would be great for features like : live-learch and so on. Does Lucene support that? You can hang on t

RE: search hits not returned until I stop and restart application

2010-06-21 Thread Steven A Rowe
Hi Andy, From the API docs for IndexWriter : [D]ocuments are added with addDocument and removed with deleteDocuments(Term) or deleteDocuments(Query). A document can be updated with updat

RE: search hits not returned until I stop and restart application

2010-06-21 Thread andynuss
"So you gotta call commit() or close(). Once you've done that, you can reduce the (expensive) cost of opening a new IndexReader by calling reopen(): " Steve, I tried this, and I must have done something wrong. After my document set was ingested, I called a function which (1) called the IndexWr

RE: search hits not returned until I stop and restart application

2010-06-21 Thread Steven A Rowe
> -Original Message- > From: andynuss [mailto:andrew_n...@yahoo.com] > Sent: Monday, June 21, 2010 1:29 PM > To: java-user@lucene.apache.org > Subject: RE: search hits not returned until I stop and restart application > > > "So you gotta call commit() or

RE: search hits not returned until I stop and restart application

2010-06-21 Thread andynuss
"Maybe you aren't using the IndexReader instance returned by reopen(), but instead are continuing to use the instance on which you called reopen()? It's tough to figure this kind of thing out without looking at the code." That was it, I was not using the newly (re)opened index. By the way, one

RE: search hits not returned until I stop and restart application

2010-06-21 Thread Steven A Rowe
nuss [mailto:andrew_n...@yahoo.com] > Sent: Monday, June 21, 2010 2:44 PM > To: java-user@lucene.apache.org > Subject: RE: search hits not returned until I stop and restart application > > > "Maybe you aren't using the IndexReader instance returned by reopen(), but >