this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

don't try to parse profile search query strings

+1 -4
+1 -4
search/query.go
··· 213 213 return nil, err 214 214 } 215 215 216 - // TODO: have a ParseProfileQuery function? 217 - params := ParsePostQuery(ctx, dir, q) 218 216 basic := map[string]interface{}{ 219 217 "simple_query_string": map[string]interface{}{ 220 - "query": params.Query, 218 + "query": q, 221 219 "fields": []string{"everything"}, 222 220 "flags": "AND|NOT|OR|PHRASE|PRECEDENCE|WHITESPACE", 223 221 "default_operator": "and", ··· 235 233 map[string]interface{}{"term": map[string]interface{}{"has_banner": true}}, 236 234 }, 237 235 "minimum_should_match": 0, 238 - "filter": params.Filters(), 239 236 "boost": 0.5, 240 237 }, 241 238 },