misskey-dev / misskey

🌎 A completely free and open interplanetary microblogging platform 🚀
https://misskey-hub.net/
GNU Affero General Public License v3.0
10.03k stars 1.37k forks source link

文字列検索機能でAND・ORを使えるようにしてほしい #6160

Closed tamaina closed 1 year ago

tamaina commented 4 years ago

Summary

半ば必須かもしれない

tamaina commented 3 years ago

age

Johann150 commented 2 years ago

I'm not sure how it could be differentiated between when I am searching for text that contains "AND"/"OR". Maybe an advanced search mode would be necessary.

futchitwo commented 2 years ago

ioには色々実装されてる(ただしLIKE検索が封じされてる) https://github.com/MisskeyIO/misskey/blob/io/packages/backend/src/server/api/endpoints/notes/search.ts

公式インスタンスであるioでは使えるのに他では使えないのはどうかと思うので、ioと同等の検索クエリはあったほうがいいと思う

Johann150 commented 2 years ago

The search syntax looks similar to GitHub search, interesting idea. 👍

I don't understand what the &@~ operator is supposed to do. I could not find it anywhere else in the code, or in Postgres or TypeORM documentation...

rinsuki commented 2 years ago

it comes from PGroonga? https://pgroonga.github.io/reference/operators/query-v2.html

Johann150 commented 2 years ago

I'm not sure PGroonga is something we could add as a dependency. But I wonder if some pieces of the search syntax could be transformed into a Postgresql style regular expression.

tamaina commented 2 years ago

FYI: How to install PGroonga and &@~ patch: https://hide.ac/articles/DjGNSvW4G

tamaina commented 2 years ago

Adding PGroonga as a dependency complicates the installation process.

tamaina commented 1 year ago

PGroongaと言ってたけどGroonga単体で使ってもいいじゃんという発想をした

tamaina commented 1 year ago

(とはいえRust製のMeilisearchのほうが現代的なのは明らか

tamaina commented 1 year ago

ORできるよね…?

tamaina commented 1 year ago

ORできない?

syuilo commented 1 year ago

できないかも