Joseph_Raj
(Joseph Raj)
February 12, 2020, 3:02pm
1
We want to see the particular document is available in ES under the particular index, so we tried the below query in cerebro visualization tool.
GET Method
en_y_91/basic_type/denmod_y_107722
Output:
{
"_index": "en_y_91",
"_type": "basic_type",
"_id": "denmod_y_107722",
"found": false
}
So could anyone help us to find the right command for getting the particular document from an index.
Thanks in advance !!!
spinscale
(Alexander Reelsen)
February 12, 2020, 4:20pm
2
The command looks right, but the document does not exist in that index, thus found: false
is being returned.
Joseph_Raj
(Joseph Raj)
February 13, 2020, 10:22am
3
please check the below screenshots,
Screenshot 1 :
Image output shows data available but still cmd output shows found false.
Screenshot 2:
Image output shows data unavailable(i.e. index not found) but still cmd output shows found false.
Kindly check & provide the possible solution for the same.
As on the case 1, we have the document in ELK but we see found - false.
Thanks in advance !!!
Joseph_Raj:
denmod_y_107722
Can you please share the output for
en_y_91/basic_type/denmod_y_105334
Joseph_Raj
(Joseph Raj)
February 13, 2020, 11:36am
5
Did you mean the below query ? as the above mentioned by you is wrong.
en_y_91/basic_type/denmod_y_107325
Joseph_Raj:
denmod_y_107325
denmod_y_107325 -- it represents ID right .. i wanted to see what data it fetches for this en_y_91/basic_type/denmod_y_105334
Joseph_Raj
(Joseph Raj)
February 13, 2020, 12:02pm
7
It remains the same output. Check below.
It looks to me like ‘denmod_y_107325’ is an alias rather than a document id. If this is the case you need to query using the alias rather than the underlying index name.
Joseph_Raj
(Joseph Raj)
February 13, 2020, 4:45pm
9
could you help me in querying the alias name.
system
(system)
Closed
March 12, 2020, 4:45pm
10
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.