Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment filter #245

Open
nathanielrindlaub opened this issue Sep 11, 2024 · 2 comments
Open

Comment filter #245

nathanielrindlaub opened this issue Sep 11, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@nathanielrindlaub
Copy link
Member

Implement some sort of comment search/filtering capabilities. It looks like MongoDB supports this: https://www.mongodb.com/docs/manual/reference/operator/query/text/#mongodb-query-op.-text. A simpler, more MVP solution might be checkbox filters for "has comment" / "doesn't have comment".

@lessej
Copy link
Collaborator

lessej commented Sep 17, 2024

@nathanielrindlaub Noticed that by default, the $search operator treats every word separately. Do you think we should search instead by phrase? Ie. all text added into a text area is treated as a phrase and only images with comments that contain that phrase is returned? If both behaviors are desirable, I think another possibility could be to add a toggle which will allow users to choose which type of search is done.

@nathanielrindlaub
Copy link
Member Author

@JesseLeung97 I hadn't thought about this, but I think I was imagining searching by phrase. So if there was a comment that read "Unknown animal, but possibly not-native" or something like that, and the user remembered using the phrase "possibly not-native", they could search for it and find that image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants