public class StateQueryFilter extends FieldQueryFilter {
// private static final Log LOG = LogFactory.getLog(RecommendedParser.class.getName());
public StateQueryFilter() {
super("state", 5f);
super("city", 5f);
super("notdirectory", 5f);
//LOG.info("Added a state query");
}
}
,並上報:在java中構造問題
Constructor call must be the first statement in a constructor
有沒有一種方法,使工作?
你試圖完成什麼? – jdigital 2009-06-02 17:36:37
提升字段:「狀態」,「城市」,「非目錄」 – omg 2009-06-02 17:57:03
我認爲如果可能的話,你將不得不使用多個過濾器。即使編寫了這些代碼,它仍然只會提升「不是目錄」而不是「國家」或「城市」。 – 2009-06-02 18:15:45