Home | About | Sematext search-lucene.com search-hadoop.com
clear query|facets|time Search criteria: ramdirectory.   Results from 1 to 8 from 8 (1.056s).
Loading phrases to help you
refine your search...
Refreshing RAMDirectory - Lucene - [mail # user]
...Check=System.currentTimeMillis();             if (reader==null || !reader.isCurrent())             {                 if (reader!=null)                     reader.close();                                 Directory dir = new RAMDirectory...
   Author: Ruslan Sivak, 2007-12-11, 22:37
Re: Refreshing RAMDirectory - Lucene - [mail # user]
...Thank you to everyone for your comments.  I didn't realize that readers  need to be kept open and won't close exactly when you ask them too.  I  have restructured my code to keep the RamDirectory...
   Author: Ruslan Sivak, 2007-12-12, 19:49
Re: Refreshing RAMDirectory - Lucene - [mail # user]
... references to it.  What if I did somehting like this  Private IndexReader reader;  public IndexReader getReader() {    if (we are reloading)    {       Directory dir = new RAMDirectory (index...
   Author: Ruslan Sivak, 2007-12-12, 22:44
Re: Refreshing RAMDirectory - Lucene - [mail # user]
....  This forces me to use a new reader for every method  invocation.  This shouldn't be that bad, since it's accessing a  RAMDirectory, correct?  The overhead should be minimal.  Russ   Michael Mc...
   Author: Ruslan Sivak, 2007-12-12, 21:54
Re: Refreshing RAMDirectory - Lucene - [mail # user]
...Michael McCandless wrote:  What about using something like decref?  Does anyone know the proper way  to use it?  From the docs:         decRef  p...
   Author: Ruslan Sivak, 2007-12-13, 14:52
Re: Refreshing RAMDirectory - Lucene - [mail # user]
...Michael McCandless wrote: The 2nd line was working fine, however I was getting errors in other  places saying that the indexReader is closed.  There could be other threads using th...
   Author: Ruslan Sivak, 2007-12-12, 05:19
Re: Refreshing RAMDirectory - Lucene - [mail # user]
...The on-disk index gets updated.  Something like this: The second indexDoc function is what does the actual indexing, but this  should have the relevant content.   public void ...
   Author: Ruslan Sivak, 2007-12-11, 23:10
Re: Distributed Indexes - Lucene - [mail # user]
... is why i replicate the changes).   I basically cache the index for several minutes in a RamDirectory, which  works quite well for performance.  If I could store the index in a SQL  Table...
... or something, I can have a single place where the index lives and  atomic updates.   Is there a SQL Backend for the index, or should I just take the  RamDirectory, serialize it and store it as a BLOB...
   Author: Ruslan Sivak, 2008-02-08, 16:07
Sort:
project
Lucene (8)
type
mail # user (8)
date
last 7 days (0)
last 30 days (0)
last 90 days (0)
last 6 months (0)
last 9 months (8)
author
Michael McCandless (101)
Uwe Schindler (47)
Otis Gospodnetic (43)
Robert Muir (34)
Chris Hostetter (33)
Erik Hatcher (32)
Erick Erickson (29)
karl wettin (27)
Cheng (23)
Karl Wettin (20)
Mark Miller (20)
Ian Lea (19)
Yonik Seeley (17)
Shai Erera (16)
Paul Taylor (15)
Ruslan Sivak