Steven Bethard created CTAKES-67:
------------------------------------
Summary: LuceneDictionaryImpl and iv_maxHits
Key: CTAKES-67
URL: https://issues.apache.org/jira/browse/CTAKES-67
Project: cTAKES
Issue Type: Bug
Components: ctakes-dictionary-lookup
Affects Versions: 2.6-incubating, 3.0-incubating
Reporter: Steven Bethard
The default value for LuceneDictionaryImpl's iv_maxHits is Integer.MAX_VALUE,
and this class uses iv_maxHits in this call:
topDoc = iv_searcher.search(query.parse(str.replace('-', ' ')),
iv_maxHits);
This search method is only intended for use with a max hits up to about 100
items:
https://issues.apache.org/jira/browse/LUCENE-4368?focusedCommentId=13451578&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13451578
If you really want all the hits, then it'll speed things up (by a lot, in my
experience) to write a simple Collector subclass that just collects them all.
--
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