Commit graph

70 commits

Author SHA1 Message Date
KMY
f09e59a96c Fix tests 2023-09-12 14:24:25 +09:00
KMY
ea6499b817 Move search setting to new page 2023-09-12 12:33:43 +09:00
KMY
621a41b670 Merge remote-tracking branch 'parent/main' into kb_migration 2023-09-01 18:05:03 +09:00
Eugen Rochko
872145d1c2
Fix not being able to invoke phrase search using unicode quotation marks (#26687) 2023-09-01 09:27:03 +02:00
KMY
05a022448b Merge remote-tracking branch 'parent/main' into kb_migration 2023-08-29 13:25:48 +09:00
Eugen Rochko
2304cc6456
Fix bad search type heuristic (#26673) 2023-08-28 17:08:37 +02:00
KMY
fbb82b740b Merge remote-tracking branch 'parent/main' into kb_migration 2023-08-25 12:19:55 +09:00
jsgoldstein
30c191aaa0
Add new public status index (#26344)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-08-24 16:40:04 +02:00
KMY
f1e7a9b063 Remove min_score query 2023-08-14 17:40:53 +09:00
KMY
54f63a4be2 Fix searchability=limited post was searchable by reactors 2023-08-04 20:21:46 +09:00
KMY
d4602118fb Fix searchability is not work in search api 2023-07-21 18:23:52 +09:00
KMY
f18fa97f0c Merge commit '71db616fed' into kb_migration 2023-07-14 12:43:55 +09:00
Matt Jankowski
2e1391fdd2
Fix Naming/MemoizedInstanceVariableName cop (#25928) 2023-07-12 10:08:51 +02:00
jsgoldstein
99be47f8b9
Change searching with # to include account index (#25638) 2023-07-10 20:58:13 +02:00
KMY
850c4dfb3c Merge commit '6268188543' into kb_migration 2023-07-04 17:44:40 +09:00
Daniel M Brasil
383c00819c
Fix /api/v2/search not working with following query param (#25681) 2023-07-03 18:06:57 +02:00
KMY
6a345e1a70 Re-enable full text search timeline 2023-07-02 09:16:41 +09:00
jsgoldstein
4581a528f7
Change account search to match by text when opted-in (#25599)
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
2023-06-29 13:05:21 +02:00
KMY
edb2a5dcf3 Merge commit 'f378f10404' into kb_migration 2023-06-07 11:45:52 +09:00
Nick Schonning
c66250abf1
Autofix Rubocop Regex Style rules (#23690)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-06-06 14:50:51 +02:00
KMY
d9df73f878 Fix full-text search error 2023-05-23 08:22:59 +09:00
KMY
fec0f7e009 Fix search api searchability api change 2023-05-14 17:14:50 +09:00
KMY
66de2ee2c1 Disable full text search timeline 2023-05-12 16:51:59 +09:00
KMY
3a1a6ba39e Merge commit '15fd712464' into kb_migration 2023-05-01 15:05:34 +09:00
KMY
6a3f6d5876 Merge commit '62036efc79' into kb_migration 2023-04-16 09:10:08 +09:00
KMY
62036efc79 Add search command MINSCORE 2023-04-16 07:49:03 +09:00
KMY
139030f230 Merge branch 'kb_development' into kb_migration 2023-04-10 14:14:00 +09:00
KMY
e6fcf1543b Add emoji reactions to trends 2023-04-10 14:08:53 +09:00
KMY
dadd77788d Fis search min_score 2023-04-10 11:41:51 +09:00
KMY
94cd200097 Merge remote-tracking branch 'origin/kb_development' into kb_migration 2023-04-06 16:57:01 +09:00
KMY
502761c0ad Wip: Fix searchability value 2023-04-06 13:10:29 +09:00
KMY
165882a985 Wip search visibility 2023-04-06 12:35:15 +09:00
KMY
5b4661c2f7 Fix mention_urls error 2023-04-06 10:06:56 +09:00
KMY
af20b1d2aa Add searchability support 2023-04-06 04:27:52 +09:00
KMY
86915f0cdb Merge branch 'kb_development' into kb_migration 2023-04-05 18:55:45 +09:00
KMY
5e8bdaaab6 Except for unlisted from search results 2023-04-05 14:29:24 +09:00
KMY
08e5d96a4a Expand search range 2023-04-05 13:55:37 +09:00
Takeshi Umeda
38c84f57b6
Refactoring relations_map (#24195) 2023-03-21 10:32:58 +01:00
Nick Schonning
e2a3ebb271
Autofix Rubocop Style/IfUnlessModifier (#23697) 2023-02-18 12:37:47 +01:00
luigi
eb51e43fb4
Optimize some regex matching (#15528)
* Use Regex#match?

* Replace =~ too

* Avoid to call match? from Nil

* Keep value of Regexp.last_match
2021-01-22 10:09:08 +01:00
ThibG
27ea7c13a5
Fix hashtag search performing account search as well (#13758) 2020-05-14 23:37:37 +02:00
Eugen Rochko
c3965e28b3
Fix returning results when searching for URL with non-zero offset (#13377)
Fix #13083
2020-04-02 03:39:37 +02:00
Eugen Rochko
bbf926b1c0
Fix error when using search API with no query (#12541)
Fix #12462
2019-12-04 04:34:08 +01:00
Eugen Rochko
ab33c4df94
Add exclude_unreviewed param to GET /api/v2/search REST API (#11977)
Make it so normal search returns even unreviewed matches, but
autosuggestions do not.

Fix #11960
2019-09-28 01:02:21 +02:00
Eugen Rochko
50edf84898
Fix search API not resolving URL when type is given (#11822)
Fix #11771
2019-09-13 16:01:39 +02:00
Eugen Rochko
cc0a55cf9a
Add more accurate hashtag search (#11579)
* Add more accurate hashtag search

Using ElasticSearch to index hashtags with edge n-grams and score
them by usage within the last 7 days since last activity. Only
hashtags that have been reviewed and are listable can appear in
searches, unless they match the query exactly

* Fix search analyzer dropping non-ascii characters
2019-08-18 03:45:51 +02:00
Eugen Rochko
70da6d6630
Fix accounts search by full/partial display name and others (#11580)
- Restrict followers counts to local users to minimize local advantage
- Fix emoji shortcodes causing error in search
- Fix search syntax parse errors not being caught
2019-08-16 13:00:30 +02:00
Eugen Rochko
b9fbcbfe4e
Add search syntax for operators and phrases (#11411) 2019-07-27 04:42:08 +02:00
Eugen Rochko
67b3b62b98
Improve blocked view of profiles (#10491)
* Revert "Fix filtering of favourited_by, reblogged_by, followers and following (#10447)"

This reverts commit 120544067f.

* Revert "Hide blocking accounts from blocked users (#10442)"

This reverts commit 62bafa20a1.

* Improve blocked view of profiles

- Change "You are blocked" to "Profile unavailable"
- Hide following/followers in API when blocked
- Disable follow button and show "Profile unavailable" on public profile as well
2019-04-07 04:59:13 +02:00
ThibG
62bafa20a1 Hide blocking accounts from blocked users (#10442)
* Revert "Add indication that you have been blocked in web UI (#10420)"

This reverts commit bd02ec6daa.

* Revert "Add `blocked_by` relationship to the REST API (#10373)"

This reverts commit 9745de883b.

* Hide blocking accounts from search results

* Filter blocking accouts from account followers

* Filter blocking accouts from account's following accounts

* Filter blocking accounts from “reblogged by” and “favourited by” lists

* Remove blocking account from URL search

* Return 410 on trying to fetch user data from a user who blocked us

* Return 410 in /api/v1/account/statuses for suspended or blocking accounts

* Fix status filtering when performing URL search

* Restore some React improvements

Restore some cleanup from bd02ec6daa

* Refactor by adding `without_blocking` scope
2019-04-01 20:06:13 +02:00