<?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 with OR Keyword not returing proper result in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264779#M217909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What if you try with parentheses?&lt;BR /&gt;Something like&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;query.statement = "PATH:\"/app:company_home/st:sites/cm:processing/cm:documentLibrary/cm:AAK/*\" AND ( TYPE:\"{&lt;A href="http://www.alfresco.org/model/content/1.0}content\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content\&lt;/A&gt;" OR @my\\:first_supplierInvoice_comAsp1TransRef:\"" + filename + "\" OR @my\\:first_supplierInvoice_supName:\"" + filename + "\" OR @my\\:first_supplierInvoice_comAsp1Date:\"" + filename + "\")";&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;Where you put the parentheses is of course a matter of what you want OR:ed.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried your suggesation that but still it is showing all the contents in that folder. I want only the contents matching any of the metadata.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2011 10:37:50 GMT</pubDate>
    <dc:creator>himvj</dc:creator>
    <dc:date>2011-05-13T10:37:50Z</dc:date>
    <item>
      <title>Lucene Query with OR Keyword not returing proper result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264777#M217907</link>
      <description>I want to write a lucene query to serach contents in alfresco repository my Query is like belowfilename = "suppliername";query.statement = "PATH:\"/app:company_home/st:sites/cm&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rocessing/cm:documentLibrary/cm:AAK/*\" AND TYPE:\"{http://www.alfresco.org/model/content/1.0}content\" OR&amp;nbsp;&amp;nbsp; @my\\:first_s</description>
      <pubDate>Fri, 13 May 2011 10:20:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264777#M217907</guid>
      <dc:creator>himvj</dc:creator>
      <dc:date>2011-05-13T10:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Query with OR Keyword not returing proper result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264778#M217908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What if you try with parentheses?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;query.statement = "PATH:\"/app:company_home/st:sites/cm:processing/cm:documentLibrary/cm:AAK/*\" AND ( TYPE:\"{&lt;A href="http://www.alfresco.org/model/content/1.0}content\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content\&lt;/A&gt;" OR @my\\:first_supplierInvoice_comAsp1TransRef:\"" + filename + "\" OR @my\\:first_supplierInvoice_supName:\"" + filename + "\" OR @my\\:first_supplierInvoice_comAsp1Date:\"" + filename + "\")";&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;Where you put the parentheses is of course a matter of what you want OR:ed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 10:27:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264778#M217908</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2011-05-13T10:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Query with OR Keyword not returing proper result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264779#M217909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;What if you try with parentheses?&lt;BR /&gt;Something like&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;query.statement = "PATH:\"/app:company_home/st:sites/cm:processing/cm:documentLibrary/cm:AAK/*\" AND ( TYPE:\"{&lt;A href="http://www.alfresco.org/model/content/1.0}content\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content\&lt;/A&gt;" OR @my\\:first_supplierInvoice_comAsp1TransRef:\"" + filename + "\" OR @my\\:first_supplierInvoice_supName:\"" + filename + "\" OR @my\\:first_supplierInvoice_comAsp1Date:\"" + filename + "\")";&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;Where you put the parentheses is of course a matter of what you want OR:ed.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried your suggesation that but still it is showing all the contents in that folder. I want only the contents matching any of the metadata.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 10:37:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264779#M217909</guid>
      <dc:creator>himvj</dc:creator>
      <dc:date>2011-05-13T10:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Query with OR Keyword not returing proper result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264780#M217910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried your suggesation that but still it is showing all the contents in that folder. I want only the contents matching any of the metadata.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 10:43:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264780#M217910</guid>
      <dc:creator>himvj</dc:creator>
      <dc:date>2011-05-13T10:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Query with OR Keyword not returing proper result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264781#M217911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That is correct if you look at the query, any content will match TYPE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Try this&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;query.statement = "PATH:\"/app:company_home/st:sites/cm:processing/cm:documentLibrary/cm:AAK/*\" AND TYPE:\"{&lt;A href="http://www.alfresco.org/model/content/1.0}content\" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}content\&lt;/A&gt;" AND (@my\\:first_supplierInvoice_comAsp1TransRef:\"" + filename + "\" OR @my\\:first_supplierInvoice_supName:\"" + filename + "\" OR @my\\:first_supplierInvoice_comAsp1Date:\"" + filename + "\")";&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 10:44:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264781#M217911</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2011-05-13T10:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Lucene Query with OR Keyword not returing proper result</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264782#M217912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes it is working fine thanks a lot Loftux&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 11:10:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/lucene-query-with-or-keyword-not-returing-proper-result/m-p/264782#M217912</guid>
      <dc:creator>himvj</dc:creator>
      <dc:date>2011-05-13T11:10:54Z</dc:date>
    </item>
  </channel>
</rss>

