Search
Melon handling searching through filters. These filters allow you to search the database by any property of the model object you're search for. For example, Tracks can be searched by Name, Artist, PlayCounts, Ratings, Format, Year, etc. For API references, see the Search API docs.
Filters
Filters look like this: property;comparison;value
.
-
Property is any property from a
Track model. For example,
Genre
,Artist
,Ratings
,Name
. -
Comparison is the type of comparing you want to match the property to
the value. This can be
Contains
,Eq
,NotEq
,Lt
, orGt
. - Value is the value to compare, for example a string or a number. Examples:
Artist;Eq;Madeon
Ratings;Gt;4
Year;Lt;2010
To see all the available properties, look at the Track, Album, and Artist model documentation.
Sorting
Available sorts are different per object:
-
Tracks
- NameDesc
- NameAsc
- DateAddedDesc
- DateAddedAsc
- ReleaseDataDesc
- ReleaseDateAsc
- PlayCountDesc
- PlayCountAsc
- AlbumPositionAsc
- AlbumPositionDesc
-
Albums
- NameDesc
- NameAsc
- DateAddedDesc
- DateAddedAsc
- ReleaseDataDesc
- ReleaseDateAsc
- PlayCountDesc
- PlayCountAsc
-
Artist
- NameDesc
- NameAsc
- DateAddedDesc
- DateAddedAsc
- PlayCountDesc
- PlayCountAsc