[TYPO3-Solr] jumbled facets

Michael Mcmanus michaelorionmcmanus at gmail.com
Tue Jan 17 02:52:30 CET 2012


Hi All,

I finally have the opportunity to really tune a solr setup for a project 
I'm working on now. So far everything's gone really well – thanks to 
everyone working on this, it's really well done.

The only issue I'm having right now is in getting facets set up 
properly. I'm not sure if the issue is on the TYPO3 end of things, or if 
it has to do with Solr configuration.

Here's the problem:

I've configured a mutivalue field, in an indexer. I've followed the 
tt_news example for the keywords fields and my TS looks like this:

keywords = SOLR_MULTIVALUE
keywords {
	field = keywords
}

The records appear to get indexed properly. Querying Solr directly, 
yields a response like this:

<arr name="keywords">
     <str>Photography</str>
     <str>explosion</str>
     <str>Toedtemeier</str>
</arr>

So far, so good.

When I try to query for facets, the "keywords" values get all jumbled.

This query: 
"q=photography&rows=0&facet=true&facet.limit=-1&facet.field=keywords"

Produces this result:

<result name="response" numFound="12" start="0"/>
<lst name="facet_counts">
     <lst name="facet_queries"/>
         <lst name="facet_fields">
         <lst name="keywords">
             <int name="basketbal">0</int>
             <int name="bill">0</int>
             <int name="explos">1</int>
             <int name="photographi">1</int>
             <int name="tiffani">0</int>
             <int name="toedtemei">1</int>
             <int name="walton">0</int>
         </lst>
      </lst>
<lst name="facet_dates"/>
</lst>
</response>

So, "Photography" gets turned into "photographi", "explosion" becomes 
"explos," etc...

Am I doing something dumb? To be honest, I've searched around a bit, but 
since it appears that it's Solr that's causing the issue, I don't have 
enough experience with it yet to know where to look. Any guidance anyone 
might be able to offer would be greatly appreciated!

All the Best,
Michael



More information about the TYPO3-project-solr mailing list