<?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 Lucene ISNULL query in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-isnull-query/m-p/302605#M255735</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;does anyone have any in-depth experience with this query?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically, if you do a simple query on a repository that is not empty, it will fail miserably with the maxClauseCount error. I could go about setting it higher, but then it's just a matter of time before I hit it again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let's imagine a query along the lines of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ASPECT:"cm:folder" AND ISNULL "cm:barCode"&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you look at what that query produces, you will see something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;+(ASPECT:{&lt;A href="http://www.contentModel.com/model/content/1.0}folder" rel="nofollow noopener noreferrer"&gt;http://www.contentModel.com/model/content/1.0}folder&lt;/A&gt;) +(+MatchAllDocsQuery -(@{&lt;A href="http://www.contentModel.com/model/content/1.0}barCode:*" rel="nofollow noopener noreferrer"&gt;http://www.contentModel.com/model/content/1.0}barCode:*&lt;/A&gt; @{&lt;A href="http://www.contentModel.com/model/content/1.0}barCode:{en}*" rel="nofollow noopener noreferrer"&gt;http://www.contentModel.com/model/content/1.0}barCode:{en}*&lt;/A&gt;))&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, it basically removes what it finds with the ISNULL part from the ASPECT part of the query, and since it tries to find all possible values for barCode, it hits the maxClauseCount.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any way around this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Feb 2014 23:38:52 GMT</pubDate>
    <dc:creator>lista</dc:creator>
    <dc:date>2014-02-17T23:38:52Z</dc:date>
    <item>
      <title>Lucene ISNULL query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-isnull-query/m-p/302605#M255735</link>
      <description>Hi all,does anyone have any in-depth experience with this query?Basically, if you do a simple query on a repository that is not empty, it will fail miserably with the maxClauseCount error. I could go about setting it higher, but then it's just a matter of time before I hit it again.Let's imagine a q</description>
      <pubDate>Mon, 17 Feb 2014 23:38:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-isnull-query/m-p/302605#M255735</guid>
      <dc:creator>lista</dc:creator>
      <dc:date>2014-02-17T23:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene ISNULL query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-isnull-query/m-p/302606#M255736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do not think cm:barCode is part of out of box content model. What you are trying to do with this query?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Your first part for query is also not correct as you should be using TYPE instead of aspect.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to narrow down to your custom content type in case you want to search within those contents only.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 06:30:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-isnull-query/m-p/302606#M255736</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2014-02-18T06:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene ISNULL query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-isnull-query/m-p/302607#M255737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was simply typing those names from my head, for the sake of an example. The problem is in the "barBode:*" part of query, which is obviously a part of how the the whole "ISNULL" part works.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 08:34:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-isnull-query/m-p/302607#M255737</guid>
      <dc:creator>lista</dc:creator>
      <dc:date>2014-02-18T08:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene ISNULL query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-isnull-query/m-p/302608#M255738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For anyone interested, I simply ended up doing a Lucene search without the problematic part, and checking for property existance on found nodes. Any other comments are still welcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 16:46:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-isnull-query/m-p/302608#M255738</guid>
      <dc:creator>lista</dc:creator>
      <dc:date>2014-02-18T16:46:04Z</dc:date>
    </item>
  </channel>
</rss>

