/// <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)); }
public string IndexName(IndexNameMarker index) { if (index == null) { return(null); } return(index.Resolve(this._connectionSettings)); }
internal SearchDescriptor <T> Index(IndexNameMarker index) { if (index == null) { return(this); } this._Indices = new[] { index }; return(this); }
protected QueryPathBase(IndexNameMarker index, TypeNameMarker type = null) { this.Indices = new [] { index }; if (type != null) { this.Types = new[] { type } } ; else { this.AllTypes = true; } }
public DeleteByQueryRequest(IndexNameMarker index, TypeNameMarker type = null) { this.Indices = new [] { index }; if (type != null) { this.Types = new[] { type } } ; else { this.AllTypes = true; } }
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)); }
public IndexPathBase(IndexNameMarker index) { this.Index = index; }
public SearchShardsRequest(IndexNameMarker index, TypeNameMarker type = null) : base(index, type) { }
public DeleteMappingRequest(IndexNameMarker index, TypeNameMarker typeNameMarker) : base(index, typeNameMarker) { }
public CreateIndexRequest(IndexNameMarker index) : base(index) { }
public TDescriptor Index(Type indexType) { this._Index = indexType; return((TDescriptor)this); }
public P Index <T>() where T : class { this._Index = typeof(T); return((P)this); }
public P Index(Type indexType) { this._Index = indexType; return((P)this); }
public IndicesExistsAliasRequest(IndexNameMarker index, string name) : base(index, name) { }
public IndexNamePathBase(IndexNameMarker index, string name) { this.Index = index; this.Name = name; }
public IndexTypePathBase(IndexNameMarker index, TypeNameMarker typeNameMarker) { this.Index = index; this.Type = typeNameMarker; }
public DeleteIndexRequest(IndexNameMarker index) { this.Indices = new [] { index }; }
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 }; }
public DocumentExistsRequest(IndexNameMarker indexName, TypeNameMarker typeName, string id) : base(indexName, typeName, id) { }
public TypeExistsRequest(IndexNameMarker index, TypeNameMarker typeNameMarker) : base(index, typeNameMarker) { }
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) { }
public GetIndexRequest(IndexNameMarker index) : this() { this.Indices = new[] { index }; }
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); }
public IndicesExistsTypeRequest(IndexNameMarker index, TypeNameMarker typeNameMarker) : base(index, typeNameMarker) { }
public MoreLikeThisRequest(IndexNameMarker indexName, TypeNameMarker typeName, string id) : base(indexName, typeName, id) { }
public SourceRequest(IndexNameMarker indexName, TypeNameMarker typeName, string id) : base(indexName, typeName, id) { }
public RegisterPercolatorRequest(IndexNameMarker index, string name) : base(index, name) { }