jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Brosius <dbros...@apache.org>
Subject LuceneQueryBuilder.visit on RelationQueryNode seems to handle null relPaths oddly
Date Wed, 21 Dec 2011 04:03:18 GMT
  Seems like absolute paths with similar and spellcheck operations are 
flawed if I'm reading the code correctly.



    public Object visit(RelationQueryNode node, Object data) throws 
RepositoryException {
         PathQueryNode relPath = node.getRelativePath();
         if (*relPath* == null
&& node.getOperation() != QueryConstants.OPERATION_SIMILAR
&& node.getOperation() != QueryConstants.OPERATION_SPELLCHECK) {
             exceptions.add(new InvalidQueryException("@* not supported 
in predicate"));
             return data;
         }
         LocationStepQueryNode[] steps = *relPath*.getPathSteps();

Mime
View raw message