lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: Kate Winslet vs Winslet Kate
Date Sun, 01 Nov 2015 04:27:49 GMT
There are a couple of anomalies here.

1> kate AND winslet
What does the query look like if you add &debug=true to the statement
and look at the "parsed_query" section of the return?  My guess is you
typed "q=name:kate AND winslet" which parses as "q=name:kate AND
default_search_field:winslet" and are getting matches you don't
expect. You need something like "q=name:(kate AND winslet)" or
"q=name:kate AND name:winslet". Note that if you're using eDIsmax it's
more complicated, but that should still honor the intent.

2> I have no idea why searching for "Kate Winslet" in quotes returns
anything, I wouldn't expect it to unless you mean you type in "q=kate
winslet" which is searching against your default field, not the name


On Sat, Oct 31, 2015 at 8:52 PM, Yangrui Guo <> wrote:
> Hi today I found an interesting aspect of solr. I imported IMDB data into
> solr. The IMDB puts last name before first name for its person's name field
> eg. "Winslet, Kate". When I search "Winslet Kate" with quotation marks I
> could get the exact result. However if I search "Kate Winslet" or Kate AND
> Winslet solr seem to return me all result containing either Kate or Winslet
> which is similar to "Winslet Kate"~999999. From user perspective I
> certainly want solr to treat Kate Winslet the same as Winslet Kate. Is
> there anyway to make solr score higher for terms in the same field?
> Yangrui

View raw message