PerFieldAnalayzerWrapper analyzer = new PerFieldAnalyzerWrapper(new SimpleAnalyzer());

analyzer.addAnalyzer("field_name", new KeywordAnalyzer());

Query query = QueryParser.parse("filed_name:S12 AND SPACE", "descrption", analyzer);

Hits hits = searcher.search(query);

...

Posted by 용식