Пример #1
0
 public DocumentIndexEntry(string name, object value, Types type, DocumentIndexOptions options)
 {
     Name    = name;
     Value   = value;
     Type    = type;
     Options = options;
 }
Пример #2
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);
        }
Пример #3
0
 public DocumentIndexEntry(object value, Types type, DocumentIndexOptions options)
 {
     Value   = value;
     Type    = type;
     Options = options;
 }
Пример #4
0
 public void Set(string name, double value, DocumentIndexOptions options)
 {
     Entries[name] = new DocumentIndexEntry(value, Types.Number, options);
 }
Пример #5
0
 public void Set(string name, bool value, DocumentIndexOptions options)
 {
     Entries[name] = new DocumentIndexEntry(value, Types.Boolean, options);
 }
Пример #6
0
 public void Set(string name, int value, DocumentIndexOptions options)
 {
     Entries[name] = new DocumentIndexEntry(value, Types.Integer, options);
 }
Пример #7
0
 public void Set(string name, DateTimeOffset value, DocumentIndexOptions options)
 {
     Entries[name] = new DocumentIndexEntry(value, Types.DateTime, options);
 }
Пример #8
0
 public void Set(string name, string value, DocumentIndexOptions options)
 {
     Entries[name] = new DocumentIndexEntry(value, Types.Text, options);
 }
Пример #9
0
 public void Set(string name, GeoPoint value, DocumentIndexOptions options)
 {
     Entries.Add(new DocumentIndexEntry(name, value, Types.GeoPoint, options));
 }
Пример #10
0
 public void Set(string name, decimal?value, DocumentIndexOptions options)
 {
     Entries.Add(new DocumentIndexEntry(name, value, Types.Number, options));
 }
Пример #11
0
 public void Set(string name, bool?value, DocumentIndexOptions options)
 {
     Entries.Add(new DocumentIndexEntry(name, value, Types.Boolean, options));
 }
Пример #12
0
 public void Set(string name, int?value, DocumentIndexOptions options)
 {
     Entries.Add(new DocumentIndexEntry(name, value, Types.Integer, options));
 }
Пример #13
0
 public void Set(string name, DateTimeOffset?value, DocumentIndexOptions options)
 {
     Entries.Add(new DocumentIndexEntry(name, value, Types.DateTime, options));
 }
Пример #14
0
 public void Set(string name, IHtmlContent value, DocumentIndexOptions options)
 {
     Entries.Add(new DocumentIndexEntry(name, value, Types.Text, options));
 }