bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
7.17k stars 939 forks source link

Use Boolean search operators AND and OR #1522

Open oznogon opened 9 months ago

oznogon commented 9 months ago

Is your feature request related to a problem? Please describe.

Search doesn't support Boolean operators, making it difficult to selectively search results.

Describe the solution you'd like

Searching for:

football OR soccer

should return results that contain either term, instead of only returning results that include both terms as well as the word "OR".

Searching for:

women AND soccer

should return only the results that contain both terms.

It should be possible to combine these with each other, and with other search operators:

women AND soccer OR football

Describe alternatives you've considered

deck.blue allows doing this in reverse, by creating a column with a search result and then muting words from the results. But this is awkward for most OR use cases.

Additional context

This is a request for feature parity with other similar social posting services; see also #1143, #849, #1523.

boly38 commented 1 month ago

as today fleur plante "Joyeux printemps" search seems to apply a AND logic between term ( internally apply fleur AND plante AND "Joyeux printemps"). But this seems not support additional from: criteria : I expected to get 0 result with fleur plante "Joyeux printemps" from:NOTbouletcorp.bsky.social

👍 I am also interested in Boolean comparison logic without forgetting the prioritization of terms using parentheses : ex. (fleur OR plant) AND "Joyeux printemps" .

In term of priorization, I think having OR keyword is a must have first (to save processing) : I mean maybe parentheses could be a dedicated issue with lowest priority.