<?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 Cmis query response misses some matching results in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129506#M35058</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have an installation of Alfresco Community 7.2 and Solr 6 in which we have created our own models with specific types for the documents that are uploaded.&lt;/P&gt;&lt;P&gt;One of these types contains a field with the invoice number, of type text, which when used in CMIS searches does not return the correct result.&lt;/P&gt;&lt;P&gt;Specifically, filtering by field values that begin with '9562%' only returns documents with values '9562300xxx', but there are documents with values '9562301xxx' and '9562302xxx' that do not appear in the response.&lt;BR /&gt;The query always contains an IN_TREE in the filter, so it is always run against SOLR, never against DB.&lt;/P&gt;&lt;P&gt;This is the CMIS query we are executing:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT * FROM ham:factura_cliente_ham WHERE IN_TREE('70b8de21-d8a3-48d9-af58-d4247d1c732c') AND (cmis:creationDate &amp;gt;= '2023-06-01T00:00:00.000Z' AND cmis:creationDate &amp;lt;= '2023-06-30T23:59:59.000Z') AND cxc:cxcNumFactura LIKE '9562%' ORDER BY cmis:lastModificationDate DESC&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Changing the filter to '95623%' or '956230%' still returns only records with '9562300xxx'.&lt;/P&gt;&lt;P&gt;With the filter '9562301xxx' or '9562302xxx' it does return the documents that it had previously omitted.&lt;/P&gt;&lt;P&gt;To run the filter I have tried both "LIKE" and "CONTAINS" operators, and the result is the same.&lt;/P&gt;&lt;P&gt;I have also tried removing the "IN_TREE" operator and using the "LIKE" operator, so the query is executed against the DB, and then it does return all the matching records.&lt;/P&gt;&lt;P&gt;The problem is that when the query is executed against DB we do not have information on the total number of existing records, losing the possibility of paging, which is essential in our case.&lt;/P&gt;&lt;P&gt;We've done a couple of total reindexes but nothing has changed.&lt;/P&gt;&lt;P&gt;Any suggestion will be welcome.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Francesc Blanco&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Answers can be in english or spanish.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2023 07:41:11 GMT</pubDate>
    <dc:creator>fblanco</dc:creator>
    <dc:date>2023-09-21T07:41:11Z</dc:date>
    <item>
      <title>Cmis query response misses some matching results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129506#M35058</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We have an installation of Alfresco Community 7.2 and Solr 6 in which we have created our own models with specific types for the documents that are uploaded.&lt;/P&gt;&lt;P&gt;One of these types contains a field with the invoice number, of type text, which when used in CMIS searches does not return the correct result.&lt;/P&gt;&lt;P&gt;Specifically, filtering by field values that begin with '9562%' only returns documents with values '9562300xxx', but there are documents with values '9562301xxx' and '9562302xxx' that do not appear in the response.&lt;BR /&gt;The query always contains an IN_TREE in the filter, so it is always run against SOLR, never against DB.&lt;/P&gt;&lt;P&gt;This is the CMIS query we are executing:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SELECT * FROM ham:factura_cliente_ham WHERE IN_TREE('70b8de21-d8a3-48d9-af58-d4247d1c732c') AND (cmis:creationDate &amp;gt;= '2023-06-01T00:00:00.000Z' AND cmis:creationDate &amp;lt;= '2023-06-30T23:59:59.000Z') AND cxc:cxcNumFactura LIKE '9562%' ORDER BY cmis:lastModificationDate DESC&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Changing the filter to '95623%' or '956230%' still returns only records with '9562300xxx'.&lt;/P&gt;&lt;P&gt;With the filter '9562301xxx' or '9562302xxx' it does return the documents that it had previously omitted.&lt;/P&gt;&lt;P&gt;To run the filter I have tried both "LIKE" and "CONTAINS" operators, and the result is the same.&lt;/P&gt;&lt;P&gt;I have also tried removing the "IN_TREE" operator and using the "LIKE" operator, so the query is executed against the DB, and then it does return all the matching records.&lt;/P&gt;&lt;P&gt;The problem is that when the query is executed against DB we do not have information on the total number of existing records, losing the possibility of paging, which is essential in our case.&lt;/P&gt;&lt;P&gt;We've done a couple of total reindexes but nothing has changed.&lt;/P&gt;&lt;P&gt;Any suggestion will be welcome.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Francesc Blanco&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Answers can be in english or spanish.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 07:41:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129506#M35058</guid>
      <dc:creator>fblanco</dc:creator>
      <dc:date>2023-09-21T07:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cmis query response misses some matching results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129507#M35059</link>
      <description>&lt;P&gt;How is defined the property &lt;EM&gt;cxc:cxcNumFactura &lt;/EM&gt;in the Content Model?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 10:03:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129507#M35059</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2023-09-21T10:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cmis query response misses some matching results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129508#M35060</link>
      <description>&lt;P&gt;Hi Angel,&lt;/P&gt;&lt;P&gt;This is the XML property definition in the Content Model:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;property name="cxc:cxcNumFactura"&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;title&amp;gt;Número Factura&amp;lt;/title&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;mandatory enforced="true"&amp;gt;true&amp;lt;/mandatory&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;default&amp;gt;-&amp;lt;/default&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;index enabled="true"&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;atomic&amp;gt;true&amp;lt;/atomic&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;stored&amp;gt;false&amp;lt;/stored&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tokenised&amp;gt;both&amp;lt;/tokenised&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/index&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&amp;lt;/property&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 10:13:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129508#M35060</guid>
      <dc:creator>fblanco</dc:creator>
      <dc:date>2023-09-21T10:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cmis query response misses some matching results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129509#M35061</link>
      <description>&lt;P&gt;Tokenized BOTH doesn't support that kind of queries.&lt;/P&gt;
&lt;P&gt;You need to change to FALSE.&lt;/P&gt;
&lt;P&gt;This requires re-indexation.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 13:35:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129509#M35061</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2023-09-21T13:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Cmis query response misses some matching results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129510#M35062</link>
      <description>&lt;P&gt;We have changed Tokenised property to FALSE in all the properties of all our custom models, and full re-indexation done, but the behavior don't change.&lt;/P&gt;&lt;P&gt;What kind of queries doesn't support tokenised BOTH? Is for the operators or for the sentence?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2023 06:43:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129510#M35062</guid>
      <dc:creator>fblanco</dc:creator>
      <dc:date>2023-09-22T06:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cmis query response misses some matching results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129511#M35063</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Any other suggestions as to why filtering on &lt;EM&gt;cxc:cxcNumFactura LIKE '&lt;STRONG&gt;9562&lt;/STRONG&gt;%'&lt;/EM&gt; does not return documents where the value of cxc:cxcNumFactura is &lt;STRONG&gt;9562&lt;/STRONG&gt;301xxx or &lt;STRONG&gt;9562&lt;/STRONG&gt;302xxx, but filtering on &lt;EM&gt;cxc:cxcNumFactura LIKE '&lt;STRONG&gt;9562&lt;/STRONG&gt;301%'&lt;/EM&gt; does return matching documents?&lt;BR /&gt;Do you need any extra information?&lt;BR /&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 08:58:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-query-response-misses-some-matching-results/m-p/129511#M35063</guid>
      <dc:creator>fblanco</dc:creator>
      <dc:date>2023-09-28T08:58:48Z</dc:date>
    </item>
  </channel>
</rss>

