REPO-1154 Bring back the fix after revert

This commit is contained in:
Alex Mukha
2017-10-31 15:31:41 +00:00
parent d28296d836
commit 53ab6fb081

View File

@@ -188,7 +188,12 @@ public class QueriesImpl implements Queries, InitializingBean
NodeRef nodeRef = nodes.validateOrLookupNode(rootNodeId, null);
query.append("PATH:\"").append(getQNamePath(nodeRef.getId())).append("//*\" AND (");
}
query.append(term);
if (term != null)
{
query.append("\"");
query.append(term);
query.append("\"");
}
if (rootNodeId != null)
{
query.append(")");