| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Gargantext.API.Routes.Named.Search
Synopsis
- data SearchAPI results mode = SearchAPI {
- searchEp :: mode :- (Summary "Search endpoint" :> (ReqBody '[JSON] SearchQuery :> (QueryParam "offset" Offset :> (QueryParam "limit" Limit :> (QueryParam "order" OrderBy :> Post '[JSON] results)))))
- data SearchType
- data SearchQuery = SearchQuery {
- query :: !RawQuery
- expected :: !SearchType
- newtype SearchResult = SearchResult {}
- data SearchResultTypes
- = SearchResultDoc {
- docs :: ![Row]
- | SearchResultContact {
- contacts :: ![Row]
- | SearchNoResult { }
- = SearchResultDoc {
Routes types
Constructors
| SearchAPI | |
Fields
| |
Instances
| Generic (SearchAPI results mode) # | |
| type Rep (SearchAPI results mode) # | |
Defined in Gargantext.API.Routes.Named.Search type Rep (SearchAPI results mode) = D1 ('MetaData "SearchAPI" "Gargantext.API.Routes.Named.Search" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "SearchAPI" 'PrefixI 'True) (S1 ('MetaSel ('Just "searchEp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (mode :- (Summary "Search endpoint" :> (ReqBody '[JSON] SearchQuery :> (QueryParam "offset" Offset :> (QueryParam "limit" Limit :> (QueryParam "order" OrderBy :> Post '[JSON] results))))))))) | |
API types (appears in the routes)
data SearchType #
Constructors
| SearchDoc | |
| SearchContact | |
| SearchDocWithNgrams |
Instances
data SearchQuery #
Constructors
| SearchQuery | |
Fields
| |
Instances
newtype SearchResult #
Constructors
| SearchResult | |
Fields | |
Instances
data SearchResultTypes #
Constructors
| SearchResultDoc | |
Fields
| |
| SearchResultContact | |
Fields
| |
| SearchNoResult | |