ひとまず構想中の物としては、filter.search は単語リストを取る。クオート可能、カッコでのグルーピング可能。
hello world は "hello" AND "world"
"hello world" は "hello world"
"hello" "world" は "hello" AND "world"
hello OR world は "hello" OR "world"
AND は OR よりも結合が強いので
hello AND world OR greeting
は
(hello AND world) OR greeting
この仕様を NIP-11 で自分で定義させる。
"nip50_search": {
"boolean_operators": true,
"parentheses": true,
"phrase_search": true
}
こんな感じ。