-
Type:
Improvement
-
Status: Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: master (9.0)
-
Fix Version/s: None
-
Component/s: contrib - LTR
-
Labels:None
When using the LTR, open timeAllowed parameter, LTR feature of query may call 'ExitableFilterAtomicReader.CheckAndThrow' timeout checks.
If a timeout occurs at this point, the exception ExitingReaderException is thrown, Lead to null result.
Exception information:
The request took too long to iterate over terms. Timeout: timeoutAt: 50321611131050 (System.nanoTime(): 50321639573838), TermsEnum=org.apache.lucene.codecs.blocktree.SegmentTermsEnum@62eaeeaa
Can hold this exception in the LTR, returning partial results rather than null.
This exception occurs in two places:
1. 'LTRScoringQuery.CreateWeight' or 'LTRScoringQuery.createWeightsParallel'. Here is the loading stage, timeout directly end is acceptable.
2. 'ModelWeight.scorer'. This is a stage that evaluates each Doc and can catch the exception, returns the computed document.