-
Notifications
You must be signed in to change notification settings - Fork 29
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
Ability to search by using logical OR connective #23
Comments
It's AND, yes. Does it make sense to support OR on API level? What if you just performed multiple queried and then combined the results? |
I suppose that support for |
Ok. Can you propose an approach? What it would look like on API level? |
One way is to make it by using some special parameter. Maybe it is not the best way but at least it should be quite simple and understandable (I hope). |
Could use |
oops, had to fix my API example |
I like this proposal. |
Why would you want to exclude jQuery distro? If we want to get away with the least effort, we can do just
In addition you would filter out |
I agree with |
Honestly, I find the SELECT *
FROM libraries
WHERE name LIKE '%jquery%' OR description LIKE '%jquery%' AND mainfile LIKE '%jquery%' or SELECT name, description, mainfile
FROM libraries
WHERE (name LIKE '%jquery%' AND description LIKE '%jquery%') OR (name LIKE '%jquery%' AND mainfile LIKE '%jquery%' ?
If too much work, don't bother please :) |
It would be a very easy change to make. Just wondering if it would be useful. @gamtiq Would that help in your use case? |
I suppose that would be enough and quite useful. |
As I understand, currently
AND
connective/operator is used when search is made with two or more parameters.Is it possible to add support for
OR
connective someway?So that for example search for
name=*key*&description=*key*
would return list with packages whose name or description contains specifiedkey
.The text was updated successfully, but these errors were encountered: