Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public string IndexName(IndexNameMarker index)
 {
     if (index == null)
     {
         return(null);
     }
     return(index.Resolve(this._connectionSettings));
 }
Ejemplo n.º 3
0
 internal SearchDescriptor <T> Index(IndexNameMarker index)
 {
     if (index == null)
     {
         return(this);
     }
     this._Indices = new[] { index };
     return(this);
 }
Ejemplo n.º 4
0
 protected QueryPathBase(IndexNameMarker index, TypeNameMarker type = null)
 {
     this.Indices = new [] { index };
     if (type != null)
     {
         this.Types = new[] { type }
     }
     ;
     else
     {
         this.AllTypes = true;
     }
 }
Ejemplo n.º 5
0
 public DeleteByQueryRequest(IndexNameMarker index, TypeNameMarker type = null)
 {
     this.Indices = new [] { index };
     if (type != null)
     {
         this.Types = new[] { type }
     }
     ;
     else
     {
         this.AllTypes = true;
     }
 }
Ejemplo n.º 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));
        }
Ejemplo n.º 7
0
 public IndexPathBase(IndexNameMarker index)
 {
     this.Index = index;
 }
Ejemplo n.º 8
0
 public SearchShardsRequest(IndexNameMarker index, TypeNameMarker type = null) : base(index, type)
 {
 }
Ejemplo n.º 9
0
 public DeleteMappingRequest(IndexNameMarker index, TypeNameMarker typeNameMarker) : base(index, typeNameMarker)
 {
 }
Ejemplo n.º 10
0
 public CreateIndexRequest(IndexNameMarker index) : base(index)
 {
 }
 public TDescriptor Index(Type indexType)
 {
     this._Index = indexType;
     return((TDescriptor)this);
 }
Ejemplo n.º 12
0
 public P Index <T>() where T : class
 {
     this._Index = typeof(T);
     return((P)this);
 }
Ejemplo n.º 13
0
 public P Index(Type indexType)
 {
     this._Index = indexType;
     return((P)this);
 }
Ejemplo n.º 14
0
 public IndicesExistsAliasRequest(IndexNameMarker index, string name) : base(index, name)
 {
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 17
0
 public DeleteIndexRequest(IndexNameMarker index)
 {
     this.Indices = new [] { index };
 }
Ejemplo n.º 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 };
 }
Ejemplo n.º 20
0
 public DocumentExistsRequest(IndexNameMarker indexName, TypeNameMarker typeName, string id) : base(indexName, typeName, id)
 {
 }
 public TypeExistsRequest(IndexNameMarker index, TypeNameMarker typeNameMarker) : base(index, typeNameMarker)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 24
0
 public GetIndexRequest(IndexNameMarker index) : this()
 {
     this.Indices = new[] { index };
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 27
0
 public IndicesExistsTypeRequest(IndexNameMarker index, TypeNameMarker typeNameMarker) : base(index, typeNameMarker)
 {
 }
Ejemplo n.º 28
0
 public MoreLikeThisRequest(IndexNameMarker indexName, TypeNameMarker typeName, string id) : base(indexName, typeName, id)
 {
 }
Ejemplo n.º 29
0
 public SourceRequest(IndexNameMarker indexName, TypeNameMarker typeName, string id) : base(indexName, typeName, id)
 {
 }
Ejemplo n.º 30
0
 public RegisterPercolatorRequest(IndexNameMarker index, string name) : base(index, name)
 {
 }