<?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 underscore in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/search-underscore/m-p/270850#M223980</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to search on underscore.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to disable the underscore as word separator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I looked at:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;data-model/source/java/org/alfresco/repo/search/impl/lucene/analysis/AlfrescoStandardAnalyser.java&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class AlfrescoStandardAnalyser extends Analyzer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could try to change the Alfresco java code, and put:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class AlfrescoStandardAnalyser extends WhiteSpaceAnalyzer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would then rebuild the lucene index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would that be a good approach?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there other things I would have to take care of?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there better approaches?&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, 02 Mar 2012 16:41:14 GMT</pubDate>
    <dc:creator>janmulder</dc:creator>
    <dc:date>2012-03-02T16:41:14Z</dc:date>
    <item>
      <title>Search underscore</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-underscore/m-p/270850#M223980</link>
      <description>HelloI would like to search on underscore.I would like to disable the underscore as word separator.I looked at:data-model/source/java/org/alfresco/repo/search/impl/lucene/analysis/AlfrescoStandardAnalyser.javapublic class AlfrescoStandardAnalyser extends AnalyzerI could try to change the Alfresco ja</description>
      <pubDate>Fri, 02 Mar 2012 16:41:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-underscore/m-p/270850#M223980</guid>
      <dc:creator>janmulder</dc:creator>
      <dc:date>2012-03-02T16:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search underscore</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-underscore/m-p/270851#M223981</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;You can configure from where the analyser to type mapping is loaded by default/per model/per class/per type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;e,g, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;model name="d:dictionary" xmlns="&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/dictionary/1.0" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/dictionary/1.0&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;description&amp;gt;Alfresco Dictionary Model&amp;lt;/description&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;author&amp;gt;Alfresco&amp;lt;/author&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;published&amp;gt;2005-09-29&amp;lt;/published&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;analyserResourceBundleName&amp;gt;alfresco/model/dataTypeAnalyzers&amp;lt;/analyserResourceBundleName&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also change what is found in this file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you change the configuration you need to reindex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 14:36:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-underscore/m-p/270851#M223981</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2012-03-05T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search underscore</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-underscore/m-p/270852#M223982</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;Thanks for the hints.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked at the files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I could not see a simple list of token separators which I could configure,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so for example: "-" splits tokens, but "_" should not split tokens.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw some other suggestion to copy the Lucene source code of StandardTokenizer,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and then just program whatever you need/like.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am fine with that approach, but I see 2 different Lucene versions in the alfresco tree,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;which Lucene source code version should I download to adapt?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 23:11:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-underscore/m-p/270852#M223982</guid>
      <dc:creator>janmulder</dc:creator>
      <dc:date>2012-05-01T23:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search underscore</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/search-underscore/m-p/270853#M223983</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;The lucene subsystem uses 2.4.1 and SOLR uses lucene 2.9.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Wire up the 2.4.1 classes in the repo.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Depending on your use case - treating the field as an identifier may help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will add some simple configuration to the backlog (stop words, separators).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the end the most flexiable way is to hook up your own analysis.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 09:22:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/search-underscore/m-p/270853#M223983</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2012-05-02T09:22:15Z</dc:date>
    </item>
  </channel>
</rss>

