问题描述:

I need to disable ConcurrentMergeScheduler in Lucene 3.5.0, because it does not work on Google AppEngine due to limitation on thread creation - it is not allowed to create any thread.

Any hints how to do that?

网友答案:

Be careful Google App Engine uses multiple web servers to run your application. So a RAMDirectory does not work, however you can try a GAE specific implementation of lucene for google app engine, or use the Google Search API.

网友答案:

Okay, basically the merger can be supplied in IndexWriterConfig.setMergeScheduler(new SerialMergeScheduler());

After that it is possible to use RAMDirectory with IndexWriter in GAE.

网友答案:

There is a GAE-Specific implementation of Lucene: http://code.google.com/p/gaelucene/

相关阅读:
Top