Re: Synonyms and hyphens

2012-07-10 Thread Chris Hostetter
Which version of Solr are you using? : Terms with embedded special characters are treated as phrases with spaces in : place of the special characters. So, "gb-mb" is treated as if you had enclosed : the term in quotes. take a look at "autoGeneratePhraseQueries" option on your field type ... dep

Re: Synonyms and hyphens

2012-07-04 Thread Jack Krupansky
You could pre-process your queries to convert hyphen and other special characters to spaces. -- Jack Krupansky -Original Message- From: Alireza Salimi Sent: Wednesday, July 04, 2012 12:56 PM To: solr-user@lucene.apache.org Subject: Re: Synonyms and hyphens ok, so how can I prevent

Re: Synonyms and hyphens

2012-07-04 Thread Alireza Salimi
eza Salimi > Sent: Wednesday, July 04, 2012 12:05 PM > > To: solr-user@lucene.apache.org > Subject: Re: Synonyms and hyphens > > Wow, I didn't know that. Is there a way to disable this feature? I mean, is > it something coming from the Analyzer? > > On Wed, Jul 4, 2012 at 12:26

Re: Synonyms and hyphens

2012-07-04 Thread Jack Krupansky
Krupansky -Original Message- From: Alireza Salimi Sent: Wednesday, July 04, 2012 12:05 PM To: solr-user@lucene.apache.org Subject: Re: Synonyms and hyphens Wow, I didn't know that. Is there a way to disable this feature? I mean, is it something coming from the Analyzer? On Wed,

Re: Synonyms and hyphens

2012-07-04 Thread Alireza Salimi
So, "gb-mb" is treated as if you had > enclosed the term in quotes. > > -- Jack Krupansky > -Original Message- From: Alireza Salimi > Sent: Wednesday, July 04, 2012 6:50 AM > To: solr-user@lucene.apache.org > Subject: Re: Synonyms and hyphens > > > Hi

Re: Synonyms and hyphens

2012-07-04 Thread Jack Krupansky
M To: solr-user@lucene.apache.org Subject: Re: Synonyms and hyphens Hi, Does anybody know why hyphen '-' and q.op=AND causes such a big difference between the two queries? I thought hyphens are removed by StandardTokenizer which means theoretically the two queries should be the same! T

Re: Synonyms and hyphens

2012-07-04 Thread Alireza Salimi
Hi, Does anybody know why hyphen '-' and q.op=AND causes such a big difference between the two queries? I thought hyphens are removed by StandardTokenizer which means theoretically the two queries should be the same! Thanks On Tue, Jul 3, 2012 at 4:05 PM, Alireza Salimi wrote: > Hi, > > I'm not