animl-frontend icon indicating copy to clipboard operation
animl-frontend copied to clipboard

Comment filter

Open nathanielrindlaub opened this issue 1 year ago • 2 comments
trafficstars

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".

nathanielrindlaub avatar Sep 11 '24 05:09 nathanielrindlaub

@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.

lessej avatar Sep 17 '24 03:09 lessej

@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.

nathanielrindlaub avatar Sep 17 '24 20:09 nathanielrindlaub