[ https://issues.apache.org/jira/browse/SOLR-5201?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13753823#comment-13753823 ]
Hoss Man commented on SOLR-5201: -------------------------------- [~teofili]: I'm not sure what kind of state the AnalysisEngine maintains that might be reused/pollute subsequent requests, but there are two things you could do to "cache" an AnalysisEngine for various durations depending on what you're looking for... * you could create & cache the engine in the UIAMAUpdateRequestProcessor object and then it will be re-used for each document included in a single update request * you could create & cache the engine in the UIAMAUpdateRequestProcessorFactory, passing it to each UIAMAUpdateRequestProcessor it creates, and then it will be re-used for every document included in every request. > UIMAUpdateRequestProcessor should reuse the AnalysisEngine > ---------------------------------------------------------- > > Key: SOLR-5201 > URL: https://issues.apache.org/jira/browse/SOLR-5201 > Project: Solr > Issue Type: Improvement > Components: contrib - UIMA > Affects Versions: 4.4 > Reporter: Tommaso Teofili > Assignee: Tommaso Teofili > Fix For: 4.5, 5.0 > > > As reported in http://markmail.org/thread/2psiyl4ukaejl4fx > UIMAUpdateRequestProcessor instantiates an AnalysisEngine for each request > which is bad for performance therefore it'd be nice if such AEs could be > reused whenever that's possible. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org