<?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 query to search only in selected folder in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-search-only-in-selected-folder/m-p/264105#M217235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Of course!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't realized that Lucene uses almost same syntax as XPath. Thank you for your solution. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2011 13:51:35 GMT</pubDate>
    <dc:creator>dsnkostic</dc:creator>
    <dc:date>2011-05-12T13:51:35Z</dc:date>
    <item>
      <title>LUcene query to search only in selected folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-search-only-in-selected-folder/m-p/264103#M217233</link>
      <description>I am trying to write Lucene query where you can only search for contents in selected folder and not to go recursive in sub-folders.Here is an example so far…&amp;nbsp;&amp;nbsp;&amp;nbsp; String queryStr = "PATH:\"/" + projectPath + "//.\" ";&amp;nbsp;&amp;nbsp;&amp;nbsp; queryStr += " AND TYPE:\"{http://www.alfresco.org/model/content/1.0}content\"";&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Thu, 12 May 2011 11:40:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-search-only-in-selected-folder/m-p/264103#M217233</guid>
      <dc:creator>dsnkostic</dc:creator>
      <dc:date>2011-05-12T11:40:08Z</dc:date>
    </item>
    <item>
      <title>Re: LUcene query to search only in selected folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-search-only-in-selected-folder/m-p/264104#M217234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Instead of using '//' use only one slash '/' and use '*' instead of '.'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case: String queryStr = "PATH:\"/" + projectPath + "/*\" ";&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find full documentation at &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Search#Path_Queries" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Search#Path_Queries&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 12:43:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-search-only-in-selected-folder/m-p/264104#M217234</guid>
      <dc:creator>jcustovic</dc:creator>
      <dc:date>2011-05-12T12:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: LUcene query to search only in selected folder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-search-only-in-selected-folder/m-p/264105#M217235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Of course!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I didn't realized that Lucene uses almost same syntax as XPath. Thank you for your solution. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 13:51:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-to-search-only-in-selected-folder/m-p/264105#M217235</guid>
      <dc:creator>dsnkostic</dc:creator>
      <dc:date>2011-05-12T13:51:35Z</dc:date>
    </item>
  </channel>
</rss>

