@@ -480,7 +480,7 @@ public void stemAnalyzer() {
480
480
options .setFeatures (features );
481
481
options .setName (name );
482
482
options .setType (AnalyzerType .stem );
483
- options .setProperties (Collections .singletonMap ("locale" , "ru.utf-8 " ));
483
+ options .setProperties (Collections .singletonMap ("locale" , "ru" ));
484
484
485
485
createGetAndDeleteAnalyzer (options );
486
486
}
@@ -497,7 +497,7 @@ public void stemAnalyzerTyped() {
497
497
features .add (AnalyzerFeature .position );
498
498
499
499
StemAnalyzerProperties properties = new StemAnalyzerProperties ();
500
- properties .setLocale ("ru.utf-8 " );
500
+ properties .setLocale ("ru" );
501
501
502
502
StemAnalyzer options = new StemAnalyzer ();
503
503
options .setFeatures (features );
@@ -519,7 +519,7 @@ public void normAnalyzer() {
519
519
features .add (AnalyzerFeature .position );
520
520
521
521
Map <String , Object > properties = new HashMap <>();
522
- properties .put ("locale" , "ru.utf-8 " );
522
+ properties .put ("locale" , "ru" );
523
523
properties .put ("case" , "lower" );
524
524
properties .put ("accent" , true );
525
525
@@ -544,7 +544,7 @@ public void normAnalyzerTyped() {
544
544
features .add (AnalyzerFeature .position );
545
545
546
546
NormAnalyzerProperties properties = new NormAnalyzerProperties ();
547
- properties .setLocale ("ru.utf-8 " );
547
+ properties .setLocale ("ru" );
548
548
properties .setAnalyzerCase (SearchAnalyzerCase .lower );
549
549
properties .setAccent (true );
550
550
@@ -673,7 +673,7 @@ public void textAnalyzer() {
673
673
features .add (AnalyzerFeature .position );
674
674
675
675
Map <String , Object > properties = new HashMap <>();
676
- properties .put ("locale" , "ru.utf-8 " );
676
+ properties .put ("locale" , "ru" );
677
677
properties .put ("case" , "lower" );
678
678
properties .put ("stopwords" , Collections .emptyList ());
679
679
properties .put ("accent" , true );
@@ -700,7 +700,7 @@ public void textAnalyzerTyped() {
700
700
features .add (AnalyzerFeature .position );
701
701
702
702
TextAnalyzerProperties properties = new TextAnalyzerProperties ();
703
- properties .setLocale ("ru.utf-8 " );
703
+ properties .setLocale ("ru" );
704
704
properties .setAnalyzerCase (SearchAnalyzerCase .lower );
705
705
properties .setAccent (true );
706
706
properties .setStemming (true );
@@ -731,7 +731,7 @@ public void enhancedTextAnalyzer() {
731
731
edgeNgram .put ("preserveOriginal" , true );
732
732
733
733
Map <String , Object > properties = new HashMap <>();
734
- properties .put ("locale" , "ru.utf-8 " );
734
+ properties .put ("locale" , "ru" );
735
735
properties .put ("case" , "lower" );
736
736
properties .put ("stopwords" , Collections .emptyList ());
737
737
properties .put ("accent" , true );
@@ -764,7 +764,7 @@ public void enhancedTextAnalyzerTyped() {
764
764
edgeNgram .setPreserveOriginal (true );
765
765
766
766
TextAnalyzerProperties properties = new TextAnalyzerProperties ();
767
- properties .setLocale ("ru.utf-8 " );
767
+ properties .setLocale ("ru" );
768
768
properties .setAnalyzerCase (SearchAnalyzerCase .lower );
769
769
properties .setAccent (true );
770
770
properties .setStemming (true );
@@ -833,7 +833,7 @@ public void pipelineAnalyzer() {
833
833
834
834
// stem
835
835
StemAnalyzerProperties stemAnalyzerProperties = new StemAnalyzerProperties ();
836
- stemAnalyzerProperties .setLocale ("en.utf-8 " );
836
+ stemAnalyzerProperties .setLocale ("en" );
837
837
838
838
StemAnalyzer stemAnalyzer = new StemAnalyzer ();
839
839
stemAnalyzer .setProperties (stemAnalyzerProperties );
0 commit comments