Problem using same instance of indexSearcher for multiple requests

后端 未结 7 934
半阙折子戏
半阙折子戏 2020-11-30 14:47

Am using Lucene API in a .net web application. I want to use the same instance of Indexsearcher for all the requests.Hence am storing indexsearcher instance in http cache.<

相关标签:
7条回答
  • 2020-11-30 15:24

    I also have a web application that uses the Lucene API to query (my web app does not writes on the index) and I create a new instance of the searcher for every request. It might not be very "performant" but I never had that kind of problem.

    If you'd like, my web app is on Google Code so you can download the source code and take a look at what I did. Here's the url to the project http://code.google.com/p/goomez/

    0 讨论(0)
提交回复
热议问题