lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: dealing with dash chars in fields when using dismax
Date Sun, 13 Jun 2010 14:57:42 GMT
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 <mls@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
> mls@pooteeweet.org
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message