Re: dealing with dash chars in fields when using dismax

2010-06-13 Thread Lance Norskog
There will always be edge cases and the parser cannot be all things to all people. Most applications have an application layer that create the actual Solr query, and that is where you'll have to handle this one. On Sun, Jun 13, 2010 at 8:25 AM, Lukas Kahwe Smith wrote: > > On 13.06.2010, at 17:20

Re: dealing with dash chars in fields when using dismax

2010-06-13 Thread Lukas Kahwe Smith
On 13.06.2010, at 17:20, Erick Erickson wrote: > << work on my end to handle dash both as a special and as a normal char.>>> > > And how would the code know? You're essentially asking for DWIM (Do What I > Mean) functionality, which I've been awaiting for many years > > It seems a reasonabl

Re: dealing with dash chars in fields when using dismax

2010-06-13 Thread Erick Erickson
<<>> I don't think so. Removing would mean that the same exact match search would match documents with and without hyphens. I.e. searching for "my - way" would match either original content of "my way" or "my - way". Whereas escaping the hyphen would cause only the correct exact match to be returne

Re: dealing with dash chars in fields when using dismax

2010-06-13 Thread Lukas Kahwe Smith
On 13.06.2010, at 16:57, Erick Erickson wrote: > Have you tried escaping the dashes? Your dismax definition > and the output from the analysis admin page would also help. sure .. escaping ends up being the same as removing. but i guess it would be the better approach of course. but still is th

Re: dealing with dash chars in fields when using dismax

2010-06-13 Thread Erick Erickson
Have you tried escaping the dashes? Your dismax definition and the output from the analysis admin page would also help. Best Erick On Sun, Jun 13, 2010 at 5:27 AM, Lukas Kahwe Smith wrote: > Hi, > > I am using dismax on solr 1.4 and I am running into an issue with fields > that contain dash char

dealing with dash chars in fields when using dismax

2010-06-13 Thread Lukas Kahwe Smith
Hi, I am using dismax on solr 1.4 and I am running into an issue with fields that contain dash chars: Foo-Bar - Company Now if someone searches for exactly "Foo-Bar - Company" the resulting dismax query would disallow "Company" when trying to find a match. Obviously I could just ignore all "-"