[ https://issues.apache.org/jira/browse/LUCENE-1599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718419#action_12718419 ]
Billow Gao commented on LUCENE-1599: ------------------------------------ Just uploaded the testcase TestSpanRegexBug.java. Sorry, I should write the test case earlier. Forgot to check my email on this account. Here is the testcase. The problem is very clear. When there is a SpanNearQuery query which have SpanRegexQuery in it. And MultiSearcher is used, the query will only be rewritten once on the first IndexSearcher in the MultiSearcher. So only terms in the first IndexSearcher are used. And of course, it will fail on other IndexSearchers since it didn't use terms in those IndexSearchers. Billow > SpanRegexQuery and SpanNearQuery is not working with MultiSearcher > ------------------------------------------------------------------ > > Key: LUCENE-1599 > URL: https://issues.apache.org/jira/browse/LUCENE-1599 > Project: Lucene - Java > Issue Type: Bug > Components: contrib/* > Affects Versions: 2.4.1 > Environment: lucene-core 2.4.1, lucene-regex 2.4.1 > Reporter: Billow Gao > Attachments: TestSpanRegexBug.java > > Original Estimate: 2h > Remaining Estimate: 2h > > MultiSearcher is using: > queries[i] = searchables[i].rewrite(original); > to rewrite query and then use combine to combine them. > But SpanRegexQuery's rewrite is different from others. > After you call it on the same query, it always return the same rewritten > queries. > As a result, only search on the first IndexSearcher work. All others are > using the first IndexSearcher's rewrite queries. > So many terms are missing and return unexpected result. > Billow -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org For additional commands, e-mail: java-dev-h...@lucene.apache.org