lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sunil Kumar PK" <pksuni...@gmail.com>
Subject Re: Search Problem
Date Sat, 28 Oct 2006 04:35:16 GMT
Thanks Erick.

On 10/27/06, Erick Erickson <erickerickson@gmail.com> wrote:
>
> I'm not all that familiar with the remotesearcher stuff. But somewhere you
> must open an indexreader. So wherever that code is, just close the index
> reader (and anything that uses it, like Serachables(?)) and re-open it.
> That
> should pick up your recent changes.
>
> Of course, now would be a fine time for someone who actually understands
> the
> remote/parallel architecture to chime in <G>...
>
> Erick
>
> In the server code, all you have to do something like
>
> On 10/27/06, Sunil Kumar PK <pksunilpk@gmail.com> wrote:
> >
> > Thanks Erick for the information.
> >
> > Actually I am using RemoteParallelMultiSearcher with 10 Search Servers,
> my
> > crawler program freequently add new documents in to all the Search
> Servers
> > in a distributed manner. So in this case, if I add a document in a
> > particular index, I need to restart the searcher program in that server.
> > right? Can I do this with a remote call, or I want to add a new method
> to
> > Searchable interface?
> >
> > Thanks,
> > Sunil
> >
> > On 10/26/06, Erick Erickson <erickerickson@gmail.com> wrote:
> > >
> > > Yes, but you must close and re-open your SEARCHER. There are various
> > > schemes
> > > for doing this based upon now expensive it is to open a new searcher
> and
> > > how
> > > often you need to do it, but it's not built into Lucene AFAIK. It all
> > > depends upon how quickly you have to see the results of your update.
> > >
> > > Also, be aware that your update code does not necessarily write your
> > data
> > > to
> > > the index immediately, so you can only be assured that the data is
> > > available
> > > if you, say, close your index updater.
> > >
> > > Erick
> > >
> > > On 10/26/06, Sunil Kumar PK <pksunilpk@gmail.com> wrote:
> > > >
> > > > Hi,
> > > >
> > > > I have a program to create a lucene index, and another program for
> > > > searching
> > > > that index.
> > > >
> > > > The Search program create an IndexSearcher object once in its
> > > constructor,
> > > > and I created a method doSearch to search the index. The doSearch
> > method
> > > > uses the indexSearcher object to get the Hits.
> > > >
> > > > My Indexer program is continuously adding documents to the index.
> > > >
> > > > My problem is that I am not getting the matching documents in my
> > search
> > > > results, which are added after creating the IndexSearcher object in
> my
> > > > Search program.
> > > > Is it possible to get all the matching document in the result
> without
> > > > restarting the Searcher program?
> > > >
> > > > Thanks,
> > > > Sunil
> > > >
> > > >
> > >
> > >
> >
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message