Full-text search for authorized statuses (#6423)
* Add full-text search for authorized statuses - Search API will return statuses that match the query - Only for logged in users - Only if you are author of the status, - Or you were mentioned in it - Or you favourited or reblogged it - Configuration over `ES_ENABLED`, `ES_HOST`, `ES_PORT`, `ES_PREFIX` - Run `rails chewy:deploy` to create & populate index Fix #5880 Fix #4293 Fix #1152 * Add commented out docker-compose configuration for ES container * Optimize index import, filter search results * Add basic normalization to the index * Add better stemming and normalization to the index * Skip webfinger request if search query includes both @ and a space * Fix code style * Visually separate search result sections * Fix code style issues
Showing
- .env.production.sample 4 additions, 0 deletions.env.production.sample
- Gemfile 1 addition, 0 deletionsGemfile
- Gemfile.lock 22 additions, 0 deletionsGemfile.lock
- app/chewy/statuses_index.rb 61 additions, 0 deletionsapp/chewy/statuses_index.rb
- app/javascript/mastodon/features/compose/components/search_results.js 6 additions, 0 deletions...pt/mastodon/features/compose/components/search_results.js
- app/javascript/styles/mastodon/components.scss 38 additions, 1 deletionapp/javascript/styles/mastodon/components.scss
- app/lib/status_filter.rb 1 addition, 0 deletionsapp/lib/status_filter.rb
- app/models/favourite.rb 2 additions, 0 deletionsapp/models/favourite.rb
- app/models/status.rb 18 additions, 0 deletionsapp/models/status.rb
- app/services/search_service.rb 39 additions, 4 deletionsapp/services/search_service.rb
- config/initializers/chewy.rb 22 additions, 0 deletionsconfig/initializers/chewy.rb
- docker-compose.yml 12 additions, 0 deletionsdocker-compose.yml
- spec/spec_helper.rb 4 additions, 0 deletionsspec/spec_helper.rb
Loading
Please register or sign in to comment