[pylucene-dev] How to use Document.Fields()?
David
zhouchengly at gmail.com
Thu Jan 18 23:51:52 PST 2007
Hi all:
Cause Document.getFields can't be used in PyLucene
(http://lists.osafoundation.org/pipermail/pylucene-dev/2007-January/001506.html)
I tried to use Document.fields() to get all the fields of a document,
as the following code:
for i, doc in hits:
_fields = doc.fields()
print _fields
for field in _fields:
print field
rev[field] = doc.get(field)
yield rev
but it seems not work, can anybody give some example to use this function?
appreciate your help!
--
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/pylucene-dev/attachments/20070119/7cd07275/attachment.htm
More information about the pylucene-dev
mailing list