lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Male (JIRA)" <>
Subject [jira] [Created] (LUCENE-3041) Support Query Visting / Walking
Date Fri, 22 Apr 2011 14:12:05 GMT
Support Query Visting / Walking

                 Key: LUCENE-3041
             Project: Lucene - Java
          Issue Type: Improvement
          Components: Search
            Reporter: Chris Male
            Priority: Minor

Out of the discussion in LUCENE-2868, it could be useful to add a generic Query Visitor /
Walker that could be used for more advanced rewriting, optimizations or anything that requires
state to be stored as each Query is visited.

We could keep the interface very simple:

public interface QueryVisitor {
  Query visit(Query query);

and then use a reflection based visitor like Earwin suggested, which would allow implementators
to provide visit methods for just Querys that they are interested in.

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message