1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Do you have to reindex if you turn elasticsearch off for a short period?

Discussion in 'Enhanced Search Support' started by CyclingTribe, Jan 18, 2012.

  1. CyclingTribe

    CyclingTribe Well-Known Member

    Do posts/content get cached if elasticsearch is offline? or perhaps queued for injection after it restarts?

    If not, do you have to reindex if you've turned it off with your site live?

    Shaun :D
  2. Mike

    Mike XenForo Developer Staff Member

    The data is maintained across instances of the service running, but if you shutdown elasticsearch and there is content that doesn't get indexed, you will need to do a reindex to replace it. (If you run something like this, you should consider elasticsearch to be on par with the web server or MySQL in terms of importance: if it's down, it's a big deal.)
  3. Slavik

    Slavik XenForo Moderator Staff Member

    Weird, I read this question and answered it in the other thread?

    I think I was right though Mike, if you turn off ES within XF it will continue to use Mysql (and the posts will not be found when ES is turned back on), but if you just disable the service it will just not index anything?
  4. Mike Tougeron

    Mike Tougeron Well-Known Member

    If the ElasticSearch server errors or is unavailable the data will not be inserted into the index. You'd need to reindex if this happens to you.
    GeeksChat likes this.
  5. CyclingTribe

    CyclingTribe Well-Known Member

    Thanks Mike - just getting my head around it all so that I know how to use it and what some of the pitfalls / nuances are. (y)

Share This Page