cancel
Showing results for 
Search instead for 
Did you mean: 

Specify Lucene analyzer for specific property

christiaank
Champ in-the-making
Champ in-the-making
I have a custom content model with a type A inheriting from Folder. I want Lucene to index the cm:name field of A with a SimpleAnalyzer instead of the default analyzer that is set for the datatype d:text.

I can change the analyzer for d:text in datatypeAnalyzers.properties, but that affects all properties of type d:text, which is too crude.

Is it possible to specify a different analyzer for a specific (in this case inherited) field in Alfresco?

I use Alfresco Enterprise 4.1, with Lucene (and not Solr).

This question is also on StackOverflow.
2 REPLIES 2

yogeshpj
Star Contributor
Star Contributor
You can not achieve this easily by configuration.You have to customize the out the box files.

christiaank
Champ in-the-making
Champ in-the-making
By now I concluded that that is not possible.

I have an idea to make it possible, but no time to work it out: Build an analyzer that takes the field name into account, and that can be configured apart from the datatypeAnalyzers.properties.