Prospective Search in Lucas
---------------------------
Key: UIMA-2327
URL: https://issues.apache.org/jira/browse/UIMA-2327
Project: UIMA
Issue Type: Question
Components: Sandbox-Lucas
Affects Versions: 2.3.1Addons
Reporter: Yanna Kang
I would like to use UIMA Lucas to perform a prospective search. When the search
query is a phrase query, ProspectiveSearchAE.process() could not find the
matching tokens even if there are matches in the document. It worked well for
boolean queries.
In org.apache.uima.lucas.ProspectiveSearchAE line 189, the original code is
scorer.init(tokenStream). I suspect that we need to do tokenStream =
scorer.init(tokenStream). The original tokenStream was consumed in the
scorer.init(tokenStream). If we want to consume it again (as the code did), we
need to use the returned tokenStream, which has been reset to the beginning.
I am a newbie to Lucas. Please correct me if I am wrong.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira