Filter topics by ...
-
-
If mongodb is used search does support basic negation, for example
nodebb -php finds all topics that have nodebb in title but not php
nodebb php finds all topics that have nodebb and php in title
-
@baris Cool. To be clear, one needs a starting "set" from which to either add or subtract. Hence in this instance the OP would not be able to return all posts != @user-nic".
Which is admittedly a bit crazy. Desperate times sometimes call for desperate measures. I wonder if Solr backed search could facilitate such madness?
Thanks for the insights.
-
@jac Yes. And no.
I was initially curious whether you could execute a search query that translated to:
- Give me all that does not contain 'foo'.
The answer to that seems to be "No".
What IS possible:
- Give me all posts/titles containing 'foo' but NOT 'bar'.
- Or all posts/titles containing 'foo' AND 'bar'.
Which is not going to get you what you desire.
Speaking of which, I wonder if you've thought this one thru? Are you trying to build a bot? Could be kind of bad news to have two or more such entities playing off each other. Additionally, how might something like this scale on a busy site that you might take a break from for some period? Could be thousands of posts. Just curious about your use case, not judging.
-
@gotwf Well, I'll explain.
I run a small professional help forum and because users are waiting for my answer on every topic I make a point of responding to every topic and help ..., it's hard for me to track which topics I've already responded to, so I wanted this filter.
I need a filter to show me the topics I haven't commented on yet. -