Search in sources :

Example 1 with GermanAnalyzer

use of org.apache.lucene.analysis.de.GermanAnalyzer in project crate by crate.

the class MatchQueryBuilderTest method mockMapperService.

private MapperService mockMapperService() {
    Analyzer analyzer = new GermanAnalyzer();
    MapperService mapperService = mock(MapperService.class);
    when(mapperService.searchAnalyzer()).thenReturn(analyzer);
    return mapperService;
}
Also used : GermanAnalyzer(org.apache.lucene.analysis.de.GermanAnalyzer) Analyzer(org.apache.lucene.analysis.Analyzer) GermanAnalyzer(org.apache.lucene.analysis.de.GermanAnalyzer) MapperService(org.elasticsearch.index.mapper.MapperService)

Aggregations

Analyzer (org.apache.lucene.analysis.Analyzer)1 GermanAnalyzer (org.apache.lucene.analysis.de.GermanAnalyzer)1 MapperService (org.elasticsearch.index.mapper.MapperService)1