Difference between revisions of "Elasticsearch"

From Freephile Wiki
Jump to navigation Jump to search
m (-X GET is default, and thus totally not necessary to specify as an option.)
(Add more info about running ElasticSearch and debugging any problems)
Line 36: Line 36:
 
; Elastica : Elastica is a MediaWiki extension that provides the library to interface with Elasticsearch. It wraps the [https://github.com/ruflin/Elastica Elastica] library. It has no configuration.
 
; Elastica : Elastica is a MediaWiki extension that provides the library to interface with Elasticsearch. It wraps the [https://github.com/ruflin/Elastica Elastica] library. It has no configuration.
 
; CirrusSearch : CirrusSearch is a MediaWiki extension that provides search support backed by Elasticsearch.
 
; CirrusSearch : CirrusSearch is a MediaWiki extension that provides search support backed by Elasticsearch.
; Elasticsearch : is a Java application, so you need [[Java]] installed as well.  At the time of this writing, there is a version mismatch.  Elasticsearch is at version 2.1.1 in the repositories, but CirrusSearch is only compatible with the older 1.7 version.
+
; Elasticsearch : is a Java application, so you need [[Java]] installed as well.  At the time of this writing, there is a version mismatch.  Elasticsearch is at version 2.1.1 in the repositories, but CirrusSearch is only compatible with the older 1.7 version. ''This is old information.  There are newer versions for all components, and you must be sure to take heed of the requirements for matching the right versions together to compose your full setup.''
  
 
== Installation ==
 
== Installation ==
Line 118: Line 118:
 
* https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FCirrusSearch.git/HEAD/README
 
* https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FCirrusSearch.git/HEAD/README
 
* https://wikitech.wikimedia.org/wiki/Search
 
* https://wikitech.wikimedia.org/wiki/Search
 +
 +
== Problems ==
 +
We recently ran a 'rebuild-all' script to update Elasticsearch indexes
 +
<pre>
 +
[centos@ip-10-0-50-189 .deploy-meza]$ time sudo ./elastic-rebuild-all.sh demo
 +
Rebuilding index for demo
 +
  Output log:
 +
    /opt/data-meza/logs/search-index/demo.2017-09-07_13:15:01.log
 +
elastic-build-index completed for "demo" at 2017-09-07_13:15:03
 +
 +
real    0m1.653s
 +
user    0m1.327s
 +
sys    0m0.199s
 +
[centos@ip-10-0-50-189 .deploy-meza]$ tail /opt/data-meza/logs/search-index/demo.2017-09-07_13:15:01.log
 +
        Inferring index identifier...error
 +
Looks like the index has more than one identifier. You should delete all
 +
but the one of them currently active. Here is the list: wiki_demo_content,wiki_demo_content_first
 +
 +
Notice: Undefined index: HTTP_HOST in /opt/htdocs/mediawiki/LocalSettings.php on line 219
 +
[          wiki_demo] index(es) do not exist. Did you forget to run updateSearchIndexConfig?
 +
 +
Notice: Undefined index: HTTP_HOST in /opt/htdocs/mediawiki/LocalSettings.php on line 219
 +
[          wiki_demo] index(es) do not exist. Did you forget to run updateSearchIndexConfig?
 +
******* Elastic Search build index complete! *******
 +
</pre>
  
 
{{References}}
 
{{References}}
  
 
[[Category:Search]]
 
[[Category:Search]]

Revision as of 11:00, 7 September 2017