How can I speed up tokenizing in elasticsearch?

I use elasticsearch in social network product to receive and search documents (posts) created by users but there is a problem with searching just created document, it appears in search results after a while (1-2 minutes). It is too slow for us. Can you, please, tell how can we search for a just created document faster?

What’s your refresh_interval ?

1 Like

Apart from the refresh interval, which could on its own explain the delay, it would be useful if you also could provide details about the following:

  • Which Elasticsearch version are you using?
  • What is the size and mapping complexity of your documents?
  • Are you using nested documents, vectors, parent-child or any other featiures that may affect performance?
  • What is the size of your data in terms of document count, size on disk and shard count?
  • What is the size and specification of your cluster? What type of storage are you using?
  • What load is the cluster typically under?