Re: Solr special characters like '(' and ''?

2014-04-10 Thread rulinma
mark. -- View this message in context: http://lucene.472066.n3.nabble.com/Solr-special-characters-like-and-tp4129854p4130333.html Sent from the Solr - User mailing list archive at Nabble.com.

Re: Solr special characters like '(' and ''?

2014-04-09 Thread Philip Durbin
PM, Peter Kirk p...@alpha-solutions.dk wrote: Hi How to search for Solr special characters like '(' and ''? I am trying to execute searches for products in my Solr (3.6.1) index, based on the categories to which these products belong. The categories are stored in a multistring field

Re: Solr special characters like '(' and ''?

2014-04-09 Thread Shawn Heisey
On 4/9/2014 8:39 AM, Philip Durbin wrote: Filtering out special characters sounds like a good idea, or possibly escaping some of them. I definitely want to avoid brittleness. Right now I'm passing the query relatively as is which means users can type title:foo to find documents that have foo

Re: Solr special characters like '(' and ''?

2014-04-09 Thread Erick Erickson
Note that when I mentioned filter these characters out I had something like PatternReplaceCharFilterFactory or LowerCaseTokenizer in mind rather than you having to do it manually. Doesn't help figuring out what to escape on the URL though. Best, Erick On Wed, Apr 9, 2014 at 8:05 AM, Shawn Heisey

Re: Solr special characters like '(' and ''?

2014-04-09 Thread Furkan KAMACI
Hi; I have developed a Search API for such kind of cases and generate Solr query within that API. I have also have my own query syntax. When a search query comes into my API I generate query and does not allow for something like *:*. On the other hand I escape query string and append the

Solr special characters like '(' and ''?

2014-04-08 Thread Peter Kirk
Hi How to search for Solr special characters like '(' and ''? I am trying to execute searches for products in my Solr (3.6.1) index, based on the categories to which these products belong. The categories are stored in a multistring field for the products, and are hierarchical, and are fed

Re: Solr special characters like '(' and ''?

2014-04-08 Thread Ahmet Arslan
Hi Peter, TermQueryParser is useful in your case.  q={!term f=categories_string}A|B|D (E F) On Tuesday, April 8, 2014 4:37 PM, Peter Kirk p...@alpha-solutions.dk wrote: Hi How to search for Solr special characters like '(' and ''? I am trying to execute searches for products in my Solr

Re: Solr special characters like '(' and ''?

2014-04-08 Thread Erick Erickson
, Peter Kirk p...@alpha-solutions.dk wrote: Hi How to search for Solr special characters like '(' and ''? I am trying to execute searches for products in my Solr (3.6.1) index, based on the categories to which these products belong. The categories are stored in a multistring field for the products

RE: Solr special characters like '(' and ''?

2014-04-08 Thread Peter Kirk
to strip out the special characters. I'm working on the search side of things. /Peter -Original Message- From: Erick Erickson [mailto:erickerick...@gmail.com] Sent: 8. april 2014 16:15 To: solr-user@lucene.apache.org; Ahmet Arslan Subject: Re: Solr special characters like '(' and ''? I'd

Re: Solr special characters like '(' and ''?

2014-04-08 Thread T. Kuro Kurosaka
as %26. On 04/08/2014 06:37 AM, Peter Kirk wrote: Hi How to search for Solr special characters like '(' and ''? Kuro