lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 齐保元 <qibaoy...@126.com>
Subject Re:LongField problem in Lucene4
Date Tue, 24 Jul 2012 12:15:19 GMT
solved!
      use this code: doc.getField("docID").numericValue();



在 2012-07-24 20:01:02,"" <qibaoyuan@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?
>
>
>--
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message