You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Piotr Tajduś (Jira)" <ji...@apache.org> on 2019/08/22 11:21:00 UTC

[jira] [Created] (OAK-8571) FullTextSearchImpl.copyOf() - relative path lost in copy

Piotr Tajduś created OAK-8571:
---------------------------------

             Summary: FullTextSearchImpl.copyOf() - relative path lost in copy
                 Key: OAK-8571
                 URL: https://issues.apache.org/jira/browse/OAK-8571
             Project: Jackrabbit Oak
          Issue Type: Bug
          Components: core
    Affects Versions: 1.14.0
            Reporter: Piotr Tajduś


Property passed in constructor to FullTextSearchImpl is split and stored as relativePath and propertyName. In method copyOf only propertyName is passed and relativePath is lost in new instance:

@Override
 public AstElement copyOf() {
 return new FullTextSearchImpl(selectorName, propertyName, fullTextSearchExpression);
 }

Because of that  alternative query may be constrainted by non existing properties, f.e. instead of  CONTAINS([d].[metadane/korespondent/*/*/nazwa] we have contains([d].[nazwa],

 

 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)