Project:DebuggingIndexing: Difference between revisions
From MaRDI portal
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 13: | Line 13: | ||
** Get name of indices: curl -X GET "localhost:9200/_cat/indices?v&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" | ** 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 | Container mardi-wikibase should have cirrussearch | ||
-> open console and exec "/var/www/html/maintenance/run showJobs --group" | -> open console and exec "/var/www/html/maintenance/run showJobs --group" | ||
=== Links === | |||
* https://portal.mardi4nfdi.de/w/index.php?title=Special:Search&cirrusDumpResult=&cirrusExplain=&search=conrad | |||
=== 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. |
Latest revision as of 23:24, 12 February 2024
Cirrus Search: https://www.mediawiki.org/wiki/Extension:CirrusSearch
Elastic Search: https://www.elastic.co/de/elasticsearch
- Start with using Portainer: https://portainer.portal.mardi4nfdi.de/
- Go to container overview: https://portainer.portal.mardi4nfdi.de/#!/2/docker/containers
-> 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.