Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Labels:
Description
The better approach according to the Lucene manual book is to reuse Field object when creating new Document object. We need to update the writeObject method and use this approach.
The better approach would be to keep a mapping of field name to Field object. When we want to add a new Field to the new Document, we would search the map first and add new Field only when it's not available in the map.