-
Notifications
You must be signed in to change notification settings - Fork 186
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
Search: Concatenate multiple tags via OR #6343
Comments
Alright, let me try to explain how the search syntax works. I already talked to @kulmann about this in person and it looks like the current implementation supports everthing that's needed for web in the end. First of all it has to be noted that there are two different 'modes' you can use with the search term, a simple and a complex one. The simple syntax is used when you just submit a phrase (which can consist of one or more words). This is mapped to a substring query on the As soon as a field is specified in the query however (e.g.
Some examples: Content of the space:
I hope that makes sense and allows for everything you want to do. |
@aduffeck Thanks for the clarification, I got most of the cases working! However, there is still one edge case: Let's say I want to search all files named |
@JammingBen no, the boolean algebra kind of query you describe isn't possible with our current search interface. It's possible on the index at a lower lower but would require us to design a new, more complex way of sending queries to the search service. |
Alright, we've adjusted the functionally in Web to work around this. I think we can close here for now and create a new issue if the scenario becomes relevant in the future. Thanks again for the time to dig into it! |
Steps to reproduce
tagA
andtagB
tagA
to a resourcetagA
andtagB
via a concatenated search patternTags:"tagA,tagB"
Expected behavior
I expect the resource to show up in the results because the filter should have an
OR
behaviour.Actual behavior
The resource does not show up in the search results. I know that I could use
Tags:"tagA" Tags:"tagB"
, but according to #6305, this is a bug and should concatenate viaAND
in the future - so that doesn't help.The text was updated successfully, but these errors were encountered: