Welcome to My iptv forum

  • Everyone is invited! My iptv forum is for everyone, new and advanced user alike!
  • Searching is key! Before you post a question, use the forum search feature to determine whether your topic has already been covered.
  • Do not start flame wars! If someone has engaged in behavior that is detrimental to the discussion -- spamming, harassment, etc -- report the post and we'll take a look.
  • Tutorial How To Install Elasticsearch 7.x for Xenforo on CentOS

    Tutorial How To Install Elasticsearch 7.x for Xenforo on CentOS
    ian Offline

    ian

    Administrator
    Super Moderator
    Trusted Member
    +Lifetime VIP
    Member
    Apr 4, 2020
    2,586
    13,184
    153
    UK
    How To Install Elasticsearch 7.x for Xenforo


    This is tutorial for installing (not upgrading) elasticsearch 7 on centos.
    If I am missing something, please post here.

    Delete first old one if you have installed and install fresh new one elasticsearch v7
    Code:
    Please, Log in or Register to view codes content!

    Installing elasticsearch 7

    Code:
    Please, Log in or Register to view codes content!

    Code:
    Please, Log in or Register to view codes content!

    insert this:

    Code:
    Please, Log in or Register to view codes content!

    If you do not have java installed, install it (elasticsearch itself includes a bundled version of OpenJDK, but, just to be sure).
    Java v11 is what you want to install. You can have both version (v.8 and v.11) but I removed v8 and installed v11

    Code:
    Please, Log in or Register to view codes content!

    Code:
    Please, Log in or Register to view codes content!

    Code:
    Please, Log in or Register to view codes content!

    Code:
    Please, Log in or Register to view codes content!

    at the end of file add this:

    Code:
    Please, Log in or Register to view codes content!

    Also, in same above template change/modify the path -Djava.io.tmpdir=

    Code:
    Please, Log in or Register to view codes content!

    Then

    Code:
    Please, Log in or Register to view codes content!

    and

    Code:
    Please, Log in or Register to view codes content!

    set how much ram you will add for elasticsearch - 512 megabytes is set in example (both Xms and Xmx must have same value)

    Code:
    Please, Log in or Register to view codes content!

    Code:
    Please, Log in or Register to view codes content!

    Code:
    Please, Log in or Register to view codes content!

    Code:
    Please, Log in or Register to view codes content!

    Code:
    Please, Log in or Register to view codes content!

    Code:
    Please, Log in or Register to view codes content!

    test if everything OK (give 1-2 minute after restarting elasticsearch)

    Code:
    Please, Log in or Register to view codes content!

    If everything OK, you will see something like this in your CLI


    Code:
    Please, Log in or Register to view codes content!
    Also, just in case run command and choose Java 11 (if it will list more than 1 java version):

    Code:
    Please, Log in or Register to view codes content!

    Also, it is better that you not use shard replica if Elasticsearch is on same server.
    So for make by default no replica shards, run this command

    Code:
    Please, Log in or Register to view codes content!

    To see if you have unassigned replica shards run:


    Code:
    Please, Log in or Register to view codes content!

    To delete unassigned replica shards run:

    Code:
    Please, Log in or Register to view codes content!

    Then deleted the index. After that go to ElasticSearch Setup in Xenforo ACP then rebuilt the index without deleting.

    Minimum version of XenForo Enhanced Search you have installed for elasticsearch 7 is 2.0 I think!

    After you installed elastic search, configure relevant options for enhanced search in your Xenforo ACP and rebuild index (all).
    It is better and faster to rebuild index through cli. So:

    Trunucate old index first (if you have it):

    Code:
    Please, Log in or Register to view codes content!

    and then

    Rebuild search with trunucating index before that

    Code:
    Please, Log in or Register to view codes content!

    or just rebuild without trunucating index

    Code:
    Please, Log in or Register to view codes content!

    And how it looks in elasticsearch setup page in xenforo ACP

    219797-6d012094dc129b7c2a4ac3b9ee478863.png
     

    Create an account or login to comment

    You must be a member in order to leave a comment

    Create account

    Create an account on our community. It's easy!

    Log in

    Already have an account? Log in here.

    Top Posters of the Month

    Online statistics

    Members online
    120
    Guests online
    641
    Total visitors
    761
    18,406Threads
    64,567Messages
    63,154Members
    mgmvienLatest member
    Top