So I clustered this app:

So I switched to clustering the RAMDirectory instead of the
IndexWriter and it worked in my experiments. What I did was create a
new IndexWriter on Document Adds and a new IndexSearcher on document
queries.

What I want to know is. How non-standard is this approach?

Cheers,
Steve

On 9/21/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:
On 9/21/06, Steve Harris <[EMAIL PROTECTED]> wrote:
> Interesting.
> I wonder, I have a notification mechanism at my disposal as well. I
> wonder if it could be worked out that, much like a mvc, an IndexReader
> could be notified when the underlying Directory has changed so that
> the reader can adjust itself?

Another little factor is that the IndexWriter must be closed before
the IndexReader is opened to see all the changes.

There is cost to opening and using a new IndexReader such as reading
the term index and the norms.  One would probably want to have some
sort of logic to limit how fast a new IndexReader was opened (which
diminishes the value of realtime updates to the underlying
IndexWriter).

It still should be doable though.

-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

> On 9/21/06, Yonik Seeley <[EMAIL PROTECTED]> wrote:
> > On 9/21/06, Steve Harris <[EMAIL PROTECTED]> wrote:
> > > My guess is that some segment of the world cares a lot about realtime
> > > coherent updates and some segment of the world needs blinding speed.
> > > Part of my research is to gather the expertise of this group on these
> > > issues.
> >
> > I hear ya...
> >
> > There is another part to the equation for Lucene though.
> > Coherent realtime updates to the IndexWriter/RamDirectory alone
> > doesn't get you all the way there since things are only readable
> > through an IndexReader that needs to be reopened to see changes.
> >
> >
> > -Yonik
> > http://incubator.apache.org/solr Solr, the open-source Lucene search server
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to