Faceting question...

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Faceting question...

escher2k
I have a document which contains the following facet -
<str name="child_catname">Other - Programming</str>

When I get back the results, the output seems to show
lst name="facet_fields">
        <lst name="child_catname">
<int name="other">1</int>
<int name="program">1</int>
</lst>

Is there any way to prevent "other" and "programming" from being returned as tokens ?

The schema.xml defined this as a string -
<fieldtype name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/>
<field name="child_catname" type="text" indexed="true" stored="true"/>

Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Faceting question...

Chris Hostetter-3

: <fieldtype name="string" class="solr.StrField" sortMissingLast="true"
: omitNorms="true"/>
: <field name="child_catname" type="text" indexed="true" stored="true"/>

your "fhild_catname" isn't using "string" as it's field type -- it's using
"text" (which is most likely using TextField and being tokenized)





-Hoss

Reply | Threaded
Open this post in threaded view
|

Re: Faceting question...

escher2k
Thanks Chris. DUMB of me not to have noticed.

Chris Hostetter wrote
: <fieldtype name="string" class="solr.StrField" sortMissingLast="true"
: omitNorms="true"/>
: <field name="child_catname" type="text" indexed="true" stored="true"/>

your "fhild_catname" isn't using "string" as it's field type -- it's using
"text" (which is most likely using TextField and being tokenized)





-Hoss