AnsweredAssumed Answered

Search underscore

Question asked by janmulder on Mar 2, 2012
Latest reply on May 2, 2012 by andy
Hello

I 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.java
public class AlfrescoStandardAnalyser extends Analyzer

I could try to change the Alfresco java code, and put:
public class AlfrescoStandardAnalyser extends WhiteSpaceAnalyzer
I would then rebuild the lucene index.

Would that be a good approach?
Are there other things I would have to take care of?
Are there better approaches?

Thanks.

Outcomes