Details
-
Question
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.3.1Addons
-
None
-
None
Description
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.