lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From PeterKerk <vettepa...@hotmail.com>
Subject Searching similar values for same field results in different results
Date Wed, 05 Jan 2011 15:47:23 GMT

Something weird is happening.

I have locations that can have 1 or more themes.
A theme can be: "Kasteel en Landgoed", or a theme can be "Strand en Zee"

I checked in the database, there are many locations that have 1 or more of
these themes assigned to it.

Also in the response xml when I do a general search I get:
<lst name="facet_counts">
<lst name="facet_queries"/>
<lst name="facet_fields">
<lst name="themes_raw">
	<int name="Hotel en Restaurant">366</int>
	<int name="Kasteel en Landgoed">153</int>    <----- 153 found
	<int name="Strand en Zee">16</int>	<----- 16 found
</lst>


When I request this:
http://localhost:8983/solr/db/select/?indent=on&facet=true&fq=themes:%22Strand%20en%20Zee%22&q=*:*&fl=id,title
I get 16 results. Which is expected.

When I request this:
http://localhost:8983/solr/db/select/?indent=on&facet=true&fq=themes:%22Kasteel%20en%20Landgoed%22&q=*:*&fl=id,title
I get 0 results!!!

why?!?


definition in schema.xml:


<field name="themes" type="text" indexed="true" stored="true"
multiValued="true"  />
<field name="themes_raw" type="string" indexed="true" stored="true"
multiValued="true"/>

<copyField source="themes" dest="themes_raw"/>

Why are these results differing?
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Searching-similar-values-for-same-field-results-in-different-results-tp2199269p2199269.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message