Page MenuHomePhabricator

Fulltext/ElasticSearch does not work
Closed, ResolvedPublic

Description

VM: mixnmatch, project mix-n-match

Fulltext search on the wiki does not work, never has:
https://mixnmatch.wmflabs.org/w/index.php?search=test&title=Special:Search&fulltext=1
The container is up and running:

magnus@mixnmatch:~/wikibase-docker$ sudo docker-compose ps
              Name                             Command               State          Ports
-------------------------------------------------------------------------------------------------
wikibase-docker_elasticsearch_1     /docker-entrypoint.sh elas ...   Up      9200/tcp, 9300/tcp

Not a critical issue, but it would be nice if I could resolve it soon. I'd imagine there is a setting I need to change somewhere?

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Addshore triaged this task as Medium priority.Oct 16 2018, 9:59 AM
Addshore renamed this task from Fulltest/ElasticSearch does not work to Fulltext/ElasticSearch does not work.Feb 11 2019, 9:05 AM
Addshore moved this task from incoming to needs discussion or investigation on the Wikidata board.
Addshore subscribed.

@Tarrow is there any chance you could have a little look / investigate of this?

Which version of the docker images are you running? e.g. 1.31/1.32...?

After starting the 1.32 version, no elasticsearch index was created. Following the suggestions here:

https://www.mediawiki.org/wiki/Topic:Usk12zxjx7m3krhu

I started php extensions/CirrusSearch/maintenance/metastore.php and afterwards extensions/CirrusSearch/maintenance/updateSearchIndexConfig.php which stopped with

indexing namespaces...
Indexing namespaces...done
content index...
Fetching Elasticsearch version...5.6.9...ok
Scanning available plugins...none
Inferring index identifier...my_wiki_content_first
Picking analyzer...english
Creating index...⧼Custom Analyzer [extract_wb_quantity] failed to find filter under name [term_freq]⧽

I could not find extract_wb_quantity in the docs.

The necessary fixes to Elastica and CirrusSearch are up.

The reason for

Creating index...⧼Custom Analyzer [extract_wb_quantity] failed to find filter under name [term_freq]⧽

is a missing elasticsearch plugin ( https://gerrit.wikimedia.org/r/plugins/gitiles/search/extra/ ), that is necessary for a wikibase specific field. The extra plugin does not exist for the elasticsearch version in the docker-compose file, so I replaced it with a custom image

FROM elasticsearch:5.6.14
RUN ./bin/elasticsearch-plugin install org.wikimedia.search:extra:5.6.14

As far as I can see, fulltext/elasticsearch seems to work.

Addshore claimed this task.

These plugins are included now