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
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to