writes the document to the directory using the analyzer and the similarity score ; returns the segmentinfo describing the new segment concode_field_sep String TEXT_FIELD_1_KEY concode_elem_sep String UNSTORED_FIELD_1_KEY concode_elem_sep Field noNormsField concode_elem_sep Map<String,IndexableField> noNorms concode_elem_sep Field unStoredField1 concode_elem_sep Map<String,IndexableField> noTf concode_elem_sep String NO_NORMS_KEY concode_elem_sep Field textField2 concode_elem_sep Map<String,Object> nameValues concode_elem_sep Field textField1 concode_elem_sep Field textField3 concode_elem_sep String LAZY_FIELD_TEXT concode_elem_sep Field[] fields concode_elem_sep String FIELD_UTF1_TEXT concode_elem_sep int[] FIELD_2_FREQS concode_elem_sep Map<String,IndexableField> unstored concode_elem_sep Field keyField concode_elem_sep String FIELD_UTF2_TEXT concode_elem_sep String NO_TF_KEY concode_elem_sep String NO_TF_TEXT concode_elem_sep String LAZY_FIELD_BINARY_KEY concode_elem_sep Map<String,IndexableField> notermvector concode_elem_sep String TEXT_FIELD_2_KEY concode_elem_sep String KEYWORD_FIELD_KEY concode_elem_sep String TEXT_FIELD_UTF2_KEY concode_elem_sep FieldType customType2 concode_elem_sep Field lazyFieldBinary concode_elem_sep String LARGE_LAZY_FIELD_KEY concode_elem_sep Map<String,IndexableField> termvector concode_elem_sep FieldType customType7 concode_elem_sep FieldType customType8 concode_elem_sep String UNSTORED_FIELD_2_KEY concode_elem_sep String TEXT_FIELD_UTF1_KEY concode_elem_sep int[] FIELD_UTF2_FREQS concode_elem_sep FieldType customType3 concode_elem_sep String UNSTORED_2_FIELD_TEXT concode_elem_sep FieldType customType5 concode_elem_sep FieldType customType6 concode_elem_sep Map<String,IndexableField> all concode_elem_sep Field lazyField concode_elem_sep String UNINDEXED_FIELD_KEY concode_elem_sep Field unStoredField2 concode_elem_sep Map<String,IndexableField> unindexed concode_elem_sep Field noTFField concode_elem_sep String TEXT_FIELD_3_KEY concode_elem_sep String FIELD_3_TEXT concode_elem_sep String FIELD_2_TEXT concode_elem_sep Map<String,IndexableField> indexed concode_elem_sep Field largeLazyField concode_elem_sep String KEYWORD_TEXT concode_elem_sep String LARGE_LAZY_FIELD_TEXT concode_elem_sep Map<String,IndexableField> lazy concode_elem_sep Field unIndField concode_elem_sep String NO_NORMS_TEXT concode_elem_sep Field textUtfField1 concode_elem_sep byte[] LAZY_FIELD_BINARY_BYTES concode_elem_sep String UNINDEXED_FIELD_TEXT concode_elem_sep Map<String,IndexableField> stored concode_elem_sep FieldType customType concode_elem_sep Field textUtfField2 concode_elem_sep String FIELD_1_TEXT concode_elem_sep String UNSTORED_1_FIELD_TEXT concode_elem_sep String LAZY_FIELD_KEY concode_field_sep void add concode_elem_sep void setupDoc concode_elem_sep int numFields concode_elem_sep Document createDocument
SegmentCommitInfo function ( Random arg0 , Directory arg1 , Analyzer arg2 , Similarity arg3 , Document arg4 ) { IndexWriter loc0 = new IndexWriter ( arg1 , new IndexWriterConfig ( arg2 ) . setSimilarity ( arg3 == null ? IndexSearcher . getDefaultSimilarity ( ) : arg3 ) ) ; loc0 . addDocument ( arg4 ) ; loc0 . commit ( ) ; SegmentCommitInfo loc1 = loc0 . newestSegment ( ) ; loc0 . close ( ) ; return loc1 ; }