Writes the document to the directory using a segment
named "test"; returns the SegmentInfo describing the new
segment
Parameters: dir - Parameters: doc - throws: IOException -
Writes the document to the directory using the analyzer
and the similarity score; returns the SegmentInfo
describing the new segment
Parameters: dir - Parameters: analyzer - Parameters: similarity - Parameters: doc - throws: IOException -