<?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 Search with commas in multi value text field in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/search-with-commas-in-multi-value-text-field/m-p/92977#M27526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 11.3pt;"&gt;&lt;SPAN style="background-color: #efefef;"&gt;Good day.&lt;BR /&gt;&amp;nbsp;I have a custom type, defined with a multi value propertie named imus:toirCodesProperty &lt;BR /&gt;defined as:&lt;BR /&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;property &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;name&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;="imus:toirCodesProperty"&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;toirCodesProperty&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;title&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;d:text&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;type&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #808080; font-style: italic;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;multiple&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;true&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;multiple&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;property&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 11.3pt;"&gt;&lt;SPAN style="background-color: #efefef;"&gt;&lt;SPAN&gt;I have configured advanced search, and the relevant part of my share-config-custom.xml &lt;BR /&gt;looks like this:&lt;/SPAN&gt;&lt;BR /&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;field &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;="imus:toirCodesProperty" &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;label-id&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;="prop.imus_toirCodesProperty"&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;    &lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;control &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;template&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;="/org/alfresco/components/form/controls/textarea.ftl"&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="background-color: #efefef;"&gt;&amp;lt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000080; background-color: #efefef; font-weight: bold;"&gt;field&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef; "&gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;If I perform a search with commas, then I get an empty result. &lt;BR /&gt;The query:&lt;BR /&gt;query=TYPE:"imus:attachment" AND (imus:toirCodesProperty:(1234, 1785)).&lt;BR /&gt;&lt;BR /&gt;But if I enter a logical operator in the control, the query succeeds.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;The query:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #efefef;"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;query=TYPE:"imus:attachment" AND (imus:toirCodesProperty:(1234 or 1785)).&lt;BR /&gt;&lt;BR /&gt;Can commas be used for searching in multi value text field?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2019 06:57:04 GMT</pubDate>
    <dc:creator>viktoriyamoskov</dc:creator>
    <dc:date>2019-05-08T06:57:04Z</dc:date>
    <item>
      <title>Search with commas in multi value text field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-with-commas-in-multi-value-text-field/m-p/92977#M27526</link>
      <description>Good day.&amp;nbsp;I have a custom type, defined with a multi value propertie named imus:toirCodesProperty defined as:&amp;lt;property name="imus:toirCodesProperty"&amp;gt;    &amp;lt;title&amp;gt;toirCodesProperty&amp;lt;/title&amp;gt;    &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;    &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;&amp;lt;/property&amp;gt;I ha</description>
      <pubDate>Wed, 08 May 2019 06:57:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-with-commas-in-multi-value-text-field/m-p/92977#M27526</guid>
      <dc:creator>viktoriyamoskov</dc:creator>
      <dc:date>2019-05-08T06:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search with commas in multi value text field</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-with-commas-in-multi-value-text-field/m-p/92978#M27527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;The comma in the Apache Lucene Query Parser Is not managed as you can see in the official documentazione (&amp;nbsp;&lt;A class="link-titled" href="https://lucene.apache.org/core/2_9_4/queryparsersyntax.html" title="https://lucene.apache.org/core/2_9_4/queryparsersyntax.html" rel="nofollow noopener noreferrer"&gt;Apache Lucene - Query Parser Syntax&lt;/A&gt;&amp;nbsp;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;For properties that are multiple, you need to repeat the name of the property for each value are you searching for.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;I Hope i was helpful,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 16px;"&gt;Bye&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2019 19:11:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-with-commas-in-multi-value-text-field/m-p/92978#M27527</guid>
      <dc:creator>spino</dc:creator>
      <dc:date>2019-05-10T19:11:02Z</dc:date>
    </item>
  </channel>
</rss>

