I forgot to index a field

Hi.
I forgot to index a field called "n_citation" which is in type "integer".
When mapping the dataset, I decide to map the necessary fields (like "title" and "abstract") only to save my time. Now, it turns out that the "n_citation" field is important(maybe the most important field). I have 500GB dataset to map. What should I do now? Is there a quick way to reindex it?

If the field is not part of the _source document yet, you need to reindex everything from the source as you initially did it.
If the field is part of it, you can may be use the _reindex API and just change the target index mapping.

thanks for the awesome information.

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