public static LucField.Store ToLuceneIndexStoringMode(IndexStoringMode mode) { if (mode == IndexStoringMode.Default) { mode = IndexingInfo.DefaultIndexStoringMode; } switch (mode) { case IndexStoringMode.No: return(LucField.Store.NO); case IndexStoringMode.Yes: return(LucField.Store.YES); default: throw new ArgumentOutOfRangeException("Not supported IndexStoringMode: " + mode); } }
/// <summary> /// Initializes an instance of the IndexField with a named System.DateTime value and indexing metadata. /// </summary> /// <param name="name">The name of the term.</param> /// <param name="value">System.DateTime value</param> /// <param name="mode">Indexing mode.</param> /// <param name="store">Index storing mode.</param> /// <param name="termVector">Term vector handling.</param> public IndexField(string name, DateTime value, IndexingMode mode, IndexStoringMode store, IndexTermVector termVector) : base(name, value) { Mode = mode; Store = store; TermVector = termVector; }