Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SolrQuerySyntax" page has been changed by HossMan: http://wiki.apache.org/solr/SolrQuerySyntax?action=diff&rev1=29&rev2=30 Comment: these are not special to solr, they are specific to the LuceneQParser <<Anchor(lucene)>> = Default QParserPlugin: LuceneQParserPlugin = - The standard Solr Query Parser syntax is a superset of the [[http://lucene.apache.org/java/2_9_1/queryparsersyntax.html|Lucene Query Parser syntax]]. + The standard Solr Query Parser syntax is a superset of the [[http://lucene.apache.org/java/3_4_0/queryparsersyntax.html|Lucene Query Parser syntax]]. [[http://lucene.apache.org/java/3_4_0/queryparsersyntax.html#Escaping%20Special%20Characters|Certain characters as special]] and those characters need to be escaped using quotes or a backslash if you want them to be treated as literals. For example, to search for {{{(1+1):2}}} use one of the following syntaxes... + + {{{ + \(1\+1\)\:2 + "(1+1):2" + }}} == Differences From Lucene Query Parser == @@ -68, +73 @@ See also SolrPlugins for information on writing your own query parser. <<Anchor(urlescaping)>> - - = Special Characters in SOLR = - - The following characters are used by the [[http://lucene.apache.org/java/3_4_0/queryparsersyntax.html#Escaping%20Special%20Characters|query syntax]] and should be escaped to use any of these: - - {{{ - + - && || ! ( ) { } [ ] ^ " ~ * ? : \ - }}} - - To escape these characters, use a single \ before the character. For example, to search for (1+1):2 use the query: - - {{{ - \(1\+1\)\:2 - }}} - = NOTE: URL Escaping Special Characters = Please note that many characters in the Solr Query Syntax (most notable the plus sign: "`+`") are special characters in URLs, so when constructing request URLs manually, you must properly URL-Encode these characters.
