예제 #1
0
        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) });
        }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }