Concurency with Lucene.NET.

Tags: , , , , , , , , ,
Posted in dotnet, vb, vb.net | No Comments »

I want to use Lucene.NET for fulltext search shared between two apps: one is an ASP.NET MVC application and the other one is a console application. Both applications are supposed to search and update index.
How the concurrency should be handled?
I found a tutorial on ifdefined.com where the similar use case is discussed. My concern is that locking will be a big bottleneck.

PS:
Also I noticed that IndexSearcher uses a snapshot of index and in the tutorial mentioned above searcher is created only when index is updated. Is this a good approach? Can I just create a regular searcher object at each search and if yes what is the overhead?

I found a related question http://stackoverflow.com/questions/193624/does-lucene-net-manage-multiple-threads-accessing-the-same-index-one-indexing-wh what claims that interprocess concurency is safe. Does it mean that it is are no race conditions for index?

Also one very important aspect. What is the performance hit involved if let’s say 10-15 threads are trying to update Lucene index via acquiring shared lock presented in this solution?
Thanks.

Similar:

  1. Search document files in a directory and extract summary Hi all, I have got a need of searching document files (pdf,doc,txt,xls, etc.) residing in a directory. User would enter the search text via a...
  2. Lucene Indexing Hi, I have just started learning Lucene and would like to use it for indexing a table in an existing database. The way I have...
  3. Oracle Text vs Lucene A check using Google turn up anecdotes of companies that switched over to Lucene as Oracle Text just isn’t giving the performance required based on...
  4. Lucene Search with French words I am using Lucene Search. I have uploaded french file with following content. french.txt multim?dia francophone pour l’enseignement du fran?ais langue ?trang?re If I search...
  5. Indexing and searching French text with diacritics in Lucene I am using Lucene Search. I have uploaded french file with following content. french.txt multim?dia francophone pour l’enseignement du fran?ais langue ?trang?re If I search...

Tags: , , , , , , , , ,

Leave a Reply