yup.

    <fieldType name="cq_tag" class="solr.TextField"
positionIncrementGap="100">
        <analyzer type="index">
            <tokenizer class="solr.PathHierarchyTokenizerFactory"
delimiter="$"/>
        </analyzer>
        <analyzer type="query">
            <tokenizer class="solr.KeywordTokenizerFactory"/>
        </analyzer>
    </fieldType>

    <field name="colors"             type="cq_tag"      indexed="true"
stored="true" multiValued="true"/><!-- red$pink, blue ... -->
    <field name="colors_facet"      type="string"      indexed="true"
stored="false" multiValued="true"/><!-- red$pink, blue ... -->
    <copyField  source="colors"     dest="colors_facet"/>

and ?facet.field=colors_facet



On Mon, Apr 30, 2012 at 9:35 PM, Chris Hostetter
<hossman_luc...@fucit.org>wrote:

>
> : Is there a tokenizer that tokenizes the string as one token?
>
> Using KeywordTokenizer at query time should do whta you want.
>
>
> -Hoss
>

Reply via email to