s1monw commented on a change in pull request #581: LUCENE-3041: QueryVisitor
URL: https://github.com/apache/lucene-solr/pull/581#discussion_r260213580
##########
File path:
lucene/sandbox/src/java/org/apache/lucene/search/TermAutomatonQuery.java
##########
@@ -492,4 +492,15 @@ public Query rewrite(IndexReader reader) throws
IOException {
// TODO: we could maybe also rewrite to union of PhraseQuery (pull all
finite strings) if it's "worth it"?
return this;
}
+
+ @Override
+ public void visit(QueryVisitor visitor) {
+ for (BytesRef term : termToID.keySet()) {
+ QueryVisitor v = visitor.getSubVisitor(BooleanClause.Occur.SHOULD, this);
Review comment:
pulled more than once?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]