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

Question regarding upgrade of search

cmeinck

Well-known member
#1
I read the release notes and it appears to be no different than a typical XenForo upgrade. I just want to be sure, because the initial setup of search was not something I was able to do without seeking paid assistance.

Thanks!
 

Brogan

XenForo moderator
Staff member
#2
Presumably you mean ES.

As long as you comply with the requirements listed in the announcement, it's just a standard add-on upgrade.

http://xenforo.com/community/threads/xenforo-enhanced-search-1-0-1-released.47025/

Requirements
XFES requires that you have elasticsearch 0.16.0 or newer installed. As such, this add-on is only applicable if you have root access to your server (such as with a dedicated server or VPS). XFES also requires XenForo 1.1.1 or newer.
 

Brogan

XenForo moderator
Staff member
#4
You should rebuild the search index.

I'm quoting Mike here...

"A rebuild is not required, but to get the benefits, you will need to. But to get the benefits, you need to click "optimize" on the ES setup page, which would then force you to reindex as it would remove all of the old data"
 

Slavik

XenForo moderator
Staff member
#5
You should rebuild the search index.
To expand

Stuff indexed before 1.0.1 will work as usual, but 1.0.1 includes serveral performance / size improvements (removing the source file), which will not take effect on old content until a full re-index is done. There is a new option in the search settings page one of them being "optimize" which will force you to re-index anyway.
 

Anthony Parsons

Well-known member
#8
The optimize option won't show up unless it's needed.
Thanks... as I don't have it after upgrading. Slavik updated my server the other day to the latest ES and Java... so I was wondering about that. I updated ES, rebuilt and couldn't find an optimise option on my search page. Whew!!!
 

CyclingTribe

Well-known member
#11
I've just run the upgrade on CycleChat and changed the index name in the process (so I had the old and new ones to compare); old index 2.1GB - new optimsed index 1.2GB ... :D

Nice upgrade guys.

Thanks,
Shaun :D
 

Anthony Parsons

Well-known member
#12
Can I just confirm, that the optimise option is one option on the page that you use "after" rebuild, not before? I've used it prior, it still appears. I've used it after, it still appears.
 

AndyB

Well-known member
#13
If you don't use ES, where does the default search store the search words? In vBulletin they were in a table called "words".
 

Mike

XenForo developer
Staff member
#14
Can I just confirm, that the optimise option is one option on the page that you use "after" rebuild, not before? I've used it prior, it still appears. I've used it after, it still appears.
Before, it will have to wipe out the index to properly optimize. I'm not sure why it's appearing still for you though. The only way I could check that is with FTP (or similar) access.

If you don't use ES, where does the default search store the search words? In vBulletin they were in a table called "words".
xf_search_index.
 

AndyB

Well-known member
#15
Hi Mike,

Now that I'm using ES, there are about 2,500 rows of old data in my xf_search_index, I assume it's safe to truncate this table.

Also is the xf_search table still being used? There are about 2,100 rows of data in it, should I truncate that too?
 

AndyB

Well-known member
#17
You can truncate the index, but not the search table.
Does ElasticSearch use the xf_index table, or is this table being used by other parts of the Xenforo program?

I wish there was a way of reading the BLOB data using phpmyadmin so I could see the contents of the xf_index table.