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; } }
public GenericPropertyDescriptor <T> Index(FieldIndexOption index) => Assign(a => a.Index = index);
public StringPropertyDescriptor <T> Index(FieldIndexOption index) => Assign(a => a.Index = index);
public StringMappingDescriptor <T> Index(FieldIndexOption fieldIndexOption) { this._Mapping.Index = fieldIndexOption; return(this); }
public void AddDocument(KeyValuePair<string, string> fieldKeyValue, FieldIndexOption indexOption, FieldStore store) { doc.Add(new Field(fieldKeyValue.Key, fieldKeyValue.Value, GetLucentFieldStore(store), this.GetLucentFieldIndex(indexOption))); }