Add search by date
This commit is contained in:
parent
3bb3cf9489
commit
383214ee19
4 changed files with 3 additions and 3 deletions
|
@ -200,6 +200,8 @@ func buildQuery(query string) (textQuery string, columnQuerys []columnq, trigram
|
|||
trigramQuerys = append(trigramQuerys, columnq{"text(tags)", value})
|
||||
case "tag":
|
||||
trigramQuerys = append(trigramQuerys, columnq{"text(tags)", value})
|
||||
case "date":
|
||||
trigramQuerys = append(trigramQuerys, columnq{"date", value})
|
||||
default:
|
||||
if len(textQuery) != 0 {
|
||||
lastChar := textQuery[len(textQuery)-1:]
|
||||
|
|
Reference in a new issue