Hi Søren,

> On Jul 3, 2015, at 4:27 AM, Søren <s...@syntonetic.com> wrote:
> 
> Thanks Steve! Everything works now.
> A little modification:
> 
>        "analyzer":{
>            "charFilters": [ {"class":"solr.MappingCharFilterFactory", 
> "mapping":"mapping-ISOLatin1Accent.txt"} ],
>            "tokenizer": {"class":"solr.StandardTokenizerFactory"},
>            "filters": [{"class":"solr.LowerCaseFilterFactory"}]
>        }

I’m glad you got it to work.

Yeah, I put square brackets in the wrong place, cool you figured it out and 
fixed it.

> Thankfully, when key is a plural word, the value is an array.
> 
> It was still teasing me when I tested with various queries. But specifying 
> field solved that for me too.
> 
> ...q=brulee        didn't find anything. It goes into to the raw index I guess
> 
> ...q=desert:brulee        did find "Crème brûlée”!

In your query request handler you should specify a “df” param (default field), 
likely under the defaults section (so that it can be overridden via per-request 
param) - this param will work with the dismax, edisma, or wtandard query 
parsers.  The “qf" param, which supports a list of query fields (and field 
aliasing)[1], also works in the dismax and edismax query parsers.

Steve

[1] See section "Field aliasing using per-field qf overrides” on the edismax 
ref guide page: 
<https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser>
 and the qf param  description on the dismax ref guide page: 
<https://cwiki.apache.org/confluence/display/solr/The+DisMax+Query+Parser#TheDisMaxQueryParser-DisMaxParameters>.

Reply via email to