<?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 Query using NOT in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-using-not/m-p/45767#M25551</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;&amp;nbsp;&amp;nbsp;&amp;nbsp; I wrote a lucene query that searches for contents with attribute name containing "One" and not containing "Two" as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; query = "+@cm\\:name:\"One\" -@cm\\:name:\"Two\"";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works well. Now if I want to just search for contents not containing "Two", I assumed the query would like&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; query = "-@cm\\:name:\"Two\"";&amp;nbsp;&amp;nbsp;&amp;nbsp; But it does not work. I modified the &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;query as:&amp;nbsp;&amp;nbsp; query = "+@cm\\:name:\"*\"* -@cm\\:name:\"Two\""; and it seems working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I am not sure why the previous query is not working. Please shed some light on this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Venkat&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2007 00:49:04 GMT</pubDate>
    <dc:creator>venkat</dc:creator>
    <dc:date>2007-03-09T00:49:04Z</dc:date>
    <item>
      <title>Lucene Query using NOT</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-using-not/m-p/45767#M25551</link>
      <description>Hi all,&amp;nbsp;&amp;nbsp;&amp;nbsp; I wrote a lucene query that searches for contents with attribute name containing "One" and not containing "Two" as:&amp;nbsp;&amp;nbsp;&amp;nbsp; query = "+@cm\\:name:\"One\" -@cm\\:name:\"Two\"";This works well. Now if I want to just search for contents not containing "Two", I assumed the query would like&amp;nbsp;&amp;nbsp; query</description>
      <pubDate>Fri, 09 Mar 2007 00:49:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-using-not/m-p/45767#M25551</guid>
      <dc:creator>venkat</dc:creator>
      <dc:date>2007-03-09T00:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Query using NOT</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-using-not/m-p/45768#M25552</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;Lucene internally does not support a query that is just NOT in its query parser. It annoys me too! It is on my list of things to look at in more detail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2007 11:58:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-using-not/m-p/45768#M25552</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2007-03-09T11:58:35Z</dc:date>
    </item>
  </channel>
</rss>

