<?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 Search Document which have NULL OR Empty metadata using predicate in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/search-document-which-have-null-or-empty-metadata-using/m-p/321192#M8193</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Can we process the following request with a generic page provider&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-sql"&gt;SELECT * FROM Document WHERE dc:language = '' OR dc:language IS NULL
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For information I managed to look for the nulls but I don't know how to add a predicate on the empty space and especially how to add the "OR" between them.&lt;/P&gt;
&lt;P&gt;My code :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;genericPageProvider class="org.nuxeo.elasticsearch.provider.ElasticSearchNxqlPageProvider" name="custom_search"&amp;gt;
      &amp;lt;whereClause docType="CustomSearch"&amp;gt;
        &amp;lt;predicate operator="IS NULL" parameter="dc:language"&amp;gt;
          &amp;lt;field name="searchNullLanguage" schema="custom_search"/&amp;gt;
        &amp;lt;/predicate&amp;gt;
        &amp;lt;fixedPart&amp;gt;
	  ecm:isVersion = 0 AND ecm:isTrashed = 0 AND ecm:isProxy=0
        &amp;lt;/fixedPart&amp;gt;
      &amp;lt;/whereClause&amp;gt;
	&amp;lt;aggregates&amp;gt;
		....
	&amp;lt;/aggregates&amp;gt;
      &amp;lt;pageSize&amp;gt;20&amp;lt;/pageSize&amp;gt;
    &amp;lt;/genericPageProvider&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2021 11:20:36 GMT</pubDate>
    <dc:creator>Ahmad_BenMaallem</dc:creator>
    <dc:date>2021-01-14T11:20:36Z</dc:date>
    <item>
      <title>Search Document which have NULL OR Empty metadata using predicate</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/search-document-which-have-null-or-empty-metadata-using/m-p/321192#M8193</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Can we process the following request with a generic page provider&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-sql"&gt;SELECT * FROM Document WHERE dc:language = '' OR dc:language IS NULL
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For information I managed to look for the nulls but I don't know how to add a predicate on the empty space and especially how to add the "OR" between them.&lt;/P&gt;
&lt;P&gt;My code :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;genericPageProvider class="org.nuxeo.elasticsearch.provider.ElasticSearchNxqlPageProvider" name="custom_search"&amp;gt;
      &amp;lt;whereClause docType="CustomSearch"&amp;gt;
        &amp;lt;predicate operator="IS NULL" parameter="dc:language"&amp;gt;
          &amp;lt;field name="searchNullLanguage" schema="custom_search"/&amp;gt;
        &amp;lt;/predicate&amp;gt;
        &amp;lt;fixedPart&amp;gt;
	  ecm:isVersion = 0 AND ecm:isTrashed = 0 AND ecm:isProxy=0
        &amp;lt;/fixedPart&amp;gt;
      &amp;lt;/whereClause&amp;gt;
	&amp;lt;aggregates&amp;gt;
		....
	&amp;lt;/aggregates&amp;gt;
      &amp;lt;pageSize&amp;gt;20&amp;lt;/pageSize&amp;gt;
    &amp;lt;/genericPageProvider&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 11:20:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/search-document-which-have-null-or-empty-metadata-using/m-p/321192#M8193</guid>
      <dc:creator>Ahmad_BenMaallem</dc:creator>
      <dc:date>2021-01-14T11:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Search Document which have NULL OR Empty metadata using predicate</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/search-document-which-have-null-or-empty-metadata-using/m-p/321193#M8194</link>
      <description>&lt;P&gt;Hello,
A solution might be &lt;A href="https://doc.nuxeo.com/nxdoc/how-to-search-or-operator/#create-a-page-provider" target="test_blank"&gt;https://doc.nuxeo.com/nxdoc/how-to-search-or-operator/#create-a-page-provider&lt;/A&gt;
Regards&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 11:25:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/search-document-which-have-null-or-empty-metadata-using/m-p/321193#M8194</guid>
      <dc:creator>Gregory_Carlin</dc:creator>
      <dc:date>2021-01-14T11:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search Document which have NULL OR Empty metadata using predicate</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/search-document-which-have-null-or-empty-metadata-using/m-p/321194#M8195</link>
      <description>&lt;P&gt;Thanks Gregory Carlin for the reply&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2021 12:11:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/search-document-which-have-null-or-empty-metadata-using/m-p/321194#M8195</guid>
      <dc:creator>Ahmad_BenMaallem</dc:creator>
      <dc:date>2021-01-14T12:11:17Z</dc:date>
    </item>
  </channel>
</rss>

