#4353 (Elastic search as an extendable feature to global SiteSearch)
by Sharif Mehedi · in Developers · assigned to Sharif Mehedi
Résumé
Concepts sous-jacents
Commentaires
- 4 ans, 10 mois ago by Luc Saffre about #4353 (Elastic search as an extendable feature to global SiteSearch) : Here is the traceback we get on Jane when use_elasticsearch is True:
Traceback (most recent call last): File "./wsgi.py", line 7, in <module> application = get_wsgi_application() File "/usr/local/lino/lino_local/jane/env/lib/python3.7/site-packages/django/core/wsgi.py", line 12, in get_wsgi_app... - 4 ans, 10 mois ago by Luc Saffre about #4353 (Elastic search as an extendable feature to global SiteSearch) : I could not find the traceback of that internal server error, neither in /var/log/nginx/error.log nor in /usr/local/lino/lino_local/jane/log/lino.log. So I also uncommented them, ran reload_services.sh and then looked at /var/log/supervisor/jane-uwsgi-stderr---supervisor-MZLWsp.log before changing t...
- 4 ans, 10 mois ago by hannes about #4353 (Elastic search as an extendable feature to global SiteSearch) : Changed conf of jane in settings.py: uncommented "use_elasticsearch = True" "yield ('search', 'ES_url', "127.0.0.1:9200")"
- 4 ans, 10 mois ago by Luc Saffre about #4353 (Elastic search as an extendable feature to global SiteSearch) : I started to review the docs about ES in book and hg. I committed my work, but there is more to do.
- 4 ans, 11 mois ago by Luc Saffre about #4353 (Elastic search as an extendable feature to global SiteSearch) : I changed the port from 9200 to 920 (in /etc/elasticsearch/elasticsearch.yml on bombur) to make it visible in public. But it seems that we must setup basic security for ES, otherwise it won't accept to run on a public port. See [url www.elastic.co/guide/en/elasticsearch/reference/7.15/security-minim...
- 4 ans, 11 mois ago by Sharif Mehedi about #4353 (Elastic search as an extendable feature to global SiteSearch) : ElasticSearch deployment on elastic-cloud is working fine (N.B. It's a trial (free) version). And finally the tests on book are passing now. although there's a problem in pages deployment (inv bd). It might get fixed after my last commit. ElasticSearch is usable now on lino. We should think about de...
- 4 ans, 11 mois ago by Sharif Mehedi about #4353 (Elastic search as an extendable feature to global SiteSearch) : I just published a working draft of elastic plugin on gitlab and related documentation
- 4 ans, 11 mois ago by Sharif Mehedi about #4353 (Elastic search as an extendable feature to global SiteSearch) : test comment
- 4 ans, 11 mois ago by Sharif Mehedi about #4353 (Elastic search as an extendable feature to global SiteSearch) : test comment
- 5 ans ago by Sharif Mehedi about #4353 (Elastic search as an extendable feature to global SiteSearch) : Discovering ElasticSearch as well as DjangoRestFramework. DRF is necessary for building the search documents.
- 5 ans ago by Sharif Mehedi about #4353 (Elastic search as an extendable feature to global SiteSearch) : I am still discovering ElasticSearch.
- 5 ans ago by Luc Saffre about #4353 (Elastic search as an extendable feature to global SiteSearch) : Probably a admin command à la "createindexes". I already started to add the instruction in hg/docs/upgrade.rst (although the command does not yet exist)
- 5 ans ago by Sharif Mehedi about #4353 (Elastic search as an extendable feature to global SiteSearch) : The situation is like chicken and egg! What came first, the chicken or the egg! Likewise, here with elasticsearch, we can either define the indexes (hard coded) first and then run lino or we can run lino first and then define the indexes (programmatically). I prefer the later case, defining the inde...
- 5 ans ago by Sharif Mehedi about #4353 (Elastic search as an extendable feature to global SiteSearch) : Initiated a page about elastic plugin (docs/plugin/elastic.rst) also added changelog in changes/2021.rst
- 5 ans ago by Sharif Mehedi about #4353 (Elastic search as an extendable feature to global SiteSearch) : So far I have worked on integrating ElasticSearch with lino. Even though I have not tested anything yet, my guess is that the integration will work properly. At the moment, the test suite is running, my hope is that nothing is going to break. I will publish this half done work after documenting it.