: > So it seems that facet.query is using the analyzer of type index.
: > Is it a bug or is there another analyzer type for the facet query?

That doesn't really make any sense ... 

i don't know much about setting up UIMA (or what/when it logs things) but 
facet.query uses the regular query parser framework, which uses the query 
analyzer for fields when building up queries.

You can see clear evidence of this by looking at the following query using 
the 4.1 example configs...

http://localhost:8983/solr/select?q=name:pixima&fl=name&debugQuery=true

The text_general field type used by the "name" field is configured to use 
synonyms at query time, but not index time, and you can see that it maps 
"pixima" to "pixma" ...

  <str name="querystring">name:pixima</str>
  <str name="parsedquery">name:pixma</str>

If you have the sample documents indexed, you can see a single match for 
the query above, and if you use pixima in a facet.query, you can see the 
expected count... 

http://localhost:8983/solr/select?q=*:*&facet.query=name:pixima&facet=true&rows=0

<result name="response" numFound="32" start="0"/>
<lst name="facet_counts">
  <lst name="facet_queries">
    <int name="name:pixima">1</int>
  </lst>
  ...


-Hoss

Reply via email to