<?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: CMIS AND (conjunction) incorrectly finds no results in SOLR in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cmis-and-conjunction-incorrectly-finds-no-results-in-solr/m-p/142118#M37852</link>
    <description>&lt;P&gt;After more investigation it turns out that the LIKE is behaving weirdly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run&lt;/P&gt;&lt;PRE&gt;SELECT * FROM xx:myNodeType&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;returns 3875 results (note that I have adjusted the search query limits to allow for this).&lt;/P&gt;&lt;P&gt;When I manually count the number of nodes in the result where property A starts with the prefix 'ABC' I find that 3672 of those do.&lt;/P&gt;&lt;P&gt;When I then run&lt;/P&gt;&lt;PRE&gt;SELECT * FROM xx:myNodeType WHERE xx.A LIKE 'ABC%'&lt;/PRE&gt;&lt;P&gt;I only find 998 nodes (suspiciously close to the 1000 limit, no?). Where's the rest of the 3800 nodes that should have been included?&lt;/P&gt;&lt;P&gt;When I search for the negation&lt;/P&gt;&lt;PRE&gt;SELECT * FROM xx:myNodeType WHERE xx.A NOT LIKE 'ABC%'&lt;/PRE&gt;&lt;P&gt;I find nodes where property A begins with something else than ABC, which is to be expected. But I also find nodes that DO start with ABC, which is obviously not expected. I find&amp;nbsp;2674 nodes with this property.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I sum the number of nodes that match the LIKE for 'ABC%' and the negation of the like, I get the exact number of nodes that I expected to find with this property after manual counting of all the nodes.&lt;/P&gt;&lt;P&gt;2674 + 998 =&amp;nbsp; 3672&lt;/P&gt;&lt;P&gt;So why does the prefix sometimes match the regex and sometimes don't? Could this be some encoding issue?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2022 07:56:23 GMT</pubDate>
    <dc:creator>jecbm</dc:creator>
    <dc:date>2022-03-29T07:56:23Z</dc:date>
    <item>
      <title>CMIS AND (conjunction) incorrectly finds no results in SOLR</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-and-conjunction-incorrectly-finds-no-results-in-solr/m-p/142117#M37851</link>
      <description>&lt;P&gt;I'm doing a cmis query in SOLR&amp;nbsp;in Search Services 1.2 for the conjunction of two predicates.&lt;/P&gt;&lt;P&gt;Property A is a text property and must match a regex with a fixed prefix followed by a wildcard.&lt;/P&gt;&lt;P&gt;Property B is a datetime property and must have a null value.&lt;/P&gt;&lt;P&gt;When I search for each of these in isolation, I can verify that there's nodes that match both.&lt;/P&gt;&lt;P&gt;IE.&lt;/P&gt;&lt;PRE&gt;SELECT * FROM xx:myNodeType WHERE xx.A LIKE 'ABC%'&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;SELECT * FROM xx:myNodeType WHERE xx.B IS NULL&lt;/PRE&gt;&lt;P&gt;intersects in found results.&lt;/P&gt;&lt;P&gt;Lets assume that the intersection contains a single node where property A is 'ABCD'.&lt;BR /&gt;If I replace the wildcard with an exact match instead of just the prefix and check that property B is null, I am also able to find the node.&lt;/P&gt;&lt;P&gt;I.e.&lt;/P&gt;&lt;PRE&gt;SELECT * FROM xx:myNodeType WHERE xx.A LIKE 'ABCD' and xx.B IS NULL&lt;/PRE&gt;&lt;P&gt;works.&lt;/P&gt;&lt;P&gt;However, when I use the same conjunction with the wildcard query, no results are found.&lt;/P&gt;&lt;P&gt;I.e.&lt;/P&gt;&lt;PRE&gt;SELECT * FROM xx:myNodeType WHERE xx.A LIKE 'ABC%' and xx.B IS NULL&lt;/PRE&gt;&lt;P&gt;There's no errors or anything in the log. The search simply returns an empty list.&lt;/P&gt;&lt;P&gt;Our model has evolved over time and we have around 10000 nodes where some were created before property B was added to the model. My best guess is that the problem is somehow related to this. I have deleted and recreated the SOLR indexes with no effect.&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2022 11:51:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-and-conjunction-incorrectly-finds-no-results-in-solr/m-p/142117#M37851</guid>
      <dc:creator>jecbm</dc:creator>
      <dc:date>2022-03-28T11:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS AND (conjunction) incorrectly finds no results in SOLR</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cmis-and-conjunction-incorrectly-finds-no-results-in-solr/m-p/142118#M37852</link>
      <description>&lt;P&gt;After more investigation it turns out that the LIKE is behaving weirdly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run&lt;/P&gt;&lt;PRE&gt;SELECT * FROM xx:myNodeType&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;returns 3875 results (note that I have adjusted the search query limits to allow for this).&lt;/P&gt;&lt;P&gt;When I manually count the number of nodes in the result where property A starts with the prefix 'ABC' I find that 3672 of those do.&lt;/P&gt;&lt;P&gt;When I then run&lt;/P&gt;&lt;PRE&gt;SELECT * FROM xx:myNodeType WHERE xx.A LIKE 'ABC%'&lt;/PRE&gt;&lt;P&gt;I only find 998 nodes (suspiciously close to the 1000 limit, no?). Where's the rest of the 3800 nodes that should have been included?&lt;/P&gt;&lt;P&gt;When I search for the negation&lt;/P&gt;&lt;PRE&gt;SELECT * FROM xx:myNodeType WHERE xx.A NOT LIKE 'ABC%'&lt;/PRE&gt;&lt;P&gt;I find nodes where property A begins with something else than ABC, which is to be expected. But I also find nodes that DO start with ABC, which is obviously not expected. I find&amp;nbsp;2674 nodes with this property.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I sum the number of nodes that match the LIKE for 'ABC%' and the negation of the like, I get the exact number of nodes that I expected to find with this property after manual counting of all the nodes.&lt;/P&gt;&lt;P&gt;2674 + 998 =&amp;nbsp; 3672&lt;/P&gt;&lt;P&gt;So why does the prefix sometimes match the regex and sometimes don't? Could this be some encoding issue?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 07:56:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cmis-and-conjunction-incorrectly-finds-no-results-in-solr/m-p/142118#M37852</guid>
      <dc:creator>jecbm</dc:creator>
      <dc:date>2022-03-29T07:56:23Z</dc:date>
    </item>
  </channel>
</rss>

