Hello,
Anyone help me how to use StoredField(String name, long value). Its not working because there is no 'long integer' in Python 3. I am using Python 3.8.0 and pylucene 8.6.1. Source code: cdate = int(datetime.datetime.now().strftime("%Y%m%d%H%M")) print(1, cdate) doc = Document() doc.add(LongPoint('cdatetime', cdate)) doc.add(StoredField('cdatetime', cdate)) print(2, doc) writer.addDocument(doc) writer.commit() writer.close() Output: 1, cdate = 202104202312 2, Document<LongPoint <cdatetime:202104202312> *stored<cdatetime:240739400>*> Thanks, Antony -- Sent from: http://pylucene-users-developers-list.2474766.n2.nabble.com/