在做Lucene的queryParser练习时,突然报了这样一个错误.后来检查发现我的代码中 把Query query=parser.Parse("apache")写成了Query query=parser.Query("apache");