Powered By Blogger

Tuesday, May 26, 2015

Making lucene to work with datetime stamp

Configuring DateTime resolution

To get full DateTime resolution for quantified predicates and ordering the analyzer for date time in Alfresco needs to changed from date to date time. This will also require an index rebuild if the change is not made at installation time.
Note: this was raised as a Jira in https://issues.alfresco.com/jira/browse/ALF-5378
In classes/alfresco/model/dataTypeAnalyzers.properties
change:
d_dictionary.datatype.d_datetime.analyzer=org.alfresco.repo.search.impl.lucene.analysis.DateAnalyser
into:
 d_dictionary.datatype.d_datetime.analyzer=org.alfresco.repo.search.impl.lucene.analysis.DateTimeAnalyser

No comments:

Post a Comment