Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 public void Set(string name, double value, DocumentIndexOptions options)
 {
     Entries[name] = new DocumentIndexEntry(value, Types.Number, options);
 }
Ejemplo n.º 3
0
 public void Set(string name, bool value, DocumentIndexOptions options)
 {
     Entries[name] = new DocumentIndexEntry(value, Types.Boolean, options);
 }
Ejemplo n.º 4
0
 public void Set(string name, int value, DocumentIndexOptions options)
 {
     Entries[name] = new DocumentIndexEntry(value, Types.Integer, options);
 }
Ejemplo n.º 5
0
 public void Set(string name, DateTimeOffset value, DocumentIndexOptions options)
 {
     Entries[name] = new DocumentIndexEntry(value, Types.DateTime, options);
 }
Ejemplo n.º 6
0
 public void Set(string name, string value, DocumentIndexOptions options)
 {
     Entries[name] = new DocumentIndexEntry(value, Types.Text, options);
 }