Tutorial How To Install Elasticsearch 7.x for Xenforo on CentOS
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
Installing elasticsearch 7
insert this:
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
at the end of file add this:
Also, in same above template change/modify the path -Djava.io.tmpdir=
Then
and
set how much ram you will add for elasticsearch - 512 megabytes is set in example (both Xms and Xmx must have same value)
test if everything OK (give 1-2 minute after restarting elasticsearch)
If everything OK, you will see something like this in your CLI
Also, just in case run command and choose Java 11 (if it will list more than 1 java version):
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
To see if you have unassigned replica shards run:
To delete unassigned replica shards run:
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):
and then
Rebuild search with trunucating index before that
or just rebuild without trunucating index
And how it looks in elasticsearch setup page in xenforo ACP
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
Installing elasticsearch 7
insert this:
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
at the end of file add this:
Also, in same above template change/modify the path -Djava.io.tmpdir=
Then
and
set how much ram you will add for elasticsearch - 512 megabytes is set in example (both Xms and Xmx must have same value)
test if everything OK (give 1-2 minute after restarting elasticsearch)
If everything OK, you will see something like this in your CLI
Also, just in case run command and choose Java 11 (if it will list more than 1 java version):
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
To see if you have unassigned replica shards run:
To delete unassigned replica shards run:
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):
and then
Rebuild search with trunucating index before that
or just rebuild without trunucating index
And how it looks in elasticsearch setup page in xenforo ACP
Relate Threads