I'm currently trying to speed up my Zend Lucene index . It contains about 1M documents. In some cases, the search takes up to 0.4 seconds. This is unacceptable. I would like it to be able to return results within 0.1 s.
The documentation does not contain any information about engine performance problems, except that the engine scales well. The only thing I learned was the ability to use the method optimize(). However, this is not enough. So I have two questions:
optimize()
Is the order of the fields in each line (document) maintained?
Are there any additional options that I could use to speed it up? Perhaps this may be some parameter used to index or configure the server (more memory, etc.).
I would suggest switching to a real Lucene (or Solr) for better performance.
Otherwise, try to reduce the number of fields that you store and / or index. Perhaps run ulimit on your web server process to free up more memory.