Project:DebuggingIndexing

From MaRDI portal
Revision as of 23:24, 12 February 2024 by Tconrad (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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 1

  • Take a publication 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
  • Search for abc123 in Wiki -> finds edited page
  • Undo changes

Test 2

  • Take a person entry: https://portal.mardi4nfdi.de/wiki/Person:482723
  • Search for person's name ("Tim Conrad") on Wiki - person page NOT found.
  • Edit the page manually, e.g. adding "abc123" to it.
  • Check the entry in Elastic Search: curl -X GET "localhost:9200/my_wiki_content_1703080692/_doc/4996820"
  • Changes show up
  • Search for abc123 in Wiki -> finds edited page
  • Undo changes
  • Search for person's name ("Tim Conrad") on Wiki - person page IS found.