Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.Bloodhound.Internal.Newtypes
Synopsis
- newtype From = From Int
- newtype Size = Size Int
- newtype HitFields = HitFields (Map Text [Value])
- type Score = Maybe Double
- newtype ShardId = ShardId {}
- newtype DocId = DocId Text
- newtype FieldName = FieldName Text
- newtype RelationName = RelationName Text
- newtype QueryString = QueryString Text
- newtype CacheName = CacheName Text
- newtype CacheKey = CacheKey Text
- newtype Existence = Existence Bool
- newtype NullValue = NullValue Bool
- newtype CutoffFrequency = CutoffFrequency Double
- newtype Analyzer = Analyzer Text
- newtype MaxExpansions = MaxExpansions Int
- newtype Lenient = Lenient Bool
- newtype Tiebreaker = Tiebreaker Double
- newtype MinimumMatch = MinimumMatch Int
- newtype DisableCoord = DisableCoord Bool
- newtype IgnoreTermFrequency = IgnoreTermFrequency Bool
- newtype MinimumTermFrequency = MinimumTermFrequency Int
- newtype MaxQueryTerms = MaxQueryTerms Int
- newtype PrefixLength = PrefixLength Int
- newtype PercentMatch = PercentMatch Double
- newtype StopWord = StopWord Text
- newtype QueryPath = QueryPath Text
- newtype AllowLeadingWildcard = AllowLeadingWildcard Bool
- newtype LowercaseExpanded = LowercaseExpanded Bool
- newtype EnablePositionIncrements = EnablePositionIncrements Bool
- newtype AnalyzeWildcard = AnalyzeWildcard Bool
- newtype GeneratePhraseQueries = GeneratePhraseQueries Bool
- newtype Locale = Locale Text
- newtype MaxWordLength = MaxWordLength Int
- newtype MinWordLength = MinWordLength Int
- newtype PhraseSlop = PhraseSlop Int
- newtype MinDocFrequency = MinDocFrequency Int
- newtype MaxDocFrequency = MaxDocFrequency Int
- newtype AggregateParentScore = AggregateParentScore Bool
- newtype IgnoreUnmapped = IgnoreUnmapped Bool
- newtype MinChildren = MinChildren Int
- newtype MaxChildren = MaxChildren Int
- newtype POSIXMS = POSIXMS {}
- newtype Boost = Boost Double
- newtype BoostTerms = BoostTerms Double
- newtype ReplicaCount = ReplicaCount Int
- newtype ShardCount = ShardCount Int
- newtype IndexName = IndexName Text
- newtype IndexAliasName = IndexAliasName {}
- newtype MaybeNA a = MaybeNA {}
- newtype SnapshotName = SnapshotName {
- snapshotName :: Text
- newtype MS = MS NominalDiffTime
- unMS :: MS -> NominalDiffTime
- newtype TokenFilter = TokenFilter Text
- newtype CharFilter = CharFilter Text
Documentation
DocId
is a generic wrapper value for expressing unique Document IDs.
Can be set by the user or created by ES itself. Often used in client
functions for poking at specific documents.
FieldName
is used all over the place wherever a specific field within
a document needs to be specified, usually in Query
s or Filter
s.
newtype RelationName Source #
RelationName
describes a relation role between parend and child Documents
in a Join relarionship: https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html
Constructors
RelationName Text |
Instances
Eq RelationName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Read RelationName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods readsPrec :: Int -> ReadS RelationName # readList :: ReadS [RelationName] # | |
Show RelationName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> RelationName -> ShowS # show :: RelationName -> String # showList :: [RelationName] -> ShowS # | |
ToJSON RelationName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: RelationName -> Value # toEncoding :: RelationName -> Encoding # toJSONList :: [RelationName] -> Value # toEncodingList :: [RelationName] -> Encoding # | |
FromJSON RelationName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
newtype QueryString Source #
QueryString
is used to wrap query text bodies, be they human written or not.
Constructors
QueryString Text |
Instances
Eq QueryString Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show QueryString Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> QueryString -> ShowS # show :: QueryString -> String # showList :: [QueryString] -> ShowS # | |
ToJSON QueryString Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: QueryString -> Value # toEncoding :: QueryString -> Encoding # toJSONList :: [QueryString] -> Value # toEncodingList :: [QueryString] -> Encoding # | |
FromJSON QueryString Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
CacheKey
is used in RegexpFilter
to key regex caching.
newtype CutoffFrequency Source #
Constructors
CutoffFrequency Double |
Instances
Eq CutoffFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: CutoffFrequency -> CutoffFrequency -> Bool # (/=) :: CutoffFrequency -> CutoffFrequency -> Bool # | |
Show CutoffFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> CutoffFrequency -> ShowS # show :: CutoffFrequency -> String # showList :: [CutoffFrequency] -> ShowS # | |
ToJSON CutoffFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: CutoffFrequency -> Value # toEncoding :: CutoffFrequency -> Encoding # toJSONList :: [CutoffFrequency] -> Value # toEncodingList :: [CutoffFrequency] -> Encoding # | |
FromJSON CutoffFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser CutoffFrequency # parseJSONList :: Value -> Parser [CutoffFrequency] # |
newtype MaxExpansions Source #
Constructors
MaxExpansions Int |
Instances
Eq MaxExpansions Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: MaxExpansions -> MaxExpansions -> Bool # (/=) :: MaxExpansions -> MaxExpansions -> Bool # | |
Show MaxExpansions Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> MaxExpansions -> ShowS # show :: MaxExpansions -> String # showList :: [MaxExpansions] -> ShowS # | |
ToJSON MaxExpansions Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: MaxExpansions -> Value # toEncoding :: MaxExpansions -> Encoding # toJSONList :: [MaxExpansions] -> Value # toEncodingList :: [MaxExpansions] -> Encoding # | |
FromJSON MaxExpansions Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser MaxExpansions # parseJSONList :: Value -> Parser [MaxExpansions] # |
Lenient
, if set to true, will cause format based failures to be
ignored. I don't know what the bloody default is, Elasticsearch
documentation didn't say what it was. Let me know if you figure it out.
newtype Tiebreaker Source #
Constructors
Tiebreaker Double |
Instances
Eq Tiebreaker Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show Tiebreaker Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> Tiebreaker -> ShowS # show :: Tiebreaker -> String # showList :: [Tiebreaker] -> ShowS # | |
ToJSON Tiebreaker Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: Tiebreaker -> Value # toEncoding :: Tiebreaker -> Encoding # toJSONList :: [Tiebreaker] -> Value # toEncodingList :: [Tiebreaker] -> Encoding # | |
FromJSON Tiebreaker Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
newtype MinimumMatch Source #
MinimumMatch
controls how many should clauses in the bool query should
match. Can be an absolute value (2) or a percentage (30%) or a
combination of both.
Constructors
MinimumMatch Int |
Instances
Eq MinimumMatch Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show MinimumMatch Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> MinimumMatch -> ShowS # show :: MinimumMatch -> String # showList :: [MinimumMatch] -> ShowS # | |
ToJSON MinimumMatch Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: MinimumMatch -> Value # toEncoding :: MinimumMatch -> Encoding # toJSONList :: [MinimumMatch] -> Value # toEncodingList :: [MinimumMatch] -> Encoding # | |
FromJSON MinimumMatch Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
newtype DisableCoord Source #
Constructors
DisableCoord Bool |
Instances
Eq DisableCoord Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show DisableCoord Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> DisableCoord -> ShowS # show :: DisableCoord -> String # showList :: [DisableCoord] -> ShowS # | |
ToJSON DisableCoord Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: DisableCoord -> Value # toEncoding :: DisableCoord -> Encoding # toJSONList :: [DisableCoord] -> Value # toEncodingList :: [DisableCoord] -> Encoding # | |
FromJSON DisableCoord Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
newtype IgnoreTermFrequency Source #
Constructors
IgnoreTermFrequency Bool |
Instances
Eq IgnoreTermFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: IgnoreTermFrequency -> IgnoreTermFrequency -> Bool # (/=) :: IgnoreTermFrequency -> IgnoreTermFrequency -> Bool # | |
Show IgnoreTermFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> IgnoreTermFrequency -> ShowS # show :: IgnoreTermFrequency -> String # showList :: [IgnoreTermFrequency] -> ShowS # | |
ToJSON IgnoreTermFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: IgnoreTermFrequency -> Value # toEncoding :: IgnoreTermFrequency -> Encoding # toJSONList :: [IgnoreTermFrequency] -> Value # toEncodingList :: [IgnoreTermFrequency] -> Encoding # | |
FromJSON IgnoreTermFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser IgnoreTermFrequency # parseJSONList :: Value -> Parser [IgnoreTermFrequency] # |
newtype MinimumTermFrequency Source #
Constructors
MinimumTermFrequency Int |
Instances
Eq MinimumTermFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: MinimumTermFrequency -> MinimumTermFrequency -> Bool # (/=) :: MinimumTermFrequency -> MinimumTermFrequency -> Bool # | |
Show MinimumTermFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> MinimumTermFrequency -> ShowS # show :: MinimumTermFrequency -> String # showList :: [MinimumTermFrequency] -> ShowS # | |
ToJSON MinimumTermFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: MinimumTermFrequency -> Value # toEncoding :: MinimumTermFrequency -> Encoding # toJSONList :: [MinimumTermFrequency] -> Value # toEncodingList :: [MinimumTermFrequency] -> Encoding # | |
FromJSON MinimumTermFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser MinimumTermFrequency # parseJSONList :: Value -> Parser [MinimumTermFrequency] # |
newtype MaxQueryTerms Source #
Constructors
MaxQueryTerms Int |
Instances
Eq MaxQueryTerms Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: MaxQueryTerms -> MaxQueryTerms -> Bool # (/=) :: MaxQueryTerms -> MaxQueryTerms -> Bool # | |
Show MaxQueryTerms Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> MaxQueryTerms -> ShowS # show :: MaxQueryTerms -> String # showList :: [MaxQueryTerms] -> ShowS # | |
ToJSON MaxQueryTerms Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: MaxQueryTerms -> Value # toEncoding :: MaxQueryTerms -> Encoding # toJSONList :: [MaxQueryTerms] -> Value # toEncodingList :: [MaxQueryTerms] -> Encoding # | |
FromJSON MaxQueryTerms Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser MaxQueryTerms # parseJSONList :: Value -> Parser [MaxQueryTerms] # |
newtype PrefixLength Source #
PrefixLength
is the prefix length used in queries, defaults to 0.
Constructors
PrefixLength Int |
Instances
Eq PrefixLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show PrefixLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> PrefixLength -> ShowS # show :: PrefixLength -> String # showList :: [PrefixLength] -> ShowS # | |
ToJSON PrefixLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: PrefixLength -> Value # toEncoding :: PrefixLength -> Encoding # toJSONList :: [PrefixLength] -> Value # toEncodingList :: [PrefixLength] -> Encoding # | |
FromJSON PrefixLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
newtype PercentMatch Source #
Constructors
PercentMatch Double |
Instances
Eq PercentMatch Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show PercentMatch Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> PercentMatch -> ShowS # show :: PercentMatch -> String # showList :: [PercentMatch] -> ShowS # | |
ToJSON PercentMatch Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: PercentMatch -> Value # toEncoding :: PercentMatch -> Encoding # toJSONList :: [PercentMatch] -> Value # toEncodingList :: [PercentMatch] -> Encoding # | |
FromJSON PercentMatch Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
newtype AllowLeadingWildcard Source #
Allowing a wildcard at the beginning of a word (eg "*ing") is particularly
heavy, because all terms in the index need to be examined, just in case
they match. Leading wildcards can be disabled by setting
AllowLeadingWildcard
to false.
Constructors
AllowLeadingWildcard Bool |
Instances
Eq AllowLeadingWildcard Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: AllowLeadingWildcard -> AllowLeadingWildcard -> Bool # (/=) :: AllowLeadingWildcard -> AllowLeadingWildcard -> Bool # | |
Show AllowLeadingWildcard Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> AllowLeadingWildcard -> ShowS # show :: AllowLeadingWildcard -> String # showList :: [AllowLeadingWildcard] -> ShowS # | |
ToJSON AllowLeadingWildcard Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: AllowLeadingWildcard -> Value # toEncoding :: AllowLeadingWildcard -> Encoding # toJSONList :: [AllowLeadingWildcard] -> Value # toEncodingList :: [AllowLeadingWildcard] -> Encoding # | |
FromJSON AllowLeadingWildcard Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser AllowLeadingWildcard # parseJSONList :: Value -> Parser [AllowLeadingWildcard] # |
newtype LowercaseExpanded Source #
Constructors
LowercaseExpanded Bool |
Instances
Eq LowercaseExpanded Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: LowercaseExpanded -> LowercaseExpanded -> Bool # (/=) :: LowercaseExpanded -> LowercaseExpanded -> Bool # | |
Show LowercaseExpanded Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> LowercaseExpanded -> ShowS # show :: LowercaseExpanded -> String # showList :: [LowercaseExpanded] -> ShowS # | |
ToJSON LowercaseExpanded Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: LowercaseExpanded -> Value # toEncoding :: LowercaseExpanded -> Encoding # toJSONList :: [LowercaseExpanded] -> Value # toEncodingList :: [LowercaseExpanded] -> Encoding # | |
FromJSON LowercaseExpanded Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser LowercaseExpanded # parseJSONList :: Value -> Parser [LowercaseExpanded] # |
newtype EnablePositionIncrements Source #
Constructors
EnablePositionIncrements Bool |
Instances
Eq EnablePositionIncrements Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: EnablePositionIncrements -> EnablePositionIncrements -> Bool # (/=) :: EnablePositionIncrements -> EnablePositionIncrements -> Bool # | |
Show EnablePositionIncrements Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> EnablePositionIncrements -> ShowS # show :: EnablePositionIncrements -> String # showList :: [EnablePositionIncrements] -> ShowS # | |
ToJSON EnablePositionIncrements Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: EnablePositionIncrements -> Value # toEncoding :: EnablePositionIncrements -> Encoding # toJSONList :: [EnablePositionIncrements] -> Value # | |
FromJSON EnablePositionIncrements Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser EnablePositionIncrements # parseJSONList :: Value -> Parser [EnablePositionIncrements] # |
newtype AnalyzeWildcard Source #
By default, wildcard terms in a query are not analyzed.
Setting AnalyzeWildcard
to true enables best-effort analysis.
Constructors
AnalyzeWildcard Bool |
Instances
Eq AnalyzeWildcard Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: AnalyzeWildcard -> AnalyzeWildcard -> Bool # (/=) :: AnalyzeWildcard -> AnalyzeWildcard -> Bool # | |
Show AnalyzeWildcard Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> AnalyzeWildcard -> ShowS # show :: AnalyzeWildcard -> String # showList :: [AnalyzeWildcard] -> ShowS # | |
ToJSON AnalyzeWildcard Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: AnalyzeWildcard -> Value # toEncoding :: AnalyzeWildcard -> Encoding # toJSONList :: [AnalyzeWildcard] -> Value # toEncodingList :: [AnalyzeWildcard] -> Encoding # | |
FromJSON AnalyzeWildcard Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser AnalyzeWildcard # parseJSONList :: Value -> Parser [AnalyzeWildcard] # |
newtype GeneratePhraseQueries Source #
GeneratePhraseQueries
defaults to false.
Constructors
GeneratePhraseQueries Bool |
Instances
Eq GeneratePhraseQueries Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: GeneratePhraseQueries -> GeneratePhraseQueries -> Bool # (/=) :: GeneratePhraseQueries -> GeneratePhraseQueries -> Bool # | |
Show GeneratePhraseQueries Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> GeneratePhraseQueries -> ShowS # show :: GeneratePhraseQueries -> String # showList :: [GeneratePhraseQueries] -> ShowS # | |
ToJSON GeneratePhraseQueries Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: GeneratePhraseQueries -> Value # toEncoding :: GeneratePhraseQueries -> Encoding # toJSONList :: [GeneratePhraseQueries] -> Value # toEncodingList :: [GeneratePhraseQueries] -> Encoding # | |
FromJSON GeneratePhraseQueries Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser GeneratePhraseQueries # parseJSONList :: Value -> Parser [GeneratePhraseQueries] # |
Locale
is used for string conversions - defaults to ROOT.
newtype MaxWordLength Source #
Constructors
MaxWordLength Int |
Instances
Eq MaxWordLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: MaxWordLength -> MaxWordLength -> Bool # (/=) :: MaxWordLength -> MaxWordLength -> Bool # | |
Show MaxWordLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> MaxWordLength -> ShowS # show :: MaxWordLength -> String # showList :: [MaxWordLength] -> ShowS # | |
ToJSON MaxWordLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: MaxWordLength -> Value # toEncoding :: MaxWordLength -> Encoding # toJSONList :: [MaxWordLength] -> Value # toEncodingList :: [MaxWordLength] -> Encoding # | |
FromJSON MaxWordLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser MaxWordLength # parseJSONList :: Value -> Parser [MaxWordLength] # |
newtype MinWordLength Source #
Constructors
MinWordLength Int |
Instances
Eq MinWordLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: MinWordLength -> MinWordLength -> Bool # (/=) :: MinWordLength -> MinWordLength -> Bool # | |
Show MinWordLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> MinWordLength -> ShowS # show :: MinWordLength -> String # showList :: [MinWordLength] -> ShowS # | |
ToJSON MinWordLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: MinWordLength -> Value # toEncoding :: MinWordLength -> Encoding # toJSONList :: [MinWordLength] -> Value # toEncodingList :: [MinWordLength] -> Encoding # | |
FromJSON MinWordLength Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser MinWordLength # parseJSONList :: Value -> Parser [MinWordLength] # |
newtype PhraseSlop Source #
PhraseSlop
sets the default slop for phrases, 0 means exact
phrase matches. Default is 0.
Constructors
PhraseSlop Int |
Instances
Eq PhraseSlop Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show PhraseSlop Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> PhraseSlop -> ShowS # show :: PhraseSlop -> String # showList :: [PhraseSlop] -> ShowS # | |
ToJSON PhraseSlop Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: PhraseSlop -> Value # toEncoding :: PhraseSlop -> Encoding # toJSONList :: [PhraseSlop] -> Value # toEncodingList :: [PhraseSlop] -> Encoding # | |
FromJSON PhraseSlop Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
newtype MinDocFrequency Source #
Constructors
MinDocFrequency Int |
Instances
Eq MinDocFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: MinDocFrequency -> MinDocFrequency -> Bool # (/=) :: MinDocFrequency -> MinDocFrequency -> Bool # | |
Show MinDocFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> MinDocFrequency -> ShowS # show :: MinDocFrequency -> String # showList :: [MinDocFrequency] -> ShowS # | |
ToJSON MinDocFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: MinDocFrequency -> Value # toEncoding :: MinDocFrequency -> Encoding # toJSONList :: [MinDocFrequency] -> Value # toEncodingList :: [MinDocFrequency] -> Encoding # | |
FromJSON MinDocFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser MinDocFrequency # parseJSONList :: Value -> Parser [MinDocFrequency] # |
newtype MaxDocFrequency Source #
Constructors
MaxDocFrequency Int |
Instances
Eq MaxDocFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: MaxDocFrequency -> MaxDocFrequency -> Bool # (/=) :: MaxDocFrequency -> MaxDocFrequency -> Bool # | |
Show MaxDocFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> MaxDocFrequency -> ShowS # show :: MaxDocFrequency -> String # showList :: [MaxDocFrequency] -> ShowS # | |
ToJSON MaxDocFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: MaxDocFrequency -> Value # toEncoding :: MaxDocFrequency -> Encoding # toJSONList :: [MaxDocFrequency] -> Value # toEncodingList :: [MaxDocFrequency] -> Encoding # | |
FromJSON MaxDocFrequency Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser MaxDocFrequency # parseJSONList :: Value -> Parser [MaxDocFrequency] # |
newtype AggregateParentScore Source #
Indicates whether the relevance score of a matching parent document is aggregated into its child documents.
Constructors
AggregateParentScore Bool |
Instances
Eq AggregateParentScore Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: AggregateParentScore -> AggregateParentScore -> Bool # (/=) :: AggregateParentScore -> AggregateParentScore -> Bool # | |
Show AggregateParentScore Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> AggregateParentScore -> ShowS # show :: AggregateParentScore -> String # showList :: [AggregateParentScore] -> ShowS # | |
ToJSON AggregateParentScore Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: AggregateParentScore -> Value # toEncoding :: AggregateParentScore -> Encoding # toJSONList :: [AggregateParentScore] -> Value # toEncodingList :: [AggregateParentScore] -> Encoding # | |
FromJSON AggregateParentScore Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser AggregateParentScore # parseJSONList :: Value -> Parser [AggregateParentScore] # |
newtype IgnoreUnmapped Source #
Indicates whether to ignore an unmapped parent_type and not return any documents instead of an error.
Constructors
IgnoreUnmapped Bool |
Instances
Eq IgnoreUnmapped Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: IgnoreUnmapped -> IgnoreUnmapped -> Bool # (/=) :: IgnoreUnmapped -> IgnoreUnmapped -> Bool # | |
Show IgnoreUnmapped Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> IgnoreUnmapped -> ShowS # show :: IgnoreUnmapped -> String # showList :: [IgnoreUnmapped] -> ShowS # | |
ToJSON IgnoreUnmapped Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: IgnoreUnmapped -> Value # toEncoding :: IgnoreUnmapped -> Encoding # toJSONList :: [IgnoreUnmapped] -> Value # toEncodingList :: [IgnoreUnmapped] -> Encoding # | |
FromJSON IgnoreUnmapped Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods parseJSON :: Value -> Parser IgnoreUnmapped # parseJSONList :: Value -> Parser [IgnoreUnmapped] # |
newtype MinChildren Source #
Maximum number of child documents that match the query allowed for a returned parent document. If the parent document exceeds this limit, it is excluded from the search results.
Constructors
MinChildren Int |
Instances
Eq MinChildren Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show MinChildren Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> MinChildren -> ShowS # show :: MinChildren -> String # showList :: [MinChildren] -> ShowS # | |
ToJSON MinChildren Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: MinChildren -> Value # toEncoding :: MinChildren -> Encoding # toJSONList :: [MinChildren] -> Value # toEncodingList :: [MinChildren] -> Encoding # | |
FromJSON MinChildren Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
newtype MaxChildren Source #
Minimum number of child documents that match the query required to match the query for a returned parent document. If the parent document does not meet this limit, it is excluded from the search results.
Constructors
MaxChildren Int |
Instances
Eq MaxChildren Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show MaxChildren Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> MaxChildren -> ShowS # show :: MaxChildren -> String # showList :: [MaxChildren] -> ShowS # | |
ToJSON MaxChildren Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: MaxChildren -> Value # toEncoding :: MaxChildren -> Encoding # toJSONList :: [MaxChildren] -> Value # toEncodingList :: [MaxChildren] -> Encoding # | |
FromJSON MaxChildren Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
Newtype wrapper to parse ES's concerning tendency to in some APIs return a floating point number of milliseconds since epoch ಠ_ಠ
newtype BoostTerms Source #
Constructors
BoostTerms Double |
Instances
Eq BoostTerms Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show BoostTerms Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> BoostTerms -> ShowS # show :: BoostTerms -> String # showList :: [BoostTerms] -> ShowS # | |
ToJSON BoostTerms Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: BoostTerms -> Value # toEncoding :: BoostTerms -> Encoding # toJSONList :: [BoostTerms] -> Value # toEncodingList :: [BoostTerms] -> Encoding # | |
FromJSON BoostTerms Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
newtype ReplicaCount Source #
ReplicaCount
is part of IndexSettings
Constructors
ReplicaCount Int |
Instances
Eq ReplicaCount Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show ReplicaCount Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> ReplicaCount -> ShowS # show :: ReplicaCount -> String # showList :: [ReplicaCount] -> ShowS # | |
ToJSON ReplicaCount Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: ReplicaCount -> Value # toEncoding :: ReplicaCount -> Encoding # toJSONList :: [ReplicaCount] -> Value # toEncodingList :: [ReplicaCount] -> Encoding # | |
FromJSON ReplicaCount Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
newtype ShardCount Source #
ShardCount
is part of IndexSettings
Constructors
ShardCount Int |
Instances
Eq ShardCount Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show ShardCount Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> ShardCount -> ShowS # show :: ShardCount -> String # showList :: [ShardCount] -> ShowS # | |
ToJSON ShardCount Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: ShardCount -> Value # toEncoding :: ShardCount -> Encoding # toJSONList :: [ShardCount] -> Value # toEncodingList :: [ShardCount] -> Encoding # | |
FromJSON ShardCount Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
IndexName
is used to describe which index to querycreatedelete
newtype IndexAliasName Source #
Constructors
IndexAliasName | |
Fields |
Instances
Eq IndexAliasName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods (==) :: IndexAliasName -> IndexAliasName -> Bool # (/=) :: IndexAliasName -> IndexAliasName -> Bool # | |
Show IndexAliasName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> IndexAliasName -> ShowS # show :: IndexAliasName -> String # showList :: [IndexAliasName] -> ShowS # | |
ToJSON IndexAliasName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: IndexAliasName -> Value # toEncoding :: IndexAliasName -> Encoding # toJSONList :: [IndexAliasName] -> Value # toEncodingList :: [IndexAliasName] -> Encoding # |
newtype SnapshotName Source #
Constructors
SnapshotName | |
Fields
|
Instances
Eq SnapshotName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show SnapshotName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> SnapshotName -> ShowS # show :: SnapshotName -> String # showList :: [SnapshotName] -> ShowS # | |
ToJSON SnapshotName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: SnapshotName -> Value # toEncoding :: SnapshotName -> Encoding # toJSONList :: [SnapshotName] -> Value # toEncodingList :: [SnapshotName] -> Encoding # | |
FromJSON SnapshotName Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
Milliseconds
Constructors
MS NominalDiffTime |
unMS :: MS -> NominalDiffTime Source #
newtype TokenFilter Source #
Constructors
TokenFilter Text |
Instances
Eq TokenFilter Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show TokenFilter Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> TokenFilter -> ShowS # show :: TokenFilter -> String # showList :: [TokenFilter] -> ShowS # | |
ToJSON TokenFilter Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: TokenFilter -> Value # toEncoding :: TokenFilter -> Encoding # toJSONList :: [TokenFilter] -> Value # toEncodingList :: [TokenFilter] -> Encoding # | |
FromJSON TokenFilter Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |
newtype CharFilter Source #
Constructors
CharFilter Text |
Instances
Eq CharFilter Source # | |
Defined in Database.Bloodhound.Internal.Newtypes | |
Show CharFilter Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods showsPrec :: Int -> CharFilter -> ShowS # show :: CharFilter -> String # showList :: [CharFilter] -> ShowS # | |
ToJSON CharFilter Source # | |
Defined in Database.Bloodhound.Internal.Newtypes Methods toJSON :: CharFilter -> Value # toEncoding :: CharFilter -> Encoding # toJSONList :: [CharFilter] -> Value # toEncodingList :: [CharFilter] -> Encoding # | |
FromJSON CharFilter Source # | |
Defined in Database.Bloodhound.Internal.Newtypes |