You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Tommaso Teofili (JIRA)" <ji...@apache.org> on 2016/01/07 15:37:39 UTC

[jira] [Updated] (OAK-3847) Provide an easy way to parse facets

     [ https://issues.apache.org/jira/browse/OAK-3847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tommaso Teofili updated OAK-3847:
---------------------------------
    Description: 
Current facet results are returned within the rep:facet($propertyname) property of each resulting node. The resulting String [1] is however a bit annoying to parse as it separates label / value by comma so that if label contains a similar pattern parsing may even be buggy.
An easier format for facets should be used, eventually together with an utility class that returns proper objects that client code can consume.

[1] : https://github.com/apache/jackrabbit-oak/blob/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/FacetTest.java#L99

  was:
Current facet results are returned within the rep:facet($propertyname) property of each resulting node. The resulting String [1] is however a bit annoying to parse as it separates label / value by comma so that if label contains a similar pattern parsing may even be buggy.
An easier format for facets should be used, eventually together with an utility class that returns proper objects that client code can consume.


> Provide an easy way to parse facets
> -----------------------------------
>
>                 Key: OAK-3847
>                 URL: https://issues.apache.org/jira/browse/OAK-3847
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: lucene, solr
>            Reporter: Tommaso Teofili
>            Assignee: Tommaso Teofili
>             Fix For: 1.3.14
>
>
> Current facet results are returned within the rep:facet($propertyname) property of each resulting node. The resulting String [1] is however a bit annoying to parse as it separates label / value by comma so that if label contains a similar pattern parsing may even be buggy.
> An easier format for facets should be used, eventually together with an utility class that returns proper objects that client code can consume.
> [1] : https://github.com/apache/jackrabbit-oak/blob/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/FacetTest.java#L99



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)