Project:DebuggingIndexing: Difference between revisions

From MaRDI portal
No edit summary
No edit summary
Line 22: Line 22:
* https://portal.mardi4nfdi.de/w/index.php?title=Special:Search&cirrusDumpResult=&cirrusExplain=&search=conrad
* https://portal.mardi4nfdi.de/w/index.php?title=Special:Search&cirrusDumpResult=&cirrusExplain=&search=conrad


=== Test ===
=== Test 1 ===
* Take an entry: https://portal.mardi4nfdi.de/wiki/Publication:482724
* Take a publication entry: https://portal.mardi4nfdi.de/wiki/Publication:482724
* Edit the page manually, e.g. adding "abc132" to it.
* 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"
* 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
* 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") - person page not found.
* 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/4996820"
* Changes show up
* Search for abc123 in Wiki -> finds edited page

Revision as of 00:20, 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 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") - person page not found.
  • 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/4996820"
  • Changes show up
  • Search for abc123 in Wiki -> finds edited page