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

Nobody?
Should I file a bug?

Kai

-----Original Message-----
From: Kai Gülzau [mailto:kguel...@novomind.com] 
Sent: Tuesday, February 05, 2013 2:31 PM
To: solr-user@lucene.apache.org
Subject: which analyzer is used for facet.query?

Hi all,

which analyzer is used for the facet.query?


This is my schema.xml:

<fieldType name="uima_nouns_de" class="solr.TextField" 
positionIncrementGap="100">
  <analyzer type="index">
    <tokenizer class="solr.UIMATypeAwareAnnotationsTokenizerFactory" 
descriptorPath="/uima/AggregateSentenceDEAE.xml"
      tokenType="org.apache.uima.TokenAnnotation" featurePath="posTag"/>
    <filter class="solr.TypeTokenFilterFactory" useWhitelist="true" 
types="/uima/whitelist_de.txt" />
  </analyzer>
  <analyzer type="query">
    <tokenizer class="solr.WhitespaceTokenizerFactory"/>
  </analyzer>
</fieldType>
...
<field name="albody_de" type="uima_nouns_de" indexed="true" stored="true" 
multiValued="false" omitTermFreqAndPositions="false" termVectors="true" 
termPositions="false" termOffsets="false" />


When doing a faceting search like:

http://localhost:8983/solr/slave/select?q=*:*&fq=type:7&rows=0&wt=json&indent=true&facet=true&facet.query=albody_de:Klaus

The UIMA whitespace tokenizer logs some infos:
Feb 05, 2013 2:23:06 PM WhitespaceTokenizer process Information: "Whitespace 
tokenizer starts processing"
Feb 05, 2013 2:23:06 PM WhitespaceTokenizer process Information: "Whitespace 
tokenizer finished processing"


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?

Regards,

Kai Gülzau



Reply via email to