Try with quotes or escaping whitespaces:
fq:"Management en Organisatie"
...or
fq:Management\ en\ Organisatie

Make sure you use the correct case.

Tomás


On Mon, Dec 31, 2012 at 6:54 AM, PeterKerk <vettepa...@hotmail.com> wrote:

> I'm trying to filter on the field functiontitle_nl when the user selects
> "Management en Organisatie", but I'm getting 0 results.
> The actual value in the DB is "Management en Organisatie".
>
> This is the URL I build up to query the Solr index:
>
> http://localhost:8983/solr/zz_vacs/select/?indent=on&facet=true&fq=functiontitle_nl:management%20en%20organisatie&sort=createdate%20desc&q=*:*&start=0&rows=10&fl=id,listingid,title,friendlyurl,logo,description,functiontitle_nl,publishdate,enddate,province,provinceid,city,lat,lng&facet.field=country_raw_nl&facet.field=sectors_raw_nl&facet.field=functiontitle_nl&facet.field=province_raw&facet.field=city&facet.field=advertisertitle&facet.mincount=1
>
> I know the value in the URL is lowercase, but this has never been a problem
> with other projects I have had. Also when I change the URL to match the
> casing in the DB it still doesn't work.
>
> I also tried text_ws and text as type instead of string, but then the
> functiontitle_nl facet in the browser will break up the value in separate
> words: "Management" "en" "Organisatie".
> I tried the tokenizer test tools in the Solr admin panel, but I'm not sure
> what to enter and can't make sense of the results.
> I have restarted and re-indexed Solr every time I changed something in the
> schema.xml (and even data-config.xml)
>
> Definition of functiontitle_nl in my schema.xml:
> <fieldType name="string" class="solr.StrField" sortMissingLast="true"
> omitNorms="true" />
>
> <field name="functiontitle_nl" type="string" indexed="true" stored="true"/>
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Filter-on-multiple-word-field-of-type-string-not-showing-any-results-tp4029765.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to