Remove index refresh
This commit is contained in:
parent
4d39000cd3
commit
51d359ec40
|
@ -95,17 +95,13 @@ async function search() {
|
||||||
var response = await client.index({
|
var response = await client.index({
|
||||||
id: id,
|
id: id,
|
||||||
index: index_name,
|
index: index_name,
|
||||||
body: document
|
body: document,
|
||||||
|
refresh: true
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log('Adding document:')
|
console.log('Adding document:')
|
||||||
console.log(response.body)
|
console.log(response.body)
|
||||||
|
|
||||||
// Force an index refresh so the subsequent search returns results.
|
|
||||||
client.indices.refresh({
|
|
||||||
index: index_name
|
|
||||||
})
|
|
||||||
|
|
||||||
// Search for the document.
|
// Search for the document.
|
||||||
var query = {
|
var query = {
|
||||||
'query': {
|
'query': {
|
||||||
|
|
Loading…
Reference in New Issue