<?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 Search by cmis:name case sensitive? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234123#M187253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The CMIS spec only includes the SCORE() function. CMIS QL is a subset of SQL-92 with extensions.&amp;nbsp; LOWER() and UPPER() functions were actually removed from the spec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As they were done, they are available in the Alfresco extension to CMIS QL. Again, not ideal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL does exact matching as opposed to token based matching (which is what the UI is doing).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do token based matching via CONTAINS() but again you will be using non-standard extensions (in CMIS you can not specify the property name to use)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Apr 2010 18:55:50 GMT</pubDate>
    <dc:creator>andy</dc:creator>
    <dc:date>2010-04-12T18:55:50Z</dc:date>
    <item>
      <title>CMIS Search by cmis:name case sensitive?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234119#M187249</link>
      <description>Hello friends,I have document : TestCMISDoc.pdfI tried following query for searching documents by name&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tring query = "SELECT * FROM cmis:document where cmis:name like '%test%'";‍‍‍Above query doesn't search TestCMISDoc.pdfbut if I execute following&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;tring query = "SELECT * FROM cmis:document where</description>
      <pubDate>Tue, 30 Mar 2010 08:49:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234119#M187249</guid>
      <dc:creator>nikes</dc:creator>
      <dc:date>2010-03-30T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Search by cmis:name case sensitive?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234120#M187250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is not possible to make your CMIS search example case insensitive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Collation is up to the repo, just like some databases are case sensitive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is arguable that case sensitiveness for identifiers should be exposed for properties on their definition. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact, cm:name is indexed both as an identifier and for full text search. CMIS QL uses the identifier bit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you depart from strict CMIS SQL and use Alfrecso FTS within the CONTAINS() expression then you culd use the FTS index for cm:name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, you will get other matching issues due to tokenisation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Apr 2010 15:14:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234120#M187250</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2010-04-01T15:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Search by cmis:name case sensitive?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234121#M187251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't have expertise in Alfresco CMIS implementation, but what I observed is,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search files with file names in Alfresco Explorer(JSF) is not case sensitive! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So still my doubt is, using CMIS QL I am passing query parameters, which Alfresco CMIS implementation class uses to search&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in Alfresco repository.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does that mean it depends on Implementation of CMIS spec in repository?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If we make Alfresco CMIS implementation case-insensitive, will it return result matching search parameter irrespective of case?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 10:20:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234121#M187251</guid>
      <dc:creator>nikes</dc:creator>
      <dc:date>2010-04-08T10:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Search by cmis:name case sensitive?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234122#M187252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The CMIS spec indicates that the CMIS SQL language is based on SQL 92 specs, if it is then you would expect to be able to use functions such as LOWER() command on a string field or string value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would suggest trying&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String query = "SELECT * FROM cmis:document where Lower(cmis:name)&amp;nbsp; like Lower('%Test%') "&amp;nbsp; ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or something close to this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 15:52:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234122#M187252</guid>
      <dc:creator>southpointtech</dc:creator>
      <dc:date>2010-04-08T15:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Search by cmis:name case sensitive?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234123#M187253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The CMIS spec only includes the SCORE() function. CMIS QL is a subset of SQL-92 with extensions.&amp;nbsp; LOWER() and UPPER() functions were actually removed from the spec.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As they were done, they are available in the Alfresco extension to CMIS QL. Again, not ideal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL does exact matching as opposed to token based matching (which is what the UI is doing).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can do token based matching via CONTAINS() but again you will be using non-standard extensions (in CMIS you can not specify the property name to use)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Apr 2010 18:55:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234123#M187253</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2010-04-12T18:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: CMIS Search by cmis:name case sensitive?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234124#M187254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know this thread is older, but is anyone aware if this is still the case - I believe that would be YES…and if enhancement of the CMIS SQL rules (SQL-92 based) may perhaps address the LOWER() and UPPER() capability in CMIS 1.1.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I am not mistaken, these can usually cost in performance in typical direct relational DB SQL queries.&amp;nbsp; I suppose having the SQL queries return hits regardless of case of the text String values stored would be a problem, in general, for CMIS SQL implementations.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The example in the thread talks about cmis:name (a standard property), however if you add custom text properties to your model, say acme:category and acme:subCategory, one faces the same restriction regardless, I assume.&amp;nbsp; It's about the CMIS SQL implementation and not the model properties themselves.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the underlying search engine is Solr (and or Lucene), is there any ability to configure for &lt;/SPAN&gt;&lt;EM&gt;case-neutral &lt;/EM&gt;&lt;SPAN&gt;search ability? (that might be a bit of reach so just throwing it out there).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 19:43:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmis-search-by-cmis-name-case-sensitive/m-p/234124#M187254</guid>
      <dc:creator>mcs130</dc:creator>
      <dc:date>2012-09-25T19:43:32Z</dc:date>
    </item>
  </channel>
</rss>

