Skip to content

Query Syntax

Benjamin Hamon edited this page Nov 9, 2019 · 1 revision

The query view is separated in three text boxes: search, group by and order by.

QueryView

The search text is forwarded to the Lucene search engine. It accepts traditional search expressions. See the Lucene query syntax documentation for in-depth information.

Available fields for search are: title, subject, artist, tag, score, date, hash.

The group by and order by texts are additional options to change how results are displayed. They accept a comma-separated list of fields. The order by fields can be configured as ascending (asc, the default) or descending (desc).

Available fields for group by and order by are: subjects, artists, score, date. Individual values from list fields (subjects, artists) can be accessed by adding the index surrounded by brackets.

Examples

Here are examples of search expressions:

  • To search a term with spaces: "term with spaces"
  • To search a the title field: title: term
  • To search a score range: score: [8 TO 10]
  • To search a date range: date: [20180101 TO 20181231]
  • To search a unique hash: hash: 0800fc577294c34e0b28ad2839435945

Here are examples of group by expressions:

  • To group by score: score
  • To group using the first artist: artists[0]

Here are examples of order by expressions:

  • To sort by newer: date desc
  • To sort by score, then date: score desc, date desc

Clone this wiki locally