mirror of
https://github.com/typeable/bloodhound.git
synced 2024-09-11 08:25:32 +03:00
Add 'mkPhraseSuggesterCollate' helper function
This commit is contained in:
parent
3ce3482d57
commit
ca5e5cd168
@ -5460,6 +5460,9 @@ instance FromJSON PhraseSuggesterCollate where
|
||||
return $ PhraseSuggesterCollate (TemplateQueryInline inline' params') prune'
|
||||
parseJSON x = typeMismatch "PhraseSuggesterCollate" x
|
||||
|
||||
mkPhraseSuggesterCollate :: TemplateQueryInline -> PhraseSuggesterCollate
|
||||
mkPhraseSuggesterCollate tQuery = PhraseSuggesterCollate tQuery False
|
||||
|
||||
data SuggestOptions =
|
||||
SuggestOptions { suggestOptionsText :: Text
|
||||
, suggestOptionsScore :: Double
|
||||
|
@ -5238,6 +5238,9 @@ instance FromJSON PhraseSuggesterCollate where
|
||||
return $ PhraseSuggesterCollate (TemplateQueryInline inline' params') prune'
|
||||
parseJSON x = typeMismatch "PhraseSuggesterCollate" x
|
||||
|
||||
mkPhraseSuggesterCollate :: TemplateQueryInline -> PhraseSuggesterCollate
|
||||
mkPhraseSuggesterCollate tQuery = PhraseSuggesterCollate tQuery False
|
||||
|
||||
data SuggestOptions =
|
||||
SuggestOptions { suggestOptionsText :: Text
|
||||
, suggestOptionsScore :: Double
|
||||
|
Loading…
Reference in New Issue
Block a user