示例#1
0
        /// <summary>Write the header for this field. </summary>
        private void WriteFieldEntry(FieldInfo field, DocValuesType type)
        {
            SimpleTextUtil.Write(data, FIELD);
            SimpleTextUtil.Write(data, field.Name, scratch);
            SimpleTextUtil.WriteNewline(data);

            SimpleTextUtil.Write(data, TYPE);
            SimpleTextUtil.Write(data, type.ToString(), scratch);
            SimpleTextUtil.WriteNewline(data);
        }
 private static string GetDocValuesType(DocValuesType type)
 {
     // LUCENENET specific - need to write false for NONE
     return(type != DocValuesType.NONE ? type.ToString() : "false");
 }