/// <inheritdoc /> public IDocumentIndex Set(string name, string value, DocumentIndexOptions options) { Prevent.ParameterNullOrWhiteSpace(name, nameof(name)); _entries[name] = new DocumentIndexEntry( value: value, type: IndexableType.Text, options: options); return(this); }
public void Set(string name, double value, DocumentIndexOptions options) { Entries[name] = new DocumentIndexEntry(value, Types.Number, options); }
public void Set(string name, bool value, DocumentIndexOptions options) { Entries[name] = new DocumentIndexEntry(value, Types.Boolean, options); }
public void Set(string name, int value, DocumentIndexOptions options) { Entries[name] = new DocumentIndexEntry(value, Types.Integer, options); }
public void Set(string name, DateTimeOffset value, DocumentIndexOptions options) { Entries[name] = new DocumentIndexEntry(value, Types.DateTime, options); }
public void Set(string name, string value, DocumentIndexOptions options) { Entries[name] = new DocumentIndexEntry(value, Types.Text, options); }