hitobito / development

Setup your local machine for hitobito development
GNU Affero General Public License v3.0
19 stars 15 forks source link

Improvements for sphinx in dev-setup #51

Closed mtnstar closed 1 day ago

mtnstar commented 1 year ago

Activate Sphinx in dev-setup

currently sphinx is started as container, but search does not use sphinx since the env variable RAILS_SPHINX_PORT is not set by default. Setting RAILS_SPHINX_PORT=9312 in docker/rails.env activates it and it works.

Generate sphinx config on startup

currently sphinx is just using a static index config: https://github.com/hitobito/development/blob/master/docker/sphinx.conf

so only core attributes are searchable and extended indexes from the wagons are ignored

the goal is to generate the sphinx dynamically on start-up (docker-compose up) with thinking_sphinx gem

ToDo