Often adding &debugQuery=on to the URL can show you very useful information
that helps pinpoint the problem. I confess I don't see anything amiss in
what
you've shown though.

Also, look at the "schema browser" page off the admin page, and look
at your "themes" field to see what is actually in your index, it may
surprise you..

Finally, the admin/analysis page (turn debug on) may also help you to see
exactly what tokenization is happening when indexing and querying. I'd guess
that the behavior isn't exactly what you expect.

Best
Erick


On Wed, Jan 5, 2011 at 10:47 AM, PeterKerk <vettepa...@hotmail.com> wrote:

>
> 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.
>

Reply via email to