private IEnumerable <IndexFieldInfo> CreateFieldInfo(string name, FieldInfoType type, string value) { var indexingInfo = this.OwnerIndexingInfo; var index = indexingInfo.IndexingMode ?? PerFieldIndexingInfo.DefaultIndexingMode; var store = indexingInfo.IndexStoringMode ?? PerFieldIndexingInfo.DefaultIndexStoringMode; var termVector = indexingInfo.TermVectorStoringMode ?? PerFieldIndexingInfo.DefaultTermVectorStoringMode; return(new[] { new IndexFieldInfo(name, value, type, store, index, termVector) }); }
public IndexFieldInfo(string name, string value, FieldInfoType type, Field.Store store, Field.Index index, Field.TermVector termVector) { Name = name; Value = value; Type = type; Store = store; Index = index; TermVector = termVector; }