Commit graph

54 commits

Author SHA1 Message Date
KMY
055045981f Merge remote-tracking branch 'parent/main' into upstream-20241119 2024-11-19 08:49:55 +09:00
Eugen Rochko
911d7dbbf6
Fix min_id and max_id causing error in search API (#32857) 2024-11-18 09:37:01 +00:00
KMY
fc9d27ff91 Merge remote-tracking branch 'parent/main' into upstream-20240913 2024-09-13 10:31:48 +09:00
Taylor Chaparro
1b6a82b799
Fix invalid date searches returning 503 (#31526) 2024-09-12 13:40:20 +00:00
KMY
6955843321 Merge remote-tracking branch 'parent/main' into upstream-20240628 2024-06-28 08:57:12 +09:00
Eugen Rochko
0f3fef6fda
Change search modifiers to be case-insensitive (#30865) 2024-06-27 21:34:34 +00:00
KMY(雪あすか)
e4375143ca
Change: #456 名称変更「スタンプ」→「絵文字リアクション」 (#497) 2024-01-24 08:49:10 +09:00
KMY(雪あすか)
d5940f00d3
Add: #452 全文検索で、ダブルクオートがない場合でも単語検索を標準とするオプション (#478) 2024-01-18 08:39:33 +09:00
KMY(雪あすか)
4c2675be41
Add: #455 自分がフォローしている相手限定の全文検索オプション (#468) 2024-01-17 09:00:13 +09:00
KMY(雪あすか)
d864399a09
Fix: #370 ダブルクオートを使った日本語検索が効かない (#448)
* Fix: #370 ダブルクオートを使った日本語検索が効かない

* Add test for multiple words

* Improve test

* 入れ替え

* 単語検索のテスト
2024-01-12 10:27:35 +09:00
KMY
527ded889d Merge remote-tracking branch 'parent/main' into kb-upstream-20231018 2023-10-18 11:13:56 +09:00
KMY(雪あすか)
9972dfae61 Revert "Merge"
This reverts commit 84eae6fac9.
2023-10-18 11:11:01 +09:00
KMY
84eae6fac9 Merge 2023-10-18 11:09:56 +09:00
Jeong Arm
ad44d832b8
Support "in:public" search filter (#26976) 2023-10-17 16:12:03 +02:00
KMY
87afb5295a Revert "#66 検索時のフォロー中アカウント一覧作成処理を改善"
This reverts commit 22d1f52597.
2023-10-07 21:33:52 +09:00
KMY
22d1f52597 #66 検索時のフォロー中アカウント一覧作成処理を改善 2023-10-07 18:47:32 +09:00
KMY(雪あすか)
235bef36d0
Add: 検索許可「ローカルとフォロワー」 (#60) 2023-10-05 16:37:27 +09:00
KMY
4a114da946 Improve multiple filters and remove searchability option 2023-09-18 14:22:19 +09:00
KMY
0aceea90ab Add searchable_by option as searchability alias 2023-09-18 14:16:25 +09:00
KMY
f0025f0ae2 Fix spreadly search filter not works 2023-09-18 14:11:17 +09:00
KMY
43bc0b4cac Try to fix search quer 2023-09-17 10:23:36 +09:00
KMY
173b9f4fd7 Add searchability option 2023-09-16 10:31:43 +09:00
KMY
5b045f7198 Fix query miss 2023-09-16 08:51:17 +09:00
KMY
a7a6c62440 Sorry, 2023-09-16 08:33:18 +09:00
KMY
0ad0dcc8fd Fix ES error 2023-09-16 08:29:24 +09:00
KMY
5fb6bce744 Add my reacted statuses search 2023-09-15 18:50:45 +09:00
KMY
ea6499b817 Move search setting to new page 2023-09-12 12:33:43 +09:00
KMY
979292d950 Merge remote-tracking branch 'parent/main' into kb_migration 2023-09-10 16:17:34 +09:00
Eugen Rochko
3a679844e4
Fix account_id, max_id and min_id params not working in search (#26847) 2023-09-08 14:25:00 +02:00
Eugen Rochko
a90b0056cc
Fix #hashtag matching on individual components in search (#26835) 2023-09-07 12:53:41 +02:00
KMY
4bc813eb67 Fix 2023-09-06 10:09:36 +09:00
KMY
fdf1d6df38 Merge remote-tracking branch 'parent/main' into kb_migration 2023-09-06 10:09:07 +09:00
Eugen Rochko
ece1ff77d6
Add in:library syntax to search (#26760)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
2023-09-04 17:20:35 +02:00
KMY
93faae7b63 Merge remote-tracking branch 'parent/main' into kb_migration 2023-09-04 21:21:04 +09:00
Eugen Rochko
68b4e36c82
Fix #hashtag matching non-hashtagged posts in search (#26781) 2023-09-04 10:18:45 +02:00
Eugen Rochko
e52d0494ee
Fix before:, after: and during: failing when time zone not set (#26782) 2023-09-04 09:09:25 +02:00
KMY
f250353fd2 Fix search error 2023-09-03 22:21:19 +09:00
KMY
621a41b670 Merge remote-tracking branch 'parent/main' into kb_migration 2023-09-01 18:05:03 +09:00
Eugen Rochko
e754083e8a
Fix unmatched quotes and prefixes causing search to fail (#26701) 2023-09-01 09:43:12 +02:00
Eugen Rochko
0008458128
Fix search queries with slash causing or-condition (#26699) 2023-08-31 19:04:44 +02:00
Eugen Rochko
bba76e7267
Change language: to attempt to match to a known value in search (#26663) 2023-08-30 16:07:26 +02:00
KMY
7c4a4b905b Add domain search prefix 2023-08-30 07:53:51 +09:00
KMY
05a022448b Merge remote-tracking branch 'parent/main' into kb_migration 2023-08-29 13:25:48 +09:00
Eugen Rochko
67166de865
Add from:me syntax to search (#26660) 2023-08-28 12:43:00 +02:00
Eugen Rochko
822a35b9d5
Fix not being able to negate prefix clauses in search (#26672) 2023-08-28 10:31:51 +02:00
KMY
22427c4669 Improve sudachi settings 2023-08-28 10:23:11 +09: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
8a6e52bd25 Full text search always phrase_clause 2023-07-04 14:53:52 +09:00
0x2019
012537452a
Fix error resposes for from search prefix (#17963)
* Fix error responses in `from` search prefix (addresses mastodon/mastodon#17941)

Using unsupported prefixes now reports a 422; searching for posts from an
account the instance is not aware of reports a 404. TODO: The UI for this
on the front end is abysmal.

Searching `from:username@domain` now succeeds when `domain` is the local
domain; searching `from:@username(@domain)?` now works as expected.

* Remove unused methods on new Error classes as they are not being used

Currently when `raise`d there are error messages being supplied, but
this is not actually being used. The associated `raise`s have been
edited accordingly.

* Remove needless comments

* Satisfy rubocop

* Try fixing tests being unable to find AccountFindingConcern methods

* Satisfy rubocop

* Simplify `from` prefix logic

This incorporates @ClearlyClaire's suggestion (see
https://github.com/mastodon/mastodon/pull/17963#pullrequestreview-933986737).

Accepctable account strings in `from:` clauses are more lenient than
before this commit; for example, `from:@user@example.org@asnteo +cat`
will not error, and return posts by @user@example.org containing the
word "cat". This is more consistent with how Mastodon matches mentions
in statuses. In addition, `from` clauses will not be checked for
syntatically invalid usernames or domain names, simply 404ing when
`Account.find_remote!` raises ActiveRecord::NotFound.

New code for this PR that is no longer used has been removed.
2022-04-08 21:21:49 +02:00