<?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: Query on cmis:name does not return all results in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483714#M39457</link>
    <description>&lt;P&gt;Hello and sorry for the late reply.&lt;BR /&gt;I've changed the query to use "IN_FOLDER" like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select * from cmis:document WHERE IN_FOLDER('workspace://SpacesStore/c22b3fab-ef46-4cc5-8184-47e9e2fd8913') and cmis:name like 'C11-4%'&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Unfortunately the result was no change. It only returns me two of the 3 documents.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 13:48:53 GMT</pubDate>
    <dc:creator>Fabermundi2</dc:creator>
    <dc:date>2024-10-23T13:48:53Z</dc:date>
    <item>
      <title>Query on cmis:name does not return all results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483072#M39361</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a problem when doing a query regarding the document name.&lt;BR /&gt;When I do the following query to show all documents begining with "C11-4":&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select * from cmis:document WHERE cmis:name like 'C11-4%' order by cmis:name desc&lt;/LI-CODE&gt;&lt;P&gt;I get as first result the document with the name "C11-41000.pdf".&lt;BR /&gt;When changing the to show all files beginning with "C11-41"&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select * from cmis:document WHERE cmis:name like 'C11-41%' order by cmis:name desc&lt;/LI-CODE&gt;&lt;P&gt;I get the document "C11-41926" that was not shown with the first query.&lt;/P&gt;&lt;P&gt;Has anyone an idea with the first query does not return all results?&lt;/P&gt;&lt;P&gt;Thank you in advance for your answers.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2024 09:29:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483072#M39361</guid>
      <dc:creator>Fabermundi2</dc:creator>
      <dc:date>2024-10-10T09:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Query on cmis:name does not return all results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483159#M39371</link>
      <description>&lt;P&gt;What is your query consistency mode (set in the request or in your search subsystem)? What type of search system are you using? What version of ACS / ASS (Search Services) are you using?&lt;/P&gt;&lt;P&gt;My first thought: This kind of difference in behaviour points to a SOLR / Search Services based query execution and tokenisation of the query term / name value not matching up. I have seen some similar cases where a number-based name fragment was not matched with a wildcard after the first digit following a token boundary (whitespace, separator, alpha-numeric change). Only with two or more digits before the wildcard would a match work. Ideally, this type of query should be executed against the database where tokenisation would not play a role, and the LIKE operation work exactly like a DB LIKE.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2024 10:55:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483159#M39371</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2024-10-11T10:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query on cmis:name does not return all results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483222#M39380</link>
      <description>&lt;P&gt;Hello and thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm using Alfresco 7.1 with Solr 6 with Search Services 2.0.2.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To have a better use case I've created a folder with only the files&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;C11-40999.pdf&lt;BR /&gt;C11-41000.pdf&lt;BR /&gt;C11-41926.pdf&lt;/P&gt;&lt;P&gt;Then I run the query&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select * from cmis:document WHERE IN_TREE('workspace://SpacesStore/c22b3fab-ef46-4cc5-8184-47e9e2fd8913') and cmis:name like 'C11-4%'&lt;/LI-CODE&gt;&lt;P&gt;To get only the two files&amp;nbsp;&lt;SPAN&gt;C11-40999.pdf and C11-41000.pdf as a result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I understand this right you think that the search engine groups the files and this could be an explanation for this unwanted result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you explain me, how I can run the query against the database? I used the Node browser at the webinterface to run the query as "cmis-alfresco".&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 08:20:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483222#M39380</guid>
      <dc:creator>schulto</dc:creator>
      <dc:date>2024-10-14T08:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query on cmis:name does not return all results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483223#M39381</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://connect.hyland.com/t5/user/viewprofilepage/user-id/158370"&gt;@Fabermundi2&lt;/a&gt;&amp;nbsp;&lt;A href="https://www.gm-socrates.com/" target="_self"&gt;gm-socrates&lt;/A&gt;wrote:&lt;BR /&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a problem when doing a query regarding the document name.&lt;BR /&gt;When I do the following query to show all documents begining with "C11-4":&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select * from cmis:document WHERE cmis:name like 'C11-4%' order by cmis:name desc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get as first result the document with the name "C11-41000.pdf".&lt;BR /&gt;When changing the to show all files beginning with "C11-41"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select * from cmis:document WHERE cmis:name like 'C11-41%' order by cmis:name desc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the document "C11-41926" that was not shown with the first query.&lt;/P&gt;&lt;P&gt;Has anyone an idea with the first query does not return all results?&lt;/P&gt;&lt;P&gt;Thank you in advance for your answers.&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;To retrieve all documents beginning with "C11-4" in a CMIS query, check if the cmis:name property is case-sensitive and modify the query accordingly. Use wildcard characters for flexibility. Ensure proper indexing for efficient querying.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 04:14:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483223#M39381</guid>
      <dc:creator>Melody242</dc:creator>
      <dc:date>2024-10-15T04:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Query on cmis:name does not return all results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483386#M39410</link>
      <description>&lt;P&gt;As long as you need to use IN_TREE, the query will not be able to be rewritten against the database. Only IN_FOLDER (direct parent condition) will work with a database query. For testing purposes, you could remove IN_TREE to switch to a database query as well.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 14:11:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483386#M39410</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2024-10-16T14:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Query on cmis:name does not return all results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483714#M39457</link>
      <description>&lt;P&gt;Hello and sorry for the late reply.&lt;BR /&gt;I've changed the query to use "IN_FOLDER" like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;select * from cmis:document WHERE IN_FOLDER('workspace://SpacesStore/c22b3fab-ef46-4cc5-8184-47e9e2fd8913') and cmis:name like 'C11-4%'&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Unfortunately the result was no change. It only returns me two of the 3 documents.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 13:48:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483714#M39457</guid>
      <dc:creator>Fabermundi2</dc:creator>
      <dc:date>2024-10-23T13:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Query on cmis:name does not return all results</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483715#M39458</link>
      <description>&lt;P&gt;Hello and sorry for the late reply.&lt;/P&gt;&lt;P&gt;- Case sensitivity should be irrelevant because all documents are in the same form and begin with C11-.&lt;/P&gt;&lt;P&gt;- I use a wildcard as my query contains "like 'C11-4%'&lt;/P&gt;&lt;P&gt;- The indexes seems to be good as for example exact searches work. In addition the cm:name is marked as tokenised "both".&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 13:52:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/query-on-cmis-name-does-not-return-all-results/m-p/483715#M39458</guid>
      <dc:creator>Fabermundi2</dc:creator>
      <dc:date>2024-10-23T13:52:23Z</dc:date>
    </item>
  </channel>
</rss>

