<?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: dot and dash in Lucene queries in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/dot-and-dash-in-lucene-queries/m-p/121937#M85907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Now from the advanced search : search on cm:title only&lt;BR /&gt;08-DP-01 MNJ &amp;gt;&amp;gt; not found &lt;BR /&gt;because translated into this lucene query :+@\{http\://&lt;A href="http://www.alfresco.org/model/content/1.0\}title:%2208\-DP\-01" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\}title:'08\-DP\-01&lt;/A&gt; MNJ"&amp;nbsp;&amp;nbsp; The problem is that the query builder considers that it is a sentence because of the space after 01 but still escapes automaticaly the dashes. When running the same lucene query without the backslash (+@\{http\://&lt;A href="http://www.alfresco.org/model/content/1.0\}title:%2208-DP-01" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\}title:'08-DP-01&lt;/A&gt; MNJ" )&lt;BR /&gt;the document is found, but unfortuanately it is not what is done from the advanced search&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That sounds like a bug - or at least something that should be configurable. I suspect if the search is a phrase search "in quotes" then the search code should not escape the value - which means it would then work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have raised an issue for it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/AWC-1743" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AWC-1743&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Dec 2007 18:25:01 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2007-12-14T18:25:01Z</dc:date>
    <item>
      <title>dot and dash in Lucene queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dot-and-dash-in-lucene-queries/m-p/121936#M85906</link>
      <description>Hi all,I have created a cm:content with&amp;nbsp; :name : 08.DP.01 MNJ.pdftitle : 08-DP-01 MNJand I face some strange behaviors when trying to search for my documentHere are the tests I did from the webclient :In quick search (supposed to combine a TEXT + cm:name search)08.DP &amp;gt;&amp;gt; no results08\.DP &amp;gt;&amp;amp;g</description>
      <pubDate>Tue, 27 Nov 2007 18:46:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dot-and-dash-in-lucene-queries/m-p/121936#M85906</guid>
      <dc:creator>pcuvecle</dc:creator>
      <dc:date>2007-11-27T18:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: dot and dash in Lucene queries</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/dot-and-dash-in-lucene-queries/m-p/121937#M85907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Now from the advanced search : search on cm:title only&lt;BR /&gt;08-DP-01 MNJ &amp;gt;&amp;gt; not found &lt;BR /&gt;because translated into this lucene query :+@\{http\://&lt;A href="http://www.alfresco.org/model/content/1.0\}title:%2208\-DP\-01" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\}title:'08\-DP\-01&lt;/A&gt; MNJ"&amp;nbsp;&amp;nbsp; The problem is that the query builder considers that it is a sentence because of the space after 01 but still escapes automaticaly the dashes. When running the same lucene query without the backslash (+@\{http\://&lt;A href="http://www.alfresco.org/model/content/1.0\}title:%2208-DP-01" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\}title:'08-DP-01&lt;/A&gt; MNJ" )&lt;BR /&gt;the document is found, but unfortuanately it is not what is done from the advanced search&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That sounds like a bug - or at least something that should be configurable. I suspect if the search is a phrase search "in quotes" then the search code should not escape the value - which means it would then work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have raised an issue for it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/AWC-1743" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AWC-1743&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 18:25:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/dot-and-dash-in-lucene-queries/m-p/121937#M85907</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-12-14T18:25:01Z</dc:date>
    </item>
  </channel>
</rss>

