dsmiley commented on issue #581: LUCENE-3041: QueryVisitor
URL: https://github.com/apache/lucene-solr/pull/581#issuecomment-470115757
 
 
   I'm not sure if my comment got lost somewhere but I strongly feel that 
Query.visit should be an abstract method.  Each subclass ought to determine 
what to do; we don't know a suitable default choice.  By having a default 
choice, we let things slip through... for example this patch has forgotten 
about the surround query parser's Query subclasses, and forgetting this means 
that these queries aren't highlighted by the UnifiedHighlighter.  However on 
the backport to 8x I can see the need to implement a default method for 
backwards compatibility.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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]

Reply via email to