Method WriteDoc
WriteDoc(Random, Directory, Documents.Document)
Writes the document to the directory using a segment
named "test"; returns the SegmentInfo describing the new
segment
Declaration
public static SegmentCommitInfo WriteDoc(Random random, Directory dir, Documents.Document doc)
Parameters
Type |
Name |
Description |
Random |
random |
|
Directory |
dir |
|
Documents.Document |
doc |
|
Returns
Type |
Description |
SegmentCommitInfo |
|
WriteDoc(Random, Directory, Analyzer, Similarities.Similarity, Documents.Document)
Writes the document to the directory using the analyzer
and the similarity score; returns the SegmentInfo
describing the new segment
Declaration
public static SegmentCommitInfo WriteDoc(Random random, Directory dir, Analyzer analyzer, Similarities.Similarity similarity, Documents.Document doc)
Parameters
Returns
Type |
Description |
SegmentCommitInfo |
|