<?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 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/121936#M85906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created a cm:content with&amp;nbsp; :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;name : 08.DP.01 MNJ.pdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;title : 08-DP-01 MNJ&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and I face some strange behaviors when trying to search for my document&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here are the tests I did from the webclient :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In quick search (supposed to combine a TEXT + cm:name search)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;08.DP &amp;gt;&amp;gt; no results&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;08\.DP &amp;gt;&amp;gt; document found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;08.DP* &amp;gt;&amp;gt; document found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;08.DP.01 &amp;gt;&amp;gt; document found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;08 &amp;gt;&amp;gt; document found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a special meaning in searching for a sentence with a single "dot" in it ? Do one need to espace the dot ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now from the advanced search : search on cm:title only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;08-DP-01 MNJ &amp;gt;&amp;gt; not found &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;because translated into this lucene query :+@\{http\://&lt;/SPAN&gt;&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;&lt;SPAN&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;/SPAN&gt;&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;&lt;SPAN&gt; MNJ" )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the document is found, but unfortuanately it is not what is done from the advanced search&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;other test :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;08-DP-01 &amp;gt;&amp;gt; document found because there is no space, so it is translated&amp;nbsp; witout double quotes: +@\{http\://&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0\}title:08\-DP\-01" rel="nofollow noopener noreferrer"&gt;www.alfresco.org/model/content/1.0\}title:08\-DP\-01&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So how can I search for a complete title such as "08-DP-01 MNJ" ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for you help&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Nov 2007 18:46:39 GMT</pubDate>
    <dc:creator>pcuvecle</dc:creator>
    <dc:date>2007-11-27T18:46:39Z</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>

