jira-importer commented on issue #503: URL: https://github.com/apache/maven-indexer/issues/503#issuecomment-2965146046
**[Igor Fedorenko](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=igorf)** commented DefaultIteratorResultSet executed Query#rewrite(IndexReader) for each ArtifactInfo/MatchHighlightRequest. This was always redundant, but in Lucene 3.0.3 (and likely earlier) Query#rewrite was relatively inexpensive and redundant calls did not cause obvious problems. In Lucene 3.6.1 Query#rewrite performance comparably with earlier version for one indexing context but becomes slower as number of indexing contexts involved in the search grows. The proposed solution is to invoke Query#rewrite only once for each MatchHighlightRequest and then reuse the same rewritten query for all ArtifactInfo -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
