AnsweredAssumed Answered

Query parser eats last character

Question asked by dooman on Aug 8, 2011
Latest reply on Oct 13, 2011 by clementus
I have some problem with lucene query. I query content with the next parameters:

        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: "dms:position" AND (@cm\:name:"[ново*]")

But I got wrong results. The result has all dms:position where cm:name contains "нов*". I turned on debug for org.alfresco.repo.search.impl.lucene.LuceneQueryParser and see the next log:

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:нов*)

Should I create new bug report?

Alfresco version: 3.4.e.

Outcomes