Difference between revisions of "Elasticsearch"

From Freephile Wiki
Jump to navigation Jump to search
(Add more info about running ElasticSearch and debugging any problems)
(update with fix; how to delete indexes using curl)
Line 133: Line 133:
 
[centos@ip-10-0-50-189 .deploy-meza]$ tail /opt/data-meza/logs/search-index/demo.2017-09-07_13:15:01.log
 
[centos@ip-10-0-50-189 .deploy-meza]$ tail /opt/data-meza/logs/search-index/demo.2017-09-07_13:15:01.log
 
         Inferring index identifier...error
 
         Inferring index identifier...error
Looks like the index has more than one identifier. You should delete all
+
Looks like the index has more than one identifier. </pre><span style="background-color:#c1f749;">You should delete all
but the one of them currently active. Here is the list: wiki_demo_content,wiki_demo_content_first
+
but the one of them currently active. Here is the list: wiki_demo_content,wiki_demo_content_first</span><pre>
  
 
Notice: Undefined index: HTTP_HOST in /opt/htdocs/mediawiki/LocalSettings.php on line 219
 
Notice: Undefined index: HTTP_HOST in /opt/htdocs/mediawiki/LocalSettings.php on line 219
Line 143: Line 143:
 
******* Elastic Search build index complete! *******
 
******* Elastic Search build index complete! *******
 
</pre>
 
</pre>
 +
''Emphasis added''
 +
 +
===SOLVED===
 +
You can delete the unwanted index like this with [[curl]]:
 +
<source lang="bash>
 +
curl -XDELETE "http://localhost:9200/wiki_cod_content"
 +
</source>
 +
 +
See more about deleting wikis and all indexes at https://github.com/freephile/meza/blob/6658c795a4b5e5b1a5afcb05c62cf0bcc2d0203b/src/scripts/delete.wikis.sh
  
 
{{References}}
 
{{References}}
  
 
[[Category:Search]]
 
[[Category:Search]]

Revision as of 00:18, 8 September 2017