I have used completion suggester for suggestions.So my question is I have created a type called "states" in one of indices and I have indexed around 10k documents to that type.
For some reason I have dropped that type and re-indexed the documents.
Here is the mystery while I'm querying for that type it is showing me the old suggestions.
We are using elasticsearch2.2.0
Please let me know if there are options to get the results based on the current type documents.
there's a not at the bottom of the docs saying that:
The suggest data structure might not reflect deletes on
documents immediately. You may need to do an Optimize for that.
You can call optimize with the only_expunge_deletes=true to only target
deletions for merging.
Have you tried that? Not sure if it helps but I'd start with that.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.