mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #23999 from deerawan/routing-elasticsearch
Elasticsearch: Add _routing in GetResponse
This commit is contained in:
@@ -169,6 +169,15 @@ client.index({
|
||||
}, (error, response) => {
|
||||
});
|
||||
|
||||
client.get({
|
||||
index: 'myindex',
|
||||
type: 'mytype',
|
||||
id: '1',
|
||||
routing: '1'
|
||||
}, (error, response) => {
|
||||
const routing = response._routing;
|
||||
});
|
||||
|
||||
client.mget({
|
||||
body: {
|
||||
docs: [
|
||||
|
||||
Vendored
+2
@@ -8,6 +8,7 @@
|
||||
// Ahmad Ferdous Bin Alam <https://github.com/ahmadferdous>
|
||||
// Simon Schick <https://github.com/SimonSchick>
|
||||
// Paul Brabban <https://github.com/brabster>
|
||||
// Budi Irawan <https://github.com/deerawan>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
@@ -407,6 +408,7 @@ export interface GetResponse<T> {
|
||||
_type: string;
|
||||
_id: string;
|
||||
_version: number;
|
||||
_routing?: string;
|
||||
found: boolean;
|
||||
_source: T;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user