<?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: Lucene boolean search is broken? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191911#M145041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately it doesn't work…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search:&amp;nbsp;&amp;nbsp;&amp;nbsp; +TYPE:"plcy:commission" AND -@plcy\:commission_accounted:true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Results 0 rows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try to report proper bug report about it and in the meantime I will try to change that attribute from boolean to an integer…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for suggestions!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Karol&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Apr 2009 17:08:08 GMT</pubDate>
    <dc:creator>kbryd</dc:creator>
    <dc:date>2009-04-19T17:08:08Z</dc:date>
    <item>
      <title>Lucene boolean search is broken?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191907#M145037</link>
      <description>HelloI have been struggling with following issue. I have a type with a boolean property:&amp;lt;type name="plcy:commission"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;title&amp;gt;Commission&amp;lt;/title&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;parent&amp;gt;cm:content&amp;lt;/parent&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;properties&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;property name="plcy:commission_accounted"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;title&amp;amp;</description>
      <pubDate>Sat, 18 Apr 2009 09:38:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191907#M145037</guid>
      <dc:creator>kbryd</dc:creator>
      <dc:date>2009-04-18T09:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene boolean search is broken?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191908#M145038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Having TYPE criteria in you search seem superfluous since your property is only available to that specific type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, AND and the + means the same thing (so in some of your samples queries you have doubled them), see &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search#Combined_Queries" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search#Combined_Queries&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe using - (must nor match) if only false query works. Then you maybe need to search for TYPE as well, contrary to what I said int the beginning.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Apr 2009 18:29:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191908#M145038</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2009-04-18T18:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene boolean search is broken?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191909#M145039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Having TYPE criteria in you search seem superfluous since your property is only available to that specific type.&lt;BR /&gt;Also, AND and the + means the same thing (so in some of your samples queries you have doubled them), see &lt;A href="http://wiki.alfresco.com/wiki/Search#Combined_Queries" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search#Combined_Queries&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe using - (must nor match) if only false query works. Then you maybe need to search for TYPE as well, contrary to what I said int the beginning.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You are right about TYPE criteria, however it shouldn't change the result…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a summary of my queries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search:&amp;nbsp;&amp;nbsp;&amp;nbsp;@plcy\:commission_accounted:true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Results 24 rows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(some of those 24 rows contained records with 'false' commission_accounted)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search:&amp;nbsp;&amp;nbsp;&amp;nbsp;@plcy\:commission_accounted:false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Results 686 rows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search:&amp;nbsp;&amp;nbsp;&amp;nbsp;not @plcy\:commission_accounted:false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Results 686 rows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search:&amp;nbsp;&amp;nbsp;&amp;nbsp;-@plcy\:commission_accounted:false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Results 0 rows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search:&amp;nbsp;&amp;nbsp;&amp;nbsp;+TYPE:"plcy:commission" AND -@plcy\:commission_accounted:false&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Results 24 rows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the question is still the same: how is it possible? And how to query for records with commission_accounted=true?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2009 10:02:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191909#M145039</guid>
      <dc:creator>kbryd</dc:creator>
      <dc:date>2009-04-19T10:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene boolean search is broken?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191910#M145040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Only thing I can think of to try is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+TYPE:"plcy:commission" AND -@plcy\:commission_accounted:true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That should give you all the false ones.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I agree, this should be doable with only @plcy\:commission_accounted:false, maybe someone else can step in here that has experience of boolean searches.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2009 13:46:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191910#M145040</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2009-04-19T13:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene boolean search is broken?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191911#M145041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unfortunately it doesn't work…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Search:&amp;nbsp;&amp;nbsp;&amp;nbsp; +TYPE:"plcy:commission" AND -@plcy\:commission_accounted:true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Results 0 rows&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will try to report proper bug report about it and in the meantime I will try to change that attribute from boolean to an integer…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for suggestions!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Karol&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2009 17:08:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191911#M145041</guid>
      <dc:creator>kbryd</dc:creator>
      <dc:date>2009-04-19T17:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene boolean search is broken?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191912#M145042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I was working yesterday on very similar query which works correctly.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+TYPE:"rma:dispositionAction"&amp;nbsp; +@rma\:dispositionEventsEligible:true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;+TYPE:"rma:dispositionAction"&amp;nbsp; +@rma\:dispositionEventsEligible:false&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've just run it on HEAD and it works, both for the true case and the false case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Aug 2009 10:37:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-boolean-search-is-broken/m-p/191912#M145042</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-08-03T10:37:59Z</dc:date>
    </item>
  </channel>
</rss>

