lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrQuerySyntax" by JaapBoerma
Date Sun, 23 Oct 2011 13:13:29 GMT
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 JaapBoerma:
http://wiki.apache.org/solr/SolrQuerySyntax?action=diff&rev1=27&rev2=28

Comment:
Added special characters that need escaping in queries

  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/2_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.

Mime
View raw message