Project:DebuggingIndexing: Difference between revisions

From MaRDI portal
No edit summary
No edit summary
Line 27: Line 27:
* Check the entry in Elastic Search: curl -X GET "localhost:9200/my_wiki_content_1703080692/_doc/8666459"
* Check the entry in Elastic Search: curl -X GET "localhost:9200/my_wiki_content_1703080692/_doc/8666459"
* Changes show up
* Changes show up
* Changes also show up in the Wiki search

Revision as of 00:16, 13 February 2024


Cirrus Search: https://www.mediawiki.org/wiki/Extension:CirrusSearch Elastic Search: https://www.elastic.co/de/elasticsearch

-> Check out logs at the ElasticSearch container

  • Get info about Elastic Searvh service status:
    • Go to Portainer->ElasticSearch Docker->Console and execute: curl -X GET "localhost:9200/_cluster/health?pretty"
    • Get name of indices: curl -X GET "localhost:9200/_cat/indices?v&pretty"
    • Get status of specific index: curl -X GET "localhost:9200/your_index_name/_stats?pretty"
      • curl -X GET "localhost:9200/my_wiki_content_1703080692/_stats?pretty"


Container mardi-wikibase should have cirrussearch -> open console and exec "/var/www/html/maintenance/run showJobs --group"

Links

Test

  • Take an entry: https://portal.mardi4nfdi.de/wiki/Publication:482724
  • Edit the page manually, e.g. adding "abc132" to it.
  • Check the entry in Elastic Search: curl -X GET "localhost:9200/my_wiki_content_1703080692/_doc/8666459"
  • Changes show up
  • Changes also show up in the Wiki search