コード例 #1
0
 private Field.Index GetLucentFieldIndex(FieldIndexOption indexOption)
 {
     switch (indexOption)
     {
         case FieldIndexOption.AnalyzedNoNorms:
             return Field.Index.ANALYZED_NO_NORMS;
         case FieldIndexOption.No:
             return Field.Index.NO;
         case FieldIndexOption.NotAnalyzed:
             return Field.Index.NOT_ANALYZED;
         case FieldIndexOption.NotAnalyzedNoNorms:
             return Field.Index.NOT_ANALYZED_NO_NORMS;
         default:
             return Field.Index.ANALYZED;
     }
 }
コード例 #2
0
 public GenericPropertyDescriptor <T> Index(FieldIndexOption index) => Assign(a => a.Index = index);
コード例 #3
0
 public StringPropertyDescriptor <T> Index(FieldIndexOption index) => Assign(a => a.Index = index);
コード例 #4
0
 public StringMappingDescriptor <T> Index(FieldIndexOption fieldIndexOption)
 {
     this._Mapping.Index = fieldIndexOption;
     return(this);
 }
コード例 #5
0
 public void AddDocument(KeyValuePair<string, string> fieldKeyValue, FieldIndexOption indexOption, FieldStore store)
 {
     doc.Add(new Field(fieldKeyValue.Key, fieldKeyValue.Value, GetLucentFieldStore(store), this.GetLucentFieldIndex(indexOption)));
 }