<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do I find all the documents with multiple values in a property? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27053#M11648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you can do that with the public API you should be able to do it with the Java API as well, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2017 20:38:12 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2017-11-21T20:38:12Z</dc:date>
    <item>
      <title>How do I find all the documents with multiple values in a property?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27047#M11642</link>
      <description>I have a property which can have multiple values, but it typically only has one value. It is defined as:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="sc&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;roductName"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Products&amp;lt;/title&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;mandatory&amp;gt;false&amp;lt;/mandatory&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;</description>
      <pubDate>Mon, 20 Nov 2017 20:59:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27047#M11642</guid>
      <dc:creator>xkahn</dc:creator>
      <dc:date>2017-11-20T20:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find all the documents with multiple values in a property?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27048#M11643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no query variant via default Alfresco Java APIs or any of the search languages for this particular use case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 22:24:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27048#M11643</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-11-20T22:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find all the documents with multiple values in a property?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27049#M11644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;B&gt;Axel Faust&lt;/B&gt;‌ is usually correct about these things. I will ask around to see if we have a recommendation for this query.&lt;/P&gt;&lt;P&gt;It would help me to better understand the context around this requirement. What causes you to need to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 00:39:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27049#M11644</guid>
      <dc:creator>resplin</dc:creator>
      <dc:date>2017-11-21T00:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find all the documents with multiple values in a property?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27050#M11645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect you are right. I'd be happy to use Solr directly if it supported the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess the best solution is to find all the documents with the property set at all... And then iterate through the results to find the documents I need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 03:10:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27050#M11645</guid>
      <dc:creator>xkahn</dc:creator>
      <dc:date>2017-11-21T03:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find all the documents with multiple values in a property?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27051#M11646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah. I'm trying to align the metadata in two different repositories. This property is split in the other repo. (Singleton value property and then multivariate property if more than one value is needed.) I wanted to see how much work this was going to be.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 03:17:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27051#M11646</guid>
      <dc:creator>xkahn</dc:creator>
      <dc:date>2017-11-21T03:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find all the documents with multiple values in a property?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27052#M11647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way you can do that today is with the public API in 5.2.1. This should count the number of titles for each doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; "query": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "query": "name:*"&lt;BR /&gt;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "facetFields": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "facets": [&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {"field": "DBID", "label": "DBID"}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ]&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;BR /&gt;&amp;nbsp; "stats": [{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "field" : "title",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; "label" : "Title"&lt;BR /&gt;&amp;nbsp; }],&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "pivots" : [&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"key": "DBID",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"pivots": [&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"key": "Title"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;]&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not have a way to get rid of counts you do not want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In earlier versions you could go direct to SOLR and use the JSON facet API where you can expose what would normally be the "having" clause on the aggregate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be a a bit of a pain as you will have to pick the correct field from the real solr schema.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 10:45:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27052#M11647</guid>
      <dc:creator>andy1</dc:creator>
      <dc:date>2017-11-21T10:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find all the documents with multiple values in a property?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27053#M11648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you can do that with the public API you should be able to do it with the Java API as well, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 20:38:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27053#M11648</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-11-21T20:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find all the documents with multiple values in a property?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27054#M11649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Yes, you can do it in the Java API as that is how we implement the public API - but again only on 5.2.1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general the public API is cleaner. The Java API has a couple of oddities for things like multi-select facets - but these do not matter for this case.&lt;BR /&gt;They were a pain to do in a backwards compatible way with the Java API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 12:04:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-do-i-find-all-the-documents-with-multiple-values-in-a/m-p/27054#M11649</guid>
      <dc:creator>andy1</dc:creator>
      <dc:date>2017-11-22T12:04:20Z</dc:date>
    </item>
  </channel>
</rss>

