Commit Graph

9 Commits (2f9e538bc15b1533ab4b6e14553cea4ea881f6b3)

Author SHA1 Message Date
Takeshi Umeda 56abcac438 Fix searchable status without explicitly mentioning it () 2020-05-23 05:47:25 +02:00
Takeshi Umeda e1c65c565b Fix bookmarks also searchable () 2020-03-22 02:40:03 +01:00
Eugen Rochko 1db0719dbb Fix needlessly indexing unsearchable statuses into ElasticSearch () 2019-10-02 20:04:46 +02:00
mayaeh 9fb7c513e3 Fix NameError () 2019-06-27 09:16:55 +02:00
ThibG 42c803fe61 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
2019-06-25 14:45:14 +02:00
Eugen Rochko 693f2353bc 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
2019-02-26 15:21:36 +01:00
Ben Lubar a679867d38 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)
2019-02-14 01:04:43 +01:00
Eugen Rochko 251308eb69 Get rid of Chewy order/limit warning () 2018-08-22 02:44:56 +02:00
Eugen Rochko 7ca5a06505 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
2018-02-09 23:04:47 +01:00