Commit Graph

18 Commits (90917b305a0389f7c851059331852006a4233094)

Author SHA1 Message Date
Eugen Rochko a9b64b24d6
Change algorithm of `tootctl search deploy` to improve performance ()
Eugen Rochko 679b7158e3
Change search indexing to use batches to minimize resource usage ()
Jeong Arm ea38327816
Let votes statuses are also searchable ()
Claire ef196c913c
Fix error MethodError in Chewy::Strategy::Sidekiq::Worker ()
Also refactor a bit to reduce code duplication.
Claire 2c45859ca9
Refactor account and status formatting ()
* Refactor status formatting

* Add account formatting helpers

* Remove StatusFormatter

* Fixup

* Fix copied typo
Eugen Rochko cefa526c6d
Refactor formatter ()
* Refactor formatter

* Move custom emoji pre-rendering logic to view helpers

* Move more methods out of Formatter

* Fix code style issues

* Remove Formatter

* Add inline poll options to RSS feeds

* Remove unused helper method

* Fix code style issues

* Various fixes and improvements

* Fix test
Eugen Rochko d17fb70131
Change how changes to media attachments are stored for edits ()
* Change how changes to media attachments are stored for edits

Fix not being able to re-order media attachments

* Fix not broadcasting updates when polls/media is changed through ActivityPub

* Various fixes and improvements

* Update app/models/report.rb

Co-authored-by: Claire <claire.github-309c@sitedethib.com>

* Add tracking of media attachment description changes

* Change poll in status edit to have a structure closer to the real one

Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Takeshi Umeda 3419d3ec84
Bump chewy from 5.2.0 to 7.2.3 (supports Elasticsearch 7.x) ()
* Bump chewy from 5.2.0 to 7.2.2

* fix style (codeclimate)

* fix style

* fix style

* Bump chewy from 7.2.2 to 7.2.3
Eugen Rochko 4abe3be321
Change `tootctl search deploy` algorithm ()
Takeshi Umeda e6706d171a
Fix searchable status without explicitly mentioning it ()
Takeshi Umeda 5a1fb6efc2
Fix bookmarks also searchable ()
Eugen Rochko 575dc11cb2
Fix needlessly indexing unsearchable statuses into ElasticSearch ()
mayaeh a02f4b7cd4 Fix NameError ()
ThibG 47ef4a6c7a Apply filters to poll options ()
* Apply filters to poll options in WebUI

Fixes 

* Apply filters to poll options server-side

* Add poll options to searchable text
Eugen Rochko e7f20cc43f
Add type, limit, offset, min_id, max_id, account_id to search API ()
* Add type, limit, offset, min_id, max_id, account_id to search API

Fix 

* Make the offset work on accounts and hashtags search as well

* Assure brakeman we are not doing mass assignment here

* Do not allow paginating unless a type is chosen

* Fix search query and index id field on statuses instead of created_at
Ben Lubar 309043b158 Improve image description user experience ()
* Add image descriptions to searchable post content.

* Allow multi-line image descriptions.

* Request image descriptions in the same query as posts when creating the search index.

(see https://github.com/tootsuite/mastodon/pull/10036#discussion_r256551624)
Eugen Rochko 28de046b8b
Get rid of Chewy order/limit warning ()
Eugen Rochko 3ebc0ad4d3
Full-text search for authorized statuses ()
* 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 
Fix 
Fix 

* 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