title: How to prevent special character in solr search
body: <p>Currently I have developed the solr search in my project. Searching is work. But when I put some speical characters like ([ ] white space), I got exceptions.</p>
  
  <pre><code>Caused by: org.apache.lucene.queryParser.ParseException: Cannot parse 'searchable:       ([])': Encountered " "]" "] "" at line 1, column 13.
   Was expecting one of:
   &lt;RANGEIN_QUOTED&gt; ...
   &lt;RANGEIN_GOOP&gt; ...
  
  at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:211)
  at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.java:79)
  at org.apache.solr.search.QParser.getQuery(QParser.java:143)
  at org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:105)
  ... 104 more
  </code></pre>
  
  <p>So, how shall I handle that kind of condition. How can I prevent special characters in searcing box.</p>