Page MenuHomePhabricator

Mirror toolinfo records into Elasticsearch
Closed, ResolvedPublic

Description

Mirror the current revision of each toolinfo record to an Elasticsearch service. django-elasticsearch-dsl is a likely candidate for implementing this functionality.

Details

Event Timeline

bd808 triaged this task as Medium priority.Jan 7 2021, 12:55 AM

I've looked around a bit more for libraries specifically designed to integrate django apps with full text search backends. The http://haystacksearch.org/ project is nearly ideal in that it attempts to provide a shared service layer that can be fulfilled with multiple backend services. The recency of elasticsearch's SSPL re-licensing (T272238) reminds me that today's perfect fit backend can easily become tomorrow's legacy tech debt that needs immediate attention. Unfortunately, django-haystack seems to have stalled out on the elasticsearch backend side. There is currently no official support for elasticsearch beyond their 5.x release series in django-haystack and upstream issues indicate a lack of maintainership for es integration.

https://django-elasticsearch-dsl.readthedocs.io/en/latest/index.html plus https://django-elasticsearch-dsl-drf.readthedocs.io/en/latest/index.html are the libraries that I'm looking a bit more into now.

Change 664677 had a related patch set uploaded (by BryanDavis; owner: Bryan Davis):
[wikimedia/toolhub@main] search: mirror toolinfo records into Elasticsearch

https://gerrit.wikimedia.org/r/664677

Change 664677 merged by jenkins-bot:
[wikimedia/toolhub@main] search: mirror toolinfo records into Elasticsearch

https://gerrit.wikimedia.org/r/664677

bd808 moved this task from In Progress to Review on the Toolhub board.