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

Support numeric range queries #199

Closed
arsaboo opened this issue Oct 12, 2022 · 2 comments
Closed

Support numeric range queries #199

arsaboo opened this issue Oct 12, 2022 · 2 comments
Labels
core Deals with core moe functionality. enhancement New feature or request

Comments

@arsaboo
Copy link

arsaboo commented Oct 12, 2022

Describe the new feature

It would be great if we can use numerical values in queries. For example, year greater than 2010 or year between 1990 and 2000. This does not have to be limited to year, but can be extended to other fields, e.g., bitrate, rating.

Use case

This can be used to create smart playlists. For example, we can create a playlist for all tracks from '90s.

@jtpavlock jtpavlock added enhancement New feature or request core Deals with core moe functionality. labels Oct 12, 2022
@jtpavlock
Copy link
Member

jtpavlock commented Oct 12, 2022

Thanks for creating the feature request, this is something I'd definitely like to see implemented.

Do you have any suggestions on the query syntax? I know beets uses .., but having never really used these queries myself I wonder if you had any other ideas or if that seemed good.

@arsaboo
Copy link
Author

arsaboo commented Oct 12, 2022

I think the .. syntax is fine (unless you have other thoughts). It is easy to understand and use and I am sure the target audience is familiar with that syntax.

jtpavlock pushed a commit that referenced this issue Dec 20, 2022
Numeric queries can be specified by including two dots ``..`` in the beginning, middle, or end of the value. Dots in the beginning let you specifiy a minimum e.g. ``1..``, dots and the end let you specify a maximum e.g. ``..10``, and dots in the middle let you specify a range e.g. ``1..10``.

Fixes #199
jtpavlock pushed a commit that referenced this issue Dec 20, 2022
Numeric queries can be specified by including two dots ``..`` in the beginning, middle, or end of the value. Dots in the beginning let you specifiy a minimum e.g. ``1..``, dots and the end let you specify a maximum e.g. ``..10``, and dots in the middle let you specify a range e.g. ``1..10``.

Fixes #199
jtpavlock pushed a commit that referenced this issue Dec 20, 2022
Numeric queries can be specified by including two dots ``..`` in the beginning, middle, or end of the value. Dots in the beginning let you specifiy a minimum e.g. ``1..``, dots and the end let you specify a maximum e.g. ``..10``, and dots in the middle let you specify a range e.g. ``1..10``.

Fixes #199
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Deals with core moe functionality. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants