solved! use this code: doc.getField("docID").numericValue();
在 2012-07-24 20:01:02,"" <qibaoy...@126.com> : >index: > doc.add(new LongField("docID", indexData.getDocId(), > Field.Store.YES)); >search: > doc.get("docID");//here,it gets null > why is the result is null?anyone could help me out? > > >-- >