08-08-2011 04:23 AM
SearchParameters searchParameters = new SearchParameters();
searchParameters.setLanguage(SearchService.LANGUAGE_LUCENE);
searchParameters.addLocale(new Locale("ru", "RU"));
searchParameters.setQuery(query);
searchParameters.setMlAnalaysisMode(MLAnalysisMode.EXACT_LANGUAGE);
where query = +TYPE: "dmsosition" AND (@cm\:name:"[ново*]")
12:06:17,410 User:admin DEBUG [impl.lucene.LuceneQueryParser] Query +TYPE: "dms:position" AND (@cm\:name:"[ново*]") is
+(TYPE:{http://www.korusconsulting.ru/dms}position) +(@{http://www.alfresco.org/model/content/1.0}name:нов*)
08-11-2011 10:01 AM
08-11-2011 10:30 AM
Hi
The phrase wildcard includes stemming. It would appear that the Russain analyser is removing this character.
You can change the tokenizer.
What is the repository/Java locale? If it is not "ru_RU" you are probably having issues with cross-language support.
The best resolution for you will be to configure only one analyser for all locales, and reindex.
Or, add more locales to the query to support cross-locale querying
Andy
08-12-2011 05:40 AM
08-12-2011 06:37 AM
Hi
You need to remove all the files like:
alfresco/model/dataTypeAnalyzers_cs.properties
from the deployed web app an leave only
alfresco/model/dataTypeAnalyzers.properties
In this file specify the analysis you want to apply to all languages
Cross-language support (SOLR only) and analysis configuration is muched improved in the next release of Alfresco.
Andy
10-13-2011 08:54 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.