private Analyzer createSearchingAnalyzer ( ) { final Map < String , Analyzer > fieldAnalyzers = new HashMap <> ( ) ; fieldAnalyzers . put ( Fields . DOCUMENT_KEY , new KeywordAnalyzer ( ) ) ; productFieldAnalyzer = new SearchFieldAnalyzer ( ) ; vendorFieldAnalyzer = new SearchFieldAnalyzer ( ) ; fieldAnalyzers . put ( Fields . PRODUCT , productFieldAnalyzer ) ; fieldAnalyzers . put ( Fields . VENDOR , vendorFieldAnalyzer ) ; return new PerFieldAnalyzerWrapper ( new KeywordAnalyzer ( ) , fieldAnalyzers ) ; }
Creates an Analyzer for searching the CPE Index .