<?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 multiple options in one query in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/multiple-options-in-one-query/m-p/23640#M11454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello there. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a doubt of doing multiple conditions in a query. I have this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;"PATH:\"app:company_home/cm:services//.\""); &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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;So i get all the nodes of the specific path. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But from the results, i would like to obtain just the ones which in its name has the name "BIRD", so i would like to do so in the query, instead of having to do a if-else sentence. That would be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;AND TEXT:\"BIRD \"&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;And the hole search…&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;sp.setQuery("PATH:\"app:company_home/cm:services//.\" AND TEXT:\"BIRD\"");&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;But the resultSet is empty, when should give 3 results. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is wrong? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bird&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Aug 2006 07:51:17 GMT</pubDate>
    <dc:creator>unknown-user</dc:creator>
    <dc:date>2006-08-03T07:51:17Z</dc:date>
    <item>
      <title>multiple options in one query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-options-in-one-query/m-p/23640#M11454</link>
      <description>Hello there. I have a doubt of doing multiple conditions in a query. I have this: "PATH:\"app:company_home/cm:services//.\""); ‍‍‍So i get all the nodes of the specific path. But from the results, i would like to obtain just the ones which in its name has the name "BIRD", so i would like to do so in</description>
      <pubDate>Thu, 03 Aug 2006 07:51:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-options-in-one-query/m-p/23640#M11454</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2006-08-03T07:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: multiple options in one query</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/multiple-options-in-one-query/m-p/23641#M11455</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;This should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What results do you get for TEXT:\"BIRD\" ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would try using the + syntax instead as there are issues with AND in lucene 1.4.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"+PATH:\"app:company_home/cm:services//.\" +TEXT:\"BIRD\""&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Aug 2006 14:28:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/multiple-options-in-one-query/m-p/23641#M11455</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2006-08-03T14:28:42Z</dc:date>
    </item>
  </channel>
</rss>

