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 <m...@pooteeweet.org>wrote:

> 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 "-" in any query strings, but that would
> prevent power users from prohibiting words is there some magic I can enable
> that would make this use case possible with sensible scoring for the
> results?
>
> Of course I could put in some work on the client side to index things
> accordingly, but I guess in that case I rather just remove support for
> prohibiting words.
>
> regards,
> Lukas Kahwe Smith
> m...@pooteeweet.org
>
>
>
>

Reply via email to