this repo has no description
0
fork

Configure Feed

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

Jaz's query/profile tweaks

+22
+2
search/profile_schema.json
··· 58 58 "has_avatar": { "type": "boolean" }, 59 59 "has_banner": { "type": "boolean" }, 60 60 61 + "pagerank": { "type": "float" }, 62 + 61 63 "typeahead": { "type": "search_as_you_type", "analyzer": "textIcu", "search_analyzer": "textIcuSearch" }, 62 64 "everything": { "type": "text", "analyzer": "textIcu", "search_analyzer": "textIcuSearch" } 63 65 }
+20
search/query.go
··· 7 7 "fmt" 8 8 "io/ioutil" 9 9 "log/slog" 10 + "time" 10 11 11 12 "github.com/bluesky-social/indigo/atproto/identity" 12 13 "github.com/bluesky-social/indigo/atproto/syntax" ··· 47 48 Cid string `json:"cid"` 48 49 User UserResult `json:"user"` 49 50 Post any `json:"post"` 51 + } 52 + 53 + type PostSearchQuery struct { 54 + Query string `json:"query"` 55 + Offset int `json:"offset"` 56 + Size int `json:"size"` 57 + From *time.Time `json:"from"` 58 + To *time.Time `json:"to"` 59 + Actors []string `json:"actors"` 60 + Tags []string `json:"tags"` 61 + Langs []string `json:"langs"` 62 + } 63 + 64 + type ActorSearchQuery struct { 65 + Query string `json:"query"` 66 + Following []string `json:"following"` 67 + Offset int `json:"offset"` 68 + Size int `json:"size"` 69 + Typeahead bool `json:"typeahead"` 50 70 } 51 71 52 72 func checkParams(offset, size int) error {