What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Is there a a way to clear the Elasticsearch cache? I have updated the data in my **_search table (th

U02P7B6K2LC
U02P7B6K2LC Posts: 121 🧑🏻‍🚀 - Cadet

Is there a a way to clear the Elasticsearch cache? I have updated the data in my **_search table (that feeds Elasticsearch) but when I test on Postman, I’m still getting the old data. Is the data stored elsewhere? Or is it cached? If so is there any way to push the new data into the cache?

Comments

  • U01A5ARAXP0
    U01A5ARAXP0 Posts: 119 🧑🏻‍🚀 - Cadet

    After updating your database table, did you trigger the publishing?

  • U02P7B6K2LC
    U02P7B6K2LC Posts: 121 🧑🏻‍🚀 - Cadet

    Hey… yes… I’ve ran a few import cycles that trigger the publishing event. I’ve also completely cleared the tables and ran the importer etc. and the tables re-populate with the new data.

  • U01A5ARAXP0
    U01A5ARAXP0 Posts: 119 🧑🏻‍🚀 - Cadet

    well, that should be enough then... I think you can check the document data on Zed then and try to figure out what's wrong from that

  • U02P7B6K2LC
    U02P7B6K2LC Posts: 121 🧑🏻‍🚀 - Cadet

    Thank you @U01A5ARAXP0… can I ask… how do I check the document data on Zed?

  • U02P7B6K2LC
    U02P7B6K2LC Posts: 121 🧑🏻‍🚀 - Cadet

    Ok I’ve actually debugged this…

    I ran:

    docker/sdk console elasticsearch:index:delete

    Then ran:

    docker/sdk console publish:trigger-events

    And ran my search in PostMan and … ! It worked!

  • U01A5ARAXP0
    U01A5ARAXP0 Posts: 119 🧑🏻‍🚀 - Cadet

    nice. Anyway, you canm go to Zed > Maintenance > Search > Elasticsearch and you should be able to see all the documents you have published and their content