FAQ
Hi all,

To allow mutilple users concurrently add, delete docs and at the same time search the same index, what should I watch out for in terms of initing indexreader, indexwriter and indexsearcher?

My application is getting various IOException (seek failed, permission denied, etc...) when concurrent add/delete/search happens. Is there any general guidelines that you can share? Thanks in advance!

Alex

Search Discussions

  • Mark Miller at Aug 7, 2008 at 12:17 am
    Do a little research to learn the rules and you will figure out how to
    make those classes cooperate. You might start by looking at LUCENE-1026,
    which is a simple set of classes that allows for what you want. You can
    use it, use it to make your own, or even look at its father issue - the
    original LuceneIndexAccessor. (I might actually have updated code to
    LUCENE-1026 lying around - ill put it up soon if I do)

    That will get you there quick and simple. If you have big plans in the
    future though, you might be better off checking out solr or embedded solr.

    - Mark

    Alex Wang wrote:
    Hi all,

    To allow mutilple users concurrently add, delete docs and at the same time search the same index, what should I watch out for in terms of initing indexreader, indexwriter and indexsearcher?

    My application is getting various IOException (seek failed, permission denied, etc...) when concurrent add/delete/search happens. Is there any general guidelines that you can share? Thanks in advance!

    Alex

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]
  • Jason Rutherglen at Aug 7, 2008 at 2:07 pm
    The contrib realtime search patch enables the functionality you described.
    https://issues.apache.org/jira/browse/LUCENE-1313
    On Wed, Aug 6, 2008 at 7:45 PM, Alex Wang wrote:


    Hi all,

    To allow mutilple users concurrently add, delete docs and at the same time
    search the same index, what should I watch out for in terms of initing
    indexreader, indexwriter and indexsearcher?

    My application is getting various IOException (seek failed, permission
    denied, etc...) when concurrent add/delete/search happens. Is there any
    general guidelines that you can share? Thanks in advance!

    Alex
  • Alex Wang at Aug 7, 2008 at 2:38 pm
    Thanks Mark and Jason for your responses and your contrib to Lucene. I will try to dig into them and incorporate the ideas into my app. Thanks again!

    Alex

    -----Original Message-----
    From: Jason Rutherglen
    Sent: Thursday, August 07, 2008 10:07 AM
    To: [email protected]
    Subject: Re: Lucene Concurrency Issue

    The contrib realtime search patch enables the functionality you described.
    https://issues.apache.org/jira/browse/LUCENE-1313
    On Wed, Aug 6, 2008 at 7:45 PM, Alex Wang wrote:


    Hi all,

    To allow mutilple users concurrently add, delete docs and at the same time
    search the same index, what should I watch out for in terms of initing
    indexreader, indexwriter and indexsearcher?

    My application is getting various IOException (seek failed, permission
    denied, etc...) when concurrent add/delete/search happens. Is there any
    general guidelines that you can share? Thanks in advance!

    Alex
    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [email protected]
    For additional commands, e-mail: [email protected]

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedAug 6, '08 at 11:46p
activeAug 7, '08 at 2:38p
posts4
users3
websitelucene.apache.org

People

Translate

site design / logo © 2023 Grokbase