<?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 Any idea why this Lucene search returns nothing? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/any-idea-why-this-lucene-search-returns-nothing/m-p/123366#M86874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm new to Alfresco and Lucene. I gave &lt;/SPAN&gt;&lt;A href="http://lucene.apache.org/java/docs/queryparsersyntax.html" rel="nofollow noopener noreferrer"&gt;http://lucene.apache.org/java/docs/queryparsersyntax.html&lt;/A&gt;&lt;SPAN&gt; a read through but I don't see anything obvious of why this isn't returning anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm modifying the Query1.java example for the Web Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've created the Query of&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, "path:'/app:company_home/cm:" +ISO9075.encode("Pathology Reports")+"/*'");&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but it's returning with "No query results found."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I run the (almost) default query the example came with&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, "TEXT:'pathology'");&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;one of the results is "row 1: {&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}path" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}path&lt;/A&gt;&lt;SPAN&gt; = /{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}Pathology_x0020_Reports/{http://www.alfresco.org/model/content/1.0}_x0033_3-AML_20Form_20v1.pdf" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1.0}Pathology_x0020_Reports/{http://www.alfresco.org/model/content/1.0}_x0033_3-AML_20Form_20v1.pdf&lt;/A&gt;&lt;SPAN&gt;" which is what I'm trying to mimic with my query. Essentially get me everything in that path. Can anyone see what's wrong with my query?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2007 20:18:00 GMT</pubDate>
    <dc:creator>jcblitz</dc:creator>
    <dc:date>2007-10-25T20:18:00Z</dc:date>
    <item>
      <title>Any idea why this Lucene search returns nothing?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/any-idea-why-this-lucene-search-returns-nothing/m-p/123366#M86874</link>
      <description>I'm new to Alfresco and Lucene. I gave http://lucene.apache.org/java/docs/queryparsersyntax.html a read through but I don't see anything obvious of why this isn't returning anything.I'm modifying the Query1.java example for the Web Service.I've created the Query ofQuery query = new Query(Constants.Q</description>
      <pubDate>Thu, 25 Oct 2007 20:18:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/any-idea-why-this-lucene-search-returns-nothing/m-p/123366#M86874</guid>
      <dc:creator>jcblitz</dc:creator>
      <dc:date>2007-10-25T20:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Any idea why this Lucene search returns nothing?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/any-idea-why-this-lucene-search-returns-nothing/m-p/123367#M86875</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;Here is the query &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:\"/app:company_home/cm:" +ISO9075.encode("Pathology Reports")+"/*\"");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need the escape the " in your code like above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below link should provide you with more information on Search&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&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;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shagul Khaja,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 20:50:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/any-idea-why-this-lucene-search-returns-nothing/m-p/123367#M86875</guid>
      <dc:creator>rivetlogic</dc:creator>
      <dc:date>2007-10-25T20:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Any idea why this Lucene search returns nothing?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/any-idea-why-this-lucene-search-returns-nothing/m-p/123368#M86876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Here is the query &lt;BR /&gt;&lt;BR /&gt;Query query = new Query(Constants.QUERY_LANG_LUCENE, "PATH:"/app:company_home/cm:" +ISO9075.encode("Pathology Reports")+"/*"");&lt;BR /&gt;&lt;BR /&gt;You need the escape the " in your code like above.&lt;BR /&gt;&lt;BR /&gt;Below link should provide you with more information on Search&lt;BR /&gt;&lt;BR /&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;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Shagul Khaja,&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Great, it worked. Thank you. I tried a mix of " vs ' but I guess not that one.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 20:53:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/any-idea-why-this-lucene-search-returns-nothing/m-p/123368#M86876</guid>
      <dc:creator>jcblitz</dc:creator>
      <dc:date>2007-10-25T20:53:33Z</dc:date>
    </item>
  </channel>
</rss>

