2009/8/25 Wouter Zelle <[email protected]>

> Hi guys,
>
> I've tested a FACETS call for a property with multiple values and I get
> this
> result:
>
> <hippo:facets xmlns:hippo="http://hippo.nl/slide";>
>    <property xmlns="http://hippo.nl/cms/1.0";>
>        <hippo:value hits="1">value1</hippo:value>
>        <hippo:value hits="1">value1,value2</hippo:value>
>    </property>
> </hippo:facets>
>
> Where I would like the query to split up the values for the property, so
> you
> get this result:
>
> <hippo:facets xmlns:hippo="http://hippo.nl/slide";>
>    <property xmlns="http://hippo.nl/cms/1.0";>
>        <hippo:value hits="2">value1</hippo:value>
>        <hippo:value hits="1">value2</hippo:value>
>    </property>
> </hippo:facets>
>
> Is this possible, or am I out of luck?


It's your lucky day! Use a different analyzer for this property:
<property
analyzer="nl.hippo.slide.index.analysis.LowercaseCommaSeparatedAnalyzer"
name="myCSVProperty" namespace="http://hippo.nl/cms/1.0"; type="text"/>

Jasha

>
>
> Regards,
>
> Wouter Zelle
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
>
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>
>
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to