Newly inserted document not visible in searches

PUT https://elasticsearch-url/index-name/_doc/customID?refresh

{
my data object
}

This is the response I get:

{
  "_index": "index-name",
  "_type": "_doc",
  "_id": "customID",
  "_version": 1,
  "result": "created",
  "forced_refresh": true,
  "_shards": {
    "total": 2,
    "successful": 2,
    "failed": 0
  },
  "_seq_no": 204514,
  "_primary_term": 1
}

I do have:

  "index.refresh_interval": "1s",
  "index.write.wait_for_active_shards": "1"

I can query it by customID but not through a search. Can't seem to figure out why?

The json object you posted is invalid.

{
my data object
}

Can you show the results when you query it by customID

And how you are trying to perform the search

1 Like

Stephen,

My bad. Maybe because it's Sunday, but one of the parameters I was searching against was wrong. Default value is 'A' for the search query, but for that document, the value was 'U', thus never returning. I think I need a coffee or two.

Sorry for the inconvenience.

Sid.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.