public class AnalyzerTest { @Test public void test() throws ParseException { QueryParser parser = new MultiFieldQueryParser(new String[]{"title", "body"}, new StandardAnalyzer()); Query query1 = parser.parse("中文"); Query query2 = parser.parse("中 文"); System.out.println(query1); System.out.println(query2); } }
output : title:"中 文" body:"中 文" (title:中 body:中) (title:文 body:文) why they not same? -- regards j.L