|
@@ -47,6 +47,10 @@ func (index *JsonDashIndex) updateLoop() {
|
|
|
func (index *JsonDashIndex) Search(query *Query) ([]*Hit, error) {
|
|
func (index *JsonDashIndex) Search(query *Query) ([]*Hit, error) {
|
|
|
results := make([]*Hit, 0)
|
|
results := make([]*Hit, 0)
|
|
|
|
|
|
|
|
|
|
+ if query.IsStarred {
|
|
|
|
|
+ return results, nil
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
for _, item := range index.items {
|
|
for _, item := range index.items {
|
|
|
if len(results) > query.Limit {
|
|
if len(results) > query.Limit {
|
|
|
break
|
|
break
|