Пример #1
0
 /// <summary>
 /// The index to execute the search on. Defaults to the default index
 /// </summary>
 public TDescriptor Index(IndexNameMarker index)
 {
     if (index == null)
     {
         return((TDescriptor)this);
     }
     return(this.Indices(index));
 }
Пример #2
0
 public string IndexName(IndexNameMarker index)
 {
     if (index == null)
     {
         return(null);
     }
     return(index.Resolve(this._connectionSettings));
 }
Пример #3
0
 internal SearchDescriptor <T> Index(IndexNameMarker index)
 {
     if (index == null)
     {
         return(this);
     }
     this._Indices = new[] { index };
     return(this);
 }
Пример #4
0
 protected QueryPathBase(IndexNameMarker index, TypeNameMarker type = null)
 {
     this.Indices = new [] { index };
     if (type != null)
     {
         this.Types = new[] { type }
     }
     ;
     else
     {
         this.AllTypes = true;
     }
 }
Пример #5
0
 public DeleteByQueryRequest(IndexNameMarker index, TypeNameMarker type = null)
 {
     this.Indices = new [] { index };
     if (type != null)
     {
         this.Types = new[] { type }
     }
     ;
     else
     {
         this.AllTypes = true;
     }
 }
Пример #6
0
        public static string Resolve(this IndexNameMarker marker, IConnectionSettingsValues connectionSettings)
        {
            if (marker == null)
            {
                return(null);
            }
            connectionSettings.ThrowIfNull("connectionSettings");

            if (marker.Type == null)
            {
                return(marker.Name);
            }
            return(new IndexNameResolver(connectionSettings).GetIndexForType(marker.Type));
        }
Пример #7
0
 public IndexPathBase(IndexNameMarker index)
 {
     this.Index = index;
 }
Пример #8
0
 public SearchShardsRequest(IndexNameMarker index, TypeNameMarker type = null) : base(index, type)
 {
 }
Пример #9
0
 public DeleteMappingRequest(IndexNameMarker index, TypeNameMarker typeNameMarker) : base(index, typeNameMarker)
 {
 }
Пример #10
0
 public CreateIndexRequest(IndexNameMarker index) : base(index)
 {
 }
 public TDescriptor Index(Type indexType)
 {
     this._Index = indexType;
     return((TDescriptor)this);
 }
Пример #12
0
 public P Index <T>() where T : class
 {
     this._Index = typeof(T);
     return((P)this);
 }
Пример #13
0
 public P Index(Type indexType)
 {
     this._Index = indexType;
     return((P)this);
 }
Пример #14
0
 public IndicesExistsAliasRequest(IndexNameMarker index, string name) : base(index, name)
 {
 }
Пример #15
0
 public IndexNamePathBase(IndexNameMarker index, string name)
 {
     this.Index = index;
     this.Name  = name;
 }
 public IndexTypePathBase(IndexNameMarker index, TypeNameMarker typeNameMarker)
 {
     this.Index = index;
     this.Type  = typeNameMarker;
 }
Пример #17
0
 public DeleteIndexRequest(IndexNameMarker index)
 {
     this.Indices = new [] { index };
 }
Пример #18
0
 public TermvectorRequest(IndexNameMarker indexName, TypeNameMarker typeName, string id) : base(indexName, typeName, id)
 {
 }
 /// <summary>
 /// Calls putmapping on /{index}/{type}
 /// </summary>
 public PutMappingRequest(IndexNameMarker index, TypeNameMarker type)
 {
     this.Type    = type;
     this.Indices = new [] { index };
 }
Пример #20
0
 public DocumentExistsRequest(IndexNameMarker indexName, TypeNameMarker typeName, string id) : base(indexName, typeName, id)
 {
 }
 public TypeExistsRequest(IndexNameMarker index, TypeNameMarker typeNameMarker) : base(index, typeNameMarker)
 {
 }
Пример #22
0
 public DocumentOptionalPathBase(IndexNameMarker indexName, TypeNameMarker typeName, string id)
 {
     this.Index = indexName;
     this.Type  = typeName;
     this.Id    = id;
 }
 protected SearchExistsRequest(IndexNameMarker index, TypeNameMarker type = null)
     : base(index, type)
 {
 }
Пример #24
0
 public GetIndexRequest(IndexNameMarker index) : this()
 {
     this.Indices = new[] { index };
 }
Пример #25
0
 public P Index(string indexType)
 {
     this._Index = indexType;
     return((P)this);
 }
 public TDescriptor Index <TAlternative>() where TAlternative : class
 {
     this._Index = typeof(TAlternative);
     return((TDescriptor)this);
 }
Пример #27
0
 public IndicesExistsTypeRequest(IndexNameMarker index, TypeNameMarker typeNameMarker) : base(index, typeNameMarker)
 {
 }
Пример #28
0
 public MoreLikeThisRequest(IndexNameMarker indexName, TypeNameMarker typeName, string id) : base(indexName, typeName, id)
 {
 }
Пример #29
0
 public SourceRequest(IndexNameMarker indexName, TypeNameMarker typeName, string id) : base(indexName, typeName, id)
 {
 }
Пример #30
0
 public RegisterPercolatorRequest(IndexNameMarker index, string name) : base(index, name)
 {
 }