<?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: Compare property values using FTS query search? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/compare-property-values-using-fts-query-search/m-p/123628#M33831</link>
    <description>&lt;P&gt;AFTS on SOLR could theoretically support something like this using conditions with query functions, but you could very likely not use the short prefix names, which need translation to proper field names by Alfresco, and likely only work in those "typical" and supported use cases of regular searches.&lt;/P&gt;
&lt;P&gt;CMIS QL should support this as column references can be used on either side of an operator. Though of course you cannot use cm:name and have to use cmis:name, and obviously have to deal with table aliases when doing joins on aspects and stuff.&lt;/P&gt;
&lt;P&gt;In any case, I seriously doubt anyone else has every tried any of those approaches. My money is on "FTS = no way", and "CMIS = maybe if you correct your query"&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 15:35:23 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2021-02-25T15:35:23Z</dc:date>
    <item>
      <title>Compare property values using FTS query search?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/compare-property-values-using-fts-query-search/m-p/123627#M33830</link>
      <description>&lt;P&gt;Is it possible to compare property values using the fts (or cmis) query language? I have tried the following:&lt;/P&gt;&lt;PRE&gt;{
    "query": {
      "query": "TYPE:'my:type' AND (cm:name != my:prop)",
			"language": "afts"
    },
  "include": ["properties"],
  "paging": {
    "maxItems": "1000",
    "skipCount": "0"
  }
}&lt;/PRE&gt;&lt;P&gt;And :&lt;/P&gt;&lt;PRE&gt;{
    "query": {
      "query": "SELECT * FROM my:type WHERE my:prop IS NOT NULL AND my:prop &amp;lt;&amp;gt; cm:name",
			"language": "cmis"
    },
   
  "include": ["properties"],
  "paging": {
    "maxItems": "1000",
    "skipCount": "0"
  }
}&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 Feb 2021 12:07:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/compare-property-values-using-fts-query-search/m-p/123627#M33830</guid>
      <dc:creator>darkstar1</dc:creator>
      <dc:date>2021-02-24T12:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Compare property values using FTS query search?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/compare-property-values-using-fts-query-search/m-p/123628#M33831</link>
      <description>&lt;P&gt;AFTS on SOLR could theoretically support something like this using conditions with query functions, but you could very likely not use the short prefix names, which need translation to proper field names by Alfresco, and likely only work in those "typical" and supported use cases of regular searches.&lt;/P&gt;
&lt;P&gt;CMIS QL should support this as column references can be used on either side of an operator. Though of course you cannot use cm:name and have to use cmis:name, and obviously have to deal with table aliases when doing joins on aspects and stuff.&lt;/P&gt;
&lt;P&gt;In any case, I seriously doubt anyone else has every tried any of those approaches. My money is on "FTS = no way", and "CMIS = maybe if you correct your query"&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 15:35:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/compare-property-values-using-fts-query-search/m-p/123628#M33831</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-02-25T15:35:23Z</dc:date>
    </item>
  </channel>
</rss>

