<?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 Issue with Lucene Field query with 'No' value in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-lucene-field-query-with-no-value/m-p/211787#M164917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Alfresco 2.1 and 3.1, the Lucene search does not return content on a field search where the property value is 'No', 'no' or 'NO'.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, the query&amp;nbsp; below does not return any results when I have content with Author specified as "No".&amp;nbsp; This same query works correctly for other author values. &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;@cm\:author:"No" &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tested this from a custom webscript using the SearchService, the Node Browser Search and the Advanced Search in Alfresco Explorer (using 'No*' since three characters are required).&amp;nbsp; I have also tested 'NOT Yes' and other similar searches on the particular field with no success.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone explain this behavior?&amp;nbsp; Is it a limitation in Lucene?&amp;nbsp; I noticed the following forum which seemed it has a chance to be related: &lt;/SPAN&gt;&lt;A href="http://forums.alfresco.com/en/viewtopic.php?f=4&amp;amp;t=18376" rel="nofollow noopener noreferrer"&gt;http://forums.alfresco.com/en/viewtopic.php?f=4&amp;amp;t=18376&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 20:23:03 GMT</pubDate>
    <dc:creator>albergquist</dc:creator>
    <dc:date>2009-05-14T20:23:03Z</dc:date>
    <item>
      <title>Issue with Lucene Field query with 'No' value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-lucene-field-query-with-no-value/m-p/211787#M164917</link>
      <description>In Alfresco 2.1 and 3.1, the Lucene search does not return content on a field search where the property value is 'No', 'no' or 'NO'.&amp;nbsp;&amp;nbsp;&amp;nbsp; For example, the query&amp;nbsp; below does not return any results when I have content with Author specified as "No".&amp;nbsp; This same query works correctly for other author value</description>
      <pubDate>Thu, 14 May 2009 20:23:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-lucene-field-query-with-no-value/m-p/211787#M164917</guid>
      <dc:creator>albergquist</dc:creator>
      <dc:date>2009-05-14T20:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Lucene Field query with 'No' value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-lucene-field-query-with-no-value/m-p/211788#M164918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lucene tokenizes and manipulates content before it places it inside the index. Most likely, the author "No" will not be present in the indices. You could try turning tokenization off for the given field in the Contentmodel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 09:14:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-lucene-field-query-with-no-value/m-p/211788#M164918</guid>
      <dc:creator>rogier_oudshoor</dc:creator>
      <dc:date>2009-05-18T09:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Lucene Field query with 'No' value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-lucene-field-query-with-no-value/m-p/211789#M164919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much for your reply– that was the issue.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For those also experiencing this, please note the following stop words in Lucene Analyzer – these will be removed during tokenization: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"a", "an", "and", "are", "as", "at", "be", "but", "by","for", "if", "in", "into", "is", "it", "no", "not", "of", "on", "or", "s", "such", "t", "that", "the", "their", "then", "there", "these","they", "this", "to", "was", "will", "with"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please note that "s" and "t" are no longer stop words in Lucene 2.2; however Alfresco 2.1-3.1 use Lucene 2.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Stop words extracted from &lt;/SPAN&gt;&lt;EM&gt;org.apache.lucene.analysis.StopAnalyzer&lt;/EM&gt;&lt;SPAN&gt; used by &lt;/SPAN&gt;&lt;EM&gt;org.alfresco.repo.search.impl.lucene.analysis.AlfrescoStandardAnalyser&lt;/EM&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2009 12:23:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-lucene-field-query-with-no-value/m-p/211789#M164919</guid>
      <dc:creator>albergquist</dc:creator>
      <dc:date>2009-05-27T12:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Lucene Field query with 'No' value</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-lucene-field-query-with-no-value/m-p/211790#M164920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I search "rocket science", I found 40 records (even search "department rocket science", got the same results), I only got one result if I search "department of rocket science". But actually 40 records all have "department of rocket science" precisely but the one result including two "of" stop words like "department of rocket science, office of blah blah". Can someone explains what wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 16:02:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-lucene-field-query-with-no-value/m-p/211790#M164920</guid>
      <dc:creator>qsdmv</dc:creator>
      <dc:date>2013-06-25T16:02:02Z</dc:date>
    </item>
  </channel>
</rss>

