Madhan Neethiraj created ATLAS-3983:
---------------------------------------

             Summary: Update handling of special characters in query-value for 
index-search
                 Key: ATLAS-3983
                 URL: https://issues.apache.org/jira/browse/ATLAS-3983
             Project: Atlas
          Issue Type: Improvement
          Components:  atlas-core
            Reporter: Madhan Neethiraj
            Assignee: Madhan Neethiraj


When query-value contains special characters, {{+-&|!(){}[]^"~*?:\/}}, Atlas 
skips index-search and switches to graph-query, which could be expensive. 
Index-search can still be used by escaping the special characters with a 
backslash, per following Lucene documentation 
[here|https://lucene.apache.org/core/6_5_1/queryparser/org/apache/lucene/queryparser/classic/package-summary.html#Escaping_Special_Characters]:

{noformat}
Escaping Special Characters
Lucene supports escaping special characters that are part of the query syntax. 
The current list special characters are

+ - && || ! ( ) { } [ ] ^ " ~ * ? : \ /

To escape these character use the \ before the character. For example to search 
for (1+1):2 use the query:

\(1\+1\)\:2
{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to