I'm having a problem with reindexing.
I have an index called
emails, after reindexing, I can get/post documents to this index normally.
But for new documents, I cannot get these when search by property or show them in a query with sort.
This is the result when searching by _id
This is the result when searching by
also when sorting, i cannot get the latest order by
date_sent (the above recrod has
date_sent = 2021-05-25)
Can anyone help me with this?
please refrain from using screenshots, but use code snippets. This forum has excellent markdown support for code snippets. Thank you!
First, have you refresh/flushed the index?
Second, what does
GET emails/_search return? Doucments from that index?
Third, what is the mapping for the
Fourth, which Elasticsearch version is this?
Fifth, what does the Explain API return for your query and the document. you would like to match?
order_id field is an analyzed text field, which it probably was not before. Try searching in the
order_id.keyword field instead. Is it possible, that you have not copied the mapping before reindexing?
I copied the entire mapping when reindexing.
order_id.keyword are not working.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.