| Copyright | (C) 2014 2018 Chris Allen |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Chris Allen <cma@bitemyapp.com |
| Stability | provisional |
| Portability | RecordWildCards |
| Safe Haskell | None |
| Language | Haskell2010 |
Database.Bloodhound.Types
Description
Data types for describing actions and data structures performed to interact
with Elasticsearch. The two main buckets your queries against Elasticsearch
will fall into are Querys and Filters. Filters are more like
traditional database constraints and often have preferable performance
properties. Querys support human-written textual queries, such as fuzzy
queries.
Synopsis
- defaultCache :: Cache
- defaultIndexSettings :: IndexSettings
- defaultIndexMappingsLimits :: IndexMappingsLimits
- defaultIndexDocumentSettings :: IndexDocumentSettings
- mkSort :: FieldName -> SortOrder -> DefaultSort
- showText :: Show a => a -> Text
- unpackId :: DocId -> Text
- mkMatchQuery :: FieldName -> QueryString -> MatchQuery
- mkMultiMatchQuery :: [FieldName] -> QueryString -> MultiMatchQuery
- mkBoolQuery :: [Query] -> [Filter] -> [Query] -> [Query] -> BoolQuery
- mkRangeQuery :: FieldName -> RangeValue -> RangeQuery
- mkQueryStringQuery :: QueryString -> QueryStringQuery
- mkAggregations :: Key -> Aggregation -> Aggregations
- mkTermsAggregation :: Text -> TermsAggregation
- mkTermsScriptAggregation :: Text -> TermsAggregation
- mkDateHistogram :: FieldName -> Interval -> DateHistogramAggregation
- mkCardinalityAggregation :: FieldName -> CardinalityAggregation
- mkDocVersion :: Int -> Maybe DocVersion
- mkStatsAggregation :: FieldName -> StatisticsAggregation
- mkExtendedStatsAggregation :: FieldName -> StatisticsAggregation
- docVersionNumber :: DocVersion -> Int
- toMissing :: Key -> AggregationResults -> Maybe MissingResult
- toTerms :: Key -> AggregationResults -> Maybe (Bucket TermsResult)
- toDateHistogram :: Key -> AggregationResults -> Maybe (Bucket DateHistogramResult)
- toTopHits :: FromJSON a => Key -> AggregationResults -> Maybe (TopHitResult a)
- omitNulls :: [(Key, Value)] -> Value
- newtype BH m a = BH {}
- runBH :: BHEnv -> BH m a -> m a
- data BHEnv
- bhServer :: BHEnv -> Server
- bhManager :: BHEnv -> Manager
- bhRequestHook :: BHEnv -> Request -> IO Request
- mkBHEnv :: Server -> Manager -> BHEnv
- class (Functor m, Applicative m, MonadIO m) => MonadBH m where
- data Version = Version {}
- newtype VersionNumber = VersionNumber {}
- newtype MaybeNA a = MaybeNA {}
- newtype BuildHash = BuildHash {}
- data Status = Status {
- name :: Text
- cluster_name :: Text
- cluster_uuid :: Text
- version :: Version
- tagline :: Text
- newtype Existence = Existence Bool
- newtype NullValue = NullValue Bool
- data IndexMappingsLimits = IndexMappingsLimits {}
- data IndexSettings = IndexSettings {}
- data UpdatableIndexSetting
- = NumberOfReplicas ReplicaCount
- | AutoExpandReplicas ReplicaBounds
- | BlocksReadOnly Bool
- | BlocksRead Bool
- | BlocksWrite Bool
- | BlocksMetaData Bool
- | RefreshInterval NominalDiffTime
- | IndexConcurrency Int
- | FailOnMergeFailure Bool
- | TranslogFlushThresholdOps Int
- | TranslogFlushThresholdSize Bytes
- | TranslogFlushThresholdPeriod NominalDiffTime
- | TranslogDisableFlush Bool
- | CacheFilterMaxSize (Maybe Bytes)
- | CacheFilterExpire (Maybe NominalDiffTime)
- | GatewaySnapshotInterval NominalDiffTime
- | RoutingAllocationInclude (NonEmpty NodeAttrFilter)
- | RoutingAllocationExclude (NonEmpty NodeAttrFilter)
- | RoutingAllocationRequire (NonEmpty NodeAttrFilter)
- | RoutingAllocationEnable AllocationPolicy
- | RoutingAllocationShardsPerNode ShardCount
- | RecoveryInitialShards InitialShardCount
- | GCDeletes NominalDiffTime
- | TTLDisablePurge Bool
- | TranslogFSType FSType
- | CompressionSetting Compression
- | IndexCompoundFormat CompoundFormat
- | IndexCompoundOnFlush Bool
- | WarmerEnabled Bool
- | MappingTotalFieldsLimit Int
- | AnalysisSetting Analysis
- | UnassignedNodeLeftDelayedTimeout NominalDiffTime
- data IndexSettingsSummary = IndexSettingsSummary {}
- data AllocationPolicy
- data Compression
- data ReplicaBounds
- newtype Bytes = Bytes Int
- gigabytes :: Int -> Bytes
- megabytes :: Int -> Bytes
- kilobytes :: Int -> Bytes
- data FSType
- data InitialShardCount
- data NodeAttrFilter = NodeAttrFilter {}
- newtype NodeAttrName = NodeAttrName Text
- data CompoundFormat
- data IndexTemplate = IndexTemplate {}
- newtype Server = Server Text
- type Reply = Response LByteString
- data EsResult a = EsResult {
- _index :: Text
- _type :: Text
- _id :: Text
- foundResult :: Maybe (EsResultFound a)
- data EsResultFound a = EsResultFound {
- _version :: DocVersion
- _source :: a
- data EsError = EsError {
- errorStatus :: Int
- errorMessage :: Text
- data EsProtocolException = EsProtocolException {
- esProtoExMessage :: !Text
- esProtoExBody :: !LByteString
- data IndexAlias = IndexAlias {}
- newtype IndexAliasName = IndexAliasName {}
- data IndexAliasAction
- data IndexAliasCreate = IndexAliasCreate {}
- data IndexAliasSummary = IndexAliasSummary {}
- newtype IndexAliasesSummary = IndexAliasesSummary {}
- data AliasRouting
- newtype SearchAliasRouting = SearchAliasRouting (NonEmpty RoutingValue)
- newtype IndexAliasRouting = IndexAliasRouting RoutingValue
- newtype RoutingValue = RoutingValue {
- routingValue :: Text
- data DocVersion
- newtype ExternalDocVersion = ExternalDocVersion DocVersion
- data VersionControl
- data JoinRelation
- data IndexDocumentSettings = IndexDocumentSettings {}
- data Query
- = TermQuery Term (Maybe Boost)
- | TermsQuery Key (NonEmpty Text)
- | QueryMatchQuery MatchQuery
- | QueryMultiMatchQuery MultiMatchQuery
- | QueryBoolQuery BoolQuery
- | QueryBoostingQuery BoostingQuery
- | QueryCommonTermsQuery CommonTermsQuery
- | ConstantScoreQuery Query Boost
- | QueryFunctionScoreQuery FunctionScoreQuery
- | QueryDisMaxQuery DisMaxQuery
- | QueryFuzzyLikeThisQuery FuzzyLikeThisQuery
- | QueryFuzzyLikeFieldQuery FuzzyLikeFieldQuery
- | QueryFuzzyQuery FuzzyQuery
- | QueryHasChildQuery HasChildQuery
- | QueryHasParentQuery HasParentQuery
- | IdsQuery [DocId]
- | QueryIndicesQuery IndicesQuery
- | MatchAllQuery (Maybe Boost)
- | QueryMoreLikeThisQuery MoreLikeThisQuery
- | QueryMoreLikeThisFieldQuery MoreLikeThisFieldQuery
- | QueryNestedQuery NestedQuery
- | QueryPrefixQuery PrefixQuery
- | QueryQueryStringQuery QueryStringQuery
- | QuerySimpleQueryStringQuery SimpleQueryStringQuery
- | QueryRangeQuery RangeQuery
- | QueryRegexpQuery RegexpQuery
- | QueryExistsQuery FieldName
- | QueryMatchNoneQuery
- | QueryWildcardQuery WildcardQuery
- data Search = Search {
- queryBody :: Maybe Query
- filterBody :: Maybe Filter
- sortBody :: Maybe Sort
- aggBody :: Maybe Aggregations
- highlight :: Maybe Highlights
- trackSortScores :: TrackSortScores
- from :: From
- size :: Size
- searchType :: SearchType
- searchAfterKey :: Maybe SearchAfterKey
- fields :: Maybe [FieldName]
- scriptFields :: Maybe ScriptFields
- source :: Maybe Source
- suggestBody :: Maybe Suggest
- pointInTime :: Maybe PointInTime
- data SearchType
- data SearchResult a = SearchResult {}
- newtype ScrollId = ScrollId Text
- data HitsTotalRelation
- data HitsTotal = HitsTotal {}
- data SearchHits a = SearchHits {}
- type TrackSortScores = Bool
- newtype From = From Int
- newtype Size = Size Int
- data Source
- data PatternOrPatterns
- data Include = Include [Pattern]
- data Exclude = Exclude [Pattern]
- newtype Pattern = Pattern Text
- data ShardResult = ShardResult {
- shardTotal :: Int
- shardsSuccessful :: Int
- shardsSkipped :: Int
- shardsFailed :: Int
- data Hit a = Hit {
- hitIndex :: IndexName
- hitDocId :: DocId
- hitScore :: Score
- hitSource :: Maybe a
- hitSort :: Maybe SearchAfterKey
- hitFields :: Maybe HitFields
- hitHighlight :: Maybe HitHighlight
- hitInnerHits :: Maybe (KeyMap (TopHitResult Value))
- newtype HitFields = HitFields (Map Text [Value])
- newtype Filter = Filter {}
- data BoolMatch
- data Term = Term {}
- data GeoPoint = GeoPoint {}
- data GeoBoundingBoxConstraint = GeoBoundingBoxConstraint {}
- data GeoBoundingBox = GeoBoundingBox {
- topLeft :: LatLon
- bottomRight :: LatLon
- data GeoFilterType
- data Distance = Distance {}
- data DistanceUnit
- = Miles
- | Yards
- | Feet
- | Inches
- | Kilometers
- | Meters
- | Centimeters
- | Millimeters
- | NauticalMiles
- data DistanceType
- data DistanceRange = DistanceRange {}
- data OptimizeBbox
- data LatLon = LatLon {}
- data RangeValue
- = RangeDateLte LessThanEqD
- | RangeDateLt LessThanD
- | RangeDateGte GreaterThanEqD
- | RangeDateGt GreaterThanD
- | RangeDateGtLt GreaterThanD LessThanD
- | RangeDateGteLte GreaterThanEqD LessThanEqD
- | RangeDateGteLt GreaterThanEqD LessThanD
- | RangeDateGtLte GreaterThanD LessThanEqD
- | RangeDoubleLte LessThanEq
- | RangeDoubleLt LessThan
- | RangeDoubleGte GreaterThanEq
- | RangeDoubleGt GreaterThan
- | RangeDoubleGtLt GreaterThan LessThan
- | RangeDoubleGteLte GreaterThanEq LessThanEq
- | RangeDoubleGteLt GreaterThanEq LessThan
- | RangeDoubleGtLte GreaterThan LessThanEq
- data RangeExecution
- newtype LessThan = LessThan Double
- newtype LessThanEq = LessThanEq Double
- newtype GreaterThan = GreaterThan Double
- newtype GreaterThanEq = GreaterThanEq Double
- newtype LessThanD = LessThanD UTCTime
- newtype LessThanEqD = LessThanEqD UTCTime
- newtype GreaterThanD = GreaterThanD UTCTime
- newtype GreaterThanEqD = GreaterThanEqD UTCTime
- newtype Regexp = Regexp Text
- data RegexpFlags
- data RegexpFlag
- newtype FieldName = FieldName Text
- newtype ScriptFields = ScriptFields (KeyMap ScriptFieldValue)
- type ScriptFieldValue = Value
- data Script = Script {}
- newtype ScriptLanguage = ScriptLanguage Text
- data ScriptSource
- newtype ScriptParams = ScriptParams (KeyMap ScriptParamValue)
- type ScriptParamValue = Value
- newtype IndexName = IndexName Text
- data IndexSelection
- data NodeSelection
- data NodeSelector
- data ForceMergeIndexSettings = ForceMergeIndexSettings {}
- defaultForceMergeIndexSettings :: ForceMergeIndexSettings
- newtype TemplateName = TemplateName Text
- newtype IndexPattern = IndexPattern Text
- newtype DocId = DocId Text
- newtype CacheName = CacheName Text
- newtype CacheKey = CacheKey Text
- data BulkOperation
- = BulkIndex IndexName DocId Value
- | BulkIndexAuto IndexName Value
- | BulkIndexEncodingAuto IndexName Encoding
- | BulkCreate IndexName DocId Value
- | BulkCreateEncoding IndexName DocId Encoding
- | BulkDelete IndexName DocId
- | BulkUpdate IndexName DocId Value
- | BulkUpsert IndexName DocId UpsertPayload [UpsertActionMetadata]
- newtype ReplicaCount = ReplicaCount Int
- newtype ShardCount = ShardCount Int
- type Sort = [SortSpec]
- data SortMode
- data SortOrder
- data SortSpec
- data DefaultSort = DefaultSort {}
- data Missing
- data OpenCloseIndex
- type Method = Method
- newtype Boost = Boost Double
- data MatchQuery = MatchQuery {
- matchQueryField :: FieldName
- matchQueryQueryString :: QueryString
- matchQueryOperator :: BooleanOperator
- matchQueryZeroTerms :: ZeroTermsQuery
- matchQueryCutoffFrequency :: Maybe CutoffFrequency
- matchQueryMatchType :: Maybe MatchQueryType
- matchQueryAnalyzer :: Maybe Analyzer
- matchQueryMaxExpansions :: Maybe MaxExpansions
- matchQueryLenient :: Maybe Lenient
- matchQueryBoost :: Maybe Boost
- matchQueryMinimumShouldMatch :: Maybe Text
- matchQueryFuzziness :: Maybe Fuzziness
- data MultiMatchQuery = MultiMatchQuery {
- multiMatchQueryFields :: [FieldName]
- multiMatchQueryString :: QueryString
- multiMatchQueryOperator :: BooleanOperator
- multiMatchQueryZeroTerms :: ZeroTermsQuery
- multiMatchQueryTiebreaker :: Maybe Tiebreaker
- multiMatchQueryType :: Maybe MultiMatchQueryType
- multiMatchQueryCutoffFrequency :: Maybe CutoffFrequency
- multiMatchQueryAnalyzer :: Maybe Analyzer
- multiMatchQueryMaxExpansions :: Maybe MaxExpansions
- multiMatchQueryLenient :: Maybe Lenient
- data BoolQuery = BoolQuery {}
- data BoostingQuery = BoostingQuery {}
- data CommonTermsQuery = CommonTermsQuery {
- commonField :: FieldName
- commonQuery :: QueryString
- commonCutoffFrequency :: CutoffFrequency
- commonLowFreqOperator :: BooleanOperator
- commonHighFreqOperator :: BooleanOperator
- commonMinimumShouldMatch :: Maybe CommonMinimumMatch
- commonBoost :: Maybe Boost
- commonAnalyzer :: Maybe Analyzer
- commonDisableCoord :: Maybe DisableCoord
- data FunctionScoreQuery = FunctionScoreQuery {}
- data BoostMode
- data ScoreMode
- data FunctionScoreFunctions
- data ComponentFunctionScoreFunction = ComponentFunctionScoreFunction {}
- data FunctionScoreFunction
- newtype Weight = Weight Float
- newtype Seed = Seed Float
- data FieldValueFactor = FieldValueFactor {}
- newtype Factor = Factor Float
- data FactorModifier
- newtype FactorMissingFieldValue = FactorMissingFieldValue Float
- data DisMaxQuery = DisMaxQuery {}
- data FuzzyLikeThisQuery = FuzzyLikeThisQuery {}
- data FuzzyLikeFieldQuery = FuzzyLikeFieldQuery {}
- data FuzzyQuery = FuzzyQuery {}
- data HasChildQuery = HasChildQuery {}
- data HasParentQuery = HasParentQuery {}
- data IndicesQuery = IndicesQuery {}
- data MoreLikeThisQuery = MoreLikeThisQuery {
- moreLikeThisText :: Text
- moreLikeThisFields :: Maybe (NonEmpty FieldName)
- moreLikeThisPercentMatch :: Maybe PercentMatch
- moreLikeThisMinimumTermFreq :: Maybe MinimumTermFrequency
- moreLikeThisMaxQueryTerms :: Maybe MaxQueryTerms
- moreLikeThisStopWords :: Maybe (NonEmpty StopWord)
- moreLikeThisMinDocFrequency :: Maybe MinDocFrequency
- moreLikeThisMaxDocFrequency :: Maybe MaxDocFrequency
- moreLikeThisMinWordLength :: Maybe MinWordLength
- moreLikeThisMaxWordLength :: Maybe MaxWordLength
- moreLikeThisBoostTerms :: Maybe BoostTerms
- moreLikeThisBoost :: Maybe Boost
- moreLikeThisAnalyzer :: Maybe Analyzer
- data MoreLikeThisFieldQuery = MoreLikeThisFieldQuery {
- moreLikeThisFieldText :: Text
- moreLikeThisFieldFields :: FieldName
- moreLikeThisFieldPercentMatch :: Maybe PercentMatch
- moreLikeThisFieldMinimumTermFreq :: Maybe MinimumTermFrequency
- moreLikeThisFieldMaxQueryTerms :: Maybe MaxQueryTerms
- moreLikeThisFieldStopWords :: Maybe (NonEmpty StopWord)
- moreLikeThisFieldMinDocFrequency :: Maybe MinDocFrequency
- moreLikeThisFieldMaxDocFrequency :: Maybe MaxDocFrequency
- moreLikeThisFieldMinWordLength :: Maybe MinWordLength
- moreLikeThisFieldMaxWordLength :: Maybe MaxWordLength
- moreLikeThisFieldBoostTerms :: Maybe BoostTerms
- moreLikeThisFieldBoost :: Maybe Boost
- moreLikeThisFieldAnalyzer :: Maybe Analyzer
- data NestedQuery = NestedQuery {}
- data PrefixQuery = PrefixQuery {}
- data QueryStringQuery = QueryStringQuery {
- queryStringQuery :: QueryString
- queryStringDefaultField :: Maybe FieldName
- queryStringOperator :: Maybe BooleanOperator
- queryStringAnalyzer :: Maybe Analyzer
- queryStringAllowLeadingWildcard :: Maybe AllowLeadingWildcard
- queryStringLowercaseExpanded :: Maybe LowercaseExpanded
- queryStringEnablePositionIncrements :: Maybe EnablePositionIncrements
- queryStringFuzzyMaxExpansions :: Maybe MaxExpansions
- queryStringFuzziness :: Maybe Fuzziness
- queryStringFuzzyPrefixLength :: Maybe PrefixLength
- queryStringPhraseSlop :: Maybe PhraseSlop
- queryStringBoost :: Maybe Boost
- queryStringAnalyzeWildcard :: Maybe AnalyzeWildcard
- queryStringGeneratePhraseQueries :: Maybe GeneratePhraseQueries
- queryStringMinimumShouldMatch :: Maybe MinimumMatch
- queryStringLenient :: Maybe Lenient
- queryStringLocale :: Maybe Locale
- data SimpleQueryStringQuery = SimpleQueryStringQuery {
- simpleQueryStringQuery :: QueryString
- simpleQueryStringField :: Maybe FieldOrFields
- simpleQueryStringOperator :: Maybe BooleanOperator
- simpleQueryStringAnalyzer :: Maybe Analyzer
- simpleQueryStringFlags :: Maybe (NonEmpty SimpleQueryFlag)
- simpleQueryStringLowercaseExpanded :: Maybe LowercaseExpanded
- simpleQueryStringLocale :: Maybe Locale
- data RangeQuery = RangeQuery {}
- data RegexpQuery = RegexpQuery {}
- newtype QueryString = QueryString Text
- newtype SearchTemplateId = SearchTemplateId Text
- newtype SearchTemplateSource = SearchTemplateSource Text
- data SearchTemplate = SearchTemplate {}
- data GetTemplateScript = GetTemplateScript {}
- newtype TemplateQueryKeyValuePairs = TemplateQueryKeyValuePairs (KeyMap TemplateQueryValue)
- data WildcardQuery = WildcardQuery {}
- data BooleanOperator
- data ZeroTermsQuery
- newtype CutoffFrequency = CutoffFrequency Double
- newtype Analyzer = Analyzer Text
- newtype Tokenizer = Tokenizer Text
- newtype TokenFilter = TokenFilter Text
- newtype CharFilter = CharFilter Text
- newtype MaxExpansions = MaxExpansions Int
- newtype Lenient = Lenient Bool
- data MatchQueryType
- data MultiMatchQueryType
- newtype Tiebreaker = Tiebreaker Double
- newtype MinimumMatch = MinimumMatch Int
- newtype DisableCoord = DisableCoord Bool
- data CommonMinimumMatch
- data MinimumMatchHighLow = MinimumMatchHighLow {}
- newtype PrefixLength = PrefixLength Int
- data Fuzziness
- newtype IgnoreTermFrequency = IgnoreTermFrequency Bool
- newtype MaxQueryTerms = MaxQueryTerms Int
- newtype AggregateParentScore = AggregateParentScore Bool
- newtype IgnoreUnmapped = IgnoreUnmapped Bool
- newtype MinChildren = MinChildren Int
- newtype MaxChildren = MaxChildren Int
- data ScoreType
- data InnerHits = InnerHits {}
- type Score = Maybe Double
- type Cache = Bool
- newtype RelationName = RelationName Text
- newtype BoostTerms = BoostTerms Double
- newtype MaxWordLength = MaxWordLength Int
- newtype MinWordLength = MinWordLength Int
- newtype MaxDocFrequency = MaxDocFrequency Int
- newtype MinDocFrequency = MinDocFrequency Int
- newtype PhraseSlop = PhraseSlop Int
- newtype StopWord = StopWord Text
- newtype QueryPath = QueryPath Text
- newtype MinimumTermFrequency = MinimumTermFrequency Int
- newtype PercentMatch = PercentMatch Double
- newtype FieldDefinition = FieldDefinition {}
- data MappingField = MappingField {}
- newtype Mapping = Mapping {}
- data UpsertActionMetadata
- buildUpsertActionMetadata :: UpsertActionMetadata -> Pair
- data UpsertPayload
- newtype AllowLeadingWildcard = AllowLeadingWildcard Bool
- newtype LowercaseExpanded = LowercaseExpanded Bool
- newtype GeneratePhraseQueries = GeneratePhraseQueries Bool
- newtype Locale = Locale Text
- newtype AnalyzeWildcard = AnalyzeWildcard Bool
- newtype EnablePositionIncrements = EnablePositionIncrements Bool
- data SimpleQueryFlag
- data FieldOrFields
- class Semigroup a => Monoid a where
- class ToJSON a where
- toJSON :: a -> Value
- toEncoding :: a -> Encoding
- toJSONList :: [a] -> Value
- toEncodingList :: [a] -> Encoding
- data Interval
- data TimeInterval
- data ExecutionHint
- data CollectionMode
- data TermOrder = TermOrder {}
- data TermInclusion
- data SnapshotRepoSelection
- data GenericSnapshotRepo = GenericSnapshotRepo {}
- class SnapshotRepo r where
- data SnapshotRepoConversionError
- newtype SnapshotRepoType = SnapshotRepoType {}
- newtype GenericSnapshotRepoSettings = GenericSnapshotRepoSettings {}
- newtype SnapshotRepoUpdateSettings = SnapshotRepoUpdateSettings {}
- defaultSnapshotRepoUpdateSettings :: SnapshotRepoUpdateSettings
- newtype SnapshotRepoName = SnapshotRepoName {}
- data SnapshotRepoPattern
- newtype SnapshotVerification = SnapshotVerification {}
- data SnapshotNodeVerification = SnapshotNodeVerification {}
- newtype FullNodeId = FullNodeId {
- fullNodeId :: Text
- newtype NodeName = NodeName {}
- newtype ClusterName = ClusterName {
- clusterName :: Text
- data NodesInfo = NodesInfo {}
- data NodesStats = NodesStats {}
- data NodeStats = NodeStats {
- nodeStatsName :: NodeName
- nodeStatsFullId :: FullNodeId
- nodeStatsBreakersStats :: Maybe NodeBreakersStats
- nodeStatsHTTP :: NodeHTTPStats
- nodeStatsTransport :: NodeTransportStats
- nodeStatsFS :: NodeFSStats
- nodeStatsNetwork :: Maybe NodeNetworkStats
- nodeStatsThreadPool :: Map Text NodeThreadPoolStats
- nodeStatsJVM :: NodeJVMStats
- nodeStatsProcess :: NodeProcessStats
- nodeStatsOS :: NodeOSStats
- nodeStatsIndices :: NodeIndicesStats
- data NodeBreakersStats = NodeBreakersStats {}
- data NodeBreakerStats = NodeBreakerStats {}
- data NodeHTTPStats = NodeHTTPStats {}
- data NodeTransportStats = NodeTransportStats {}
- data NodeFSStats = NodeFSStats {}
- data NodeDataPathStats = NodeDataPathStats {
- nodeDataPathDiskServiceTime :: Maybe Double
- nodeDataPathDiskQueue :: Maybe Double
- nodeDataPathIOSize :: Maybe Bytes
- nodeDataPathWriteSize :: Maybe Bytes
- nodeDataPathReadSize :: Maybe Bytes
- nodeDataPathIOOps :: Maybe Int
- nodeDataPathWrites :: Maybe Int
- nodeDataPathReads :: Maybe Int
- nodeDataPathAvailable :: Bytes
- nodeDataPathFree :: Bytes
- nodeDataPathTotal :: Bytes
- nodeDataPathType :: Maybe Text
- nodeDataPathDevice :: Maybe Text
- nodeDataPathMount :: Text
- nodeDataPathPath :: Text
- data NodeFSTotalStats = NodeFSTotalStats {
- nodeFSTotalDiskServiceTime :: Maybe Double
- nodeFSTotalDiskQueue :: Maybe Double
- nodeFSTotalIOSize :: Maybe Bytes
- nodeFSTotalWriteSize :: Maybe Bytes
- nodeFSTotalReadSize :: Maybe Bytes
- nodeFSTotalIOOps :: Maybe Int
- nodeFSTotalWrites :: Maybe Int
- nodeFSTotalReads :: Maybe Int
- nodeFSTotalAvailable :: Bytes
- nodeFSTotalFree :: Bytes
- nodeFSTotalTotal :: Bytes
- data NodeNetworkStats = NodeNetworkStats {}
- data NodeThreadPoolStats = NodeThreadPoolStats {}
- data NodeJVMStats = NodeJVMStats {
- nodeJVMStatsMappedBufferPool :: JVMBufferPoolStats
- nodeJVMStatsDirectBufferPool :: JVMBufferPoolStats
- nodeJVMStatsGCOldCollector :: JVMGCStats
- nodeJVMStatsGCYoungCollector :: JVMGCStats
- nodeJVMStatsPeakThreadsCount :: Int
- nodeJVMStatsThreadsCount :: Int
- nodeJVMStatsOldPool :: JVMPoolStats
- nodeJVMStatsSurvivorPool :: JVMPoolStats
- nodeJVMStatsYoungPool :: JVMPoolStats
- nodeJVMStatsNonHeapCommitted :: Bytes
- nodeJVMStatsNonHeapUsed :: Bytes
- nodeJVMStatsHeapMax :: Bytes
- nodeJVMStatsHeapCommitted :: Bytes
- nodeJVMStatsHeapUsedPercent :: Int
- nodeJVMStatsHeapUsed :: Bytes
- nodeJVMStatsUptime :: NominalDiffTime
- nodeJVMStatsTimestamp :: UTCTime
- data JVMBufferPoolStats = JVMBufferPoolStats {}
- data JVMGCStats = JVMGCStats {}
- data JVMPoolStats = JVMPoolStats {}
- data NodeProcessStats = NodeProcessStats {}
- data NodeOSStats = NodeOSStats {}
- data LoadAvgs = LoadAvgs {}
- data NodeIndicesStats = NodeIndicesStats {
- nodeIndicesStatsRecoveryThrottleTime :: Maybe NominalDiffTime
- nodeIndicesStatsRecoveryCurrentAsTarget :: Maybe Int
- nodeIndicesStatsRecoveryCurrentAsSource :: Maybe Int
- nodeIndicesStatsQueryCacheMisses :: Maybe Int
- nodeIndicesStatsQueryCacheHits :: Maybe Int
- nodeIndicesStatsQueryCacheEvictions :: Maybe Int
- nodeIndicesStatsQueryCacheSize :: Maybe Bytes
- nodeIndicesStatsSuggestCurrent :: Maybe Int
- nodeIndicesStatsSuggestTime :: Maybe NominalDiffTime
- nodeIndicesStatsSuggestTotal :: Maybe Int
- nodeIndicesStatsTranslogSize :: Bytes
- nodeIndicesStatsTranslogOps :: Int
- nodeIndicesStatsSegFixedBitSetMemory :: Maybe Bytes
- nodeIndicesStatsSegVersionMapMemory :: Bytes
- nodeIndicesStatsSegIndexWriterMaxMemory :: Maybe Bytes
- nodeIndicesStatsSegIndexWriterMemory :: Bytes
- nodeIndicesStatsSegMemory :: Bytes
- nodeIndicesStatsSegCount :: Int
- nodeIndicesStatsCompletionSize :: Bytes
- nodeIndicesStatsPercolateQueries :: Maybe Int
- nodeIndicesStatsPercolateMemory :: Maybe Bytes
- nodeIndicesStatsPercolateCurrent :: Maybe Int
- nodeIndicesStatsPercolateTime :: Maybe NominalDiffTime
- nodeIndicesStatsPercolateTotal :: Maybe Int
- nodeIndicesStatsFieldDataEvictions :: Int
- nodeIndicesStatsFieldDataMemory :: Bytes
- nodeIndicesStatsWarmerTotalTime :: NominalDiffTime
- nodeIndicesStatsWarmerTotal :: Int
- nodeIndicesStatsWarmerCurrent :: Int
- nodeIndicesStatsFlushTotalTime :: NominalDiffTime
- nodeIndicesStatsFlushTotal :: Int
- nodeIndicesStatsRefreshTotalTime :: NominalDiffTime
- nodeIndicesStatsRefreshTotal :: Int
- nodeIndicesStatsMergesTotalSize :: Bytes
- nodeIndicesStatsMergesTotalDocs :: Int
- nodeIndicesStatsMergesTotalTime :: NominalDiffTime
- nodeIndicesStatsMergesTotal :: Int
- nodeIndicesStatsMergesCurrentSize :: Bytes
- nodeIndicesStatsMergesCurrentDocs :: Int
- nodeIndicesStatsMergesCurrent :: Int
- nodeIndicesStatsSearchFetchCurrent :: Int
- nodeIndicesStatsSearchFetchTime :: NominalDiffTime
- nodeIndicesStatsSearchFetchTotal :: Int
- nodeIndicesStatsSearchQueryCurrent :: Int
- nodeIndicesStatsSearchQueryTime :: NominalDiffTime
- nodeIndicesStatsSearchQueryTotal :: Int
- nodeIndicesStatsSearchOpenContexts :: Int
- nodeIndicesStatsGetCurrent :: Int
- nodeIndicesStatsGetMissingTime :: NominalDiffTime
- nodeIndicesStatsGetMissingTotal :: Int
- nodeIndicesStatsGetExistsTime :: NominalDiffTime
- nodeIndicesStatsGetExistsTotal :: Int
- nodeIndicesStatsGetTime :: NominalDiffTime
- nodeIndicesStatsGetTotal :: Int
- nodeIndicesStatsIndexingThrottleTime :: Maybe NominalDiffTime
- nodeIndicesStatsIndexingIsThrottled :: Maybe Bool
- nodeIndicesStatsIndexingNoopUpdateTotal :: Maybe Int
- nodeIndicesStatsIndexingDeleteCurrent :: Int
- nodeIndicesStatsIndexingDeleteTime :: NominalDiffTime
- nodeIndicesStatsIndexingDeleteTotal :: Int
- nodeIndicesStatsIndexingIndexCurrent :: Int
- nodeIndicesStatsIndexingIndexTime :: NominalDiffTime
- nodeIndicesStatsIndexingTotal :: Int
- nodeIndicesStatsStoreThrottleTime :: Maybe NominalDiffTime
- nodeIndicesStatsStoreSize :: Bytes
- nodeIndicesStatsDocsDeleted :: Int
- nodeIndicesStatsDocsCount :: Int
- newtype EsAddress = EsAddress {}
- newtype PluginName = PluginName {
- pluginName :: Text
- data NodeInfo = NodeInfo {
- nodeInfoHTTPAddress :: Maybe EsAddress
- nodeInfoBuild :: BuildHash
- nodeInfoESVersion :: VersionNumber
- nodeInfoIP :: Server
- nodeInfoHost :: Server
- nodeInfoTransportAddress :: EsAddress
- nodeInfoName :: NodeName
- nodeInfoFullId :: FullNodeId
- nodeInfoPlugins :: [NodePluginInfo]
- nodeInfoHTTP :: NodeHTTPInfo
- nodeInfoTransport :: NodeTransportInfo
- nodeInfoNetwork :: Maybe NodeNetworkInfo
- nodeInfoThreadPool :: Map Text NodeThreadPoolInfo
- nodeInfoJVM :: NodeJVMInfo
- nodeInfoProcess :: NodeProcessInfo
- nodeInfoOS :: NodeOSInfo
- nodeInfoSettings :: Object
- data NodePluginInfo = NodePluginInfo {}
- data NodeHTTPInfo = NodeHTTPInfo {}
- data NodeTransportInfo = NodeTransportInfo {}
- data BoundTransportAddress = BoundTransportAddress {}
- data NodeNetworkInfo = NodeNetworkInfo {}
- newtype MacAddress = MacAddress {
- macAddress :: Text
- newtype NetworkInterfaceName = NetworkInterfaceName {}
- data NodeNetworkInterface = NodeNetworkInterface {}
- data NodeThreadPoolInfo = NodeThreadPoolInfo {}
- data ThreadPoolSize
- data ThreadPoolType
- data NodeJVMInfo = NodeJVMInfo {}
- newtype JVMMemoryPool = JVMMemoryPool {}
- newtype JVMGCCollector = JVMGCCollector {}
- data JVMMemoryInfo = JVMMemoryInfo {}
- newtype PID = PID {}
- data NodeOSInfo = NodeOSInfo {}
- data CPUInfo = CPUInfo {
- cpuCacheSize :: Bytes
- cpuCoresPerSocket :: Int
- cpuTotalSockets :: Int
- cpuTotalCores :: Int
- cpuMHZ :: Int
- cpuModel :: Text
- cpuVendor :: Text
- data NodeProcessInfo = NodeProcessInfo {}
- data FsSnapshotRepo = FsSnapshotRepo {}
- data SnapshotCreateSettings = SnapshotCreateSettings {}
- defaultSnapshotCreateSettings :: SnapshotCreateSettings
- data SnapshotSelection
- data SnapshotPattern
- data SnapshotInfo = SnapshotInfo {}
- data SnapshotShardFailure = SnapshotShardFailure {}
- newtype ShardId = ShardId {}
- newtype SnapshotName = SnapshotName {
- snapshotName :: Text
- data SnapshotState
- data SnapshotRestoreSettings = SnapshotRestoreSettings {
- snapRestoreWaitForCompletion :: Bool
- snapRestoreIndices :: Maybe IndexSelection
- snapRestoreIgnoreUnavailable :: Bool
- snapRestoreIncludeGlobalState :: Bool
- snapRestoreRenamePattern :: Maybe RestoreRenamePattern
- snapRestoreRenameReplacement :: Maybe (NonEmpty RestoreRenameToken)
- snapRestorePartial :: Bool
- snapRestoreIncludeAliases :: Bool
- snapRestoreIndexSettingsOverrides :: Maybe RestoreIndexSettings
- snapRestoreIgnoreIndexSettings :: Maybe (NonEmpty Text)
- defaultSnapshotRestoreSettings :: SnapshotRestoreSettings
- newtype RestoreRenamePattern = RestoreRenamePattern {}
- data RestoreRenameToken
- data RRGroupRefNum
- rrGroupRefNum :: RRGroupRefNum -> Int
- mkRRGroupRefNum :: Int -> Maybe RRGroupRefNum
- newtype RestoreIndexSettings = RestoreIndexSettings {}
- data Suggest = Suggest {}
- data SuggestType = SuggestTypePhraseSuggester PhraseSuggester
- data PhraseSuggester = PhraseSuggester {
- phraseSuggesterField :: FieldName
- phraseSuggesterGramSize :: Maybe Int
- phraseSuggesterRealWordErrorLikelihood :: Maybe Int
- phraseSuggesterConfidence :: Maybe Int
- phraseSuggesterMaxErrors :: Maybe Int
- phraseSuggesterSeparator :: Maybe Text
- phraseSuggesterSize :: Maybe Size
- phraseSuggesterAnalyzer :: Maybe Analyzer
- phraseSuggesterShardSize :: Maybe Int
- phraseSuggesterHighlight :: Maybe PhraseSuggesterHighlighter
- phraseSuggesterCollate :: Maybe PhraseSuggesterCollate
- phraseSuggesterCandidateGenerators :: [DirectGenerators]
- data PhraseSuggesterHighlighter = PhraseSuggesterHighlighter {}
- data PhraseSuggesterCollate = PhraseSuggesterCollate {}
- mkPhraseSuggester :: FieldName -> PhraseSuggester
- data SuggestOptions = SuggestOptions {}
- data SuggestResponse = SuggestResponse {}
- data NamedSuggestionResponse = NamedSuggestionResponse {
- nsrName :: Text
- nsrResponses :: [SuggestResponse]
- data DirectGenerators = DirectGenerators {
- directGeneratorsField :: FieldName
- directGeneratorsSize :: Maybe Int
- directGeneratorSuggestMode :: DirectGeneratorSuggestModeTypes
- directGeneratorMaxEdits :: Maybe Double
- directGeneratorPrefixLength :: Maybe Int
- directGeneratorMinWordLength :: Maybe Int
- directGeneratorMaxInspections :: Maybe Int
- directGeneratorMinDocFreq :: Maybe Double
- directGeneratorMaxTermFreq :: Maybe Double
- directGeneratorPreFilter :: Maybe Text
- directGeneratorPostFilter :: Maybe Text
- mkDirectGenerators :: FieldName -> DirectGenerators
- data DirectGeneratorSuggestModeTypes
- data Aggregation
- = TermsAgg TermsAggregation
- | CardinalityAgg CardinalityAggregation
- | DateHistogramAgg DateHistogramAggregation
- | ValueCountAgg ValueCountAggregation
- | FilterAgg FilterAggregation
- | DateRangeAgg DateRangeAggregation
- | MissingAgg MissingAggregation
- | TopHitsAgg TopHitsAggregation
- | StatsAgg StatisticsAggregation
- | SumAgg SumAggregation
- type Aggregations = Map Key Aggregation
- type AggregationResults = Map Key Value
- data BucketValue
- data Bucket a = Bucket {
- buckets :: [a]
- class BucketAggregation a where
- key :: a -> BucketValue
- docCount :: a -> Int
- aggs :: a -> Maybe AggregationResults
- data TermsAggregation = TermsAggregation {
- term :: Either Text Text
- termInclude :: Maybe TermInclusion
- termExclude :: Maybe TermInclusion
- termOrder :: Maybe TermOrder
- termMinDocCount :: Maybe Int
- termSize :: Maybe Int
- termShardSize :: Maybe Int
- termCollectMode :: Maybe CollectionMode
- termExecutionHint :: Maybe ExecutionHint
- termAggs :: Maybe Aggregations
- data MissingAggregation = MissingAggregation {}
- data ValueCountAggregation
- data FilterAggregation = FilterAggregation {}
- data CardinalityAggregation = CardinalityAggregation {}
- data DateHistogramAggregation = DateHistogramAggregation {}
- data DateRangeAggregation = DateRangeAggregation {}
- data DateRangeAggRange
- data DateMathExpr = DateMathExpr DateMathAnchor [DateMathModifier]
- data DateMathAnchor
- data DateMathModifier
- data DateMathUnit
- data TopHitsAggregation = TopHitsAggregation {}
- data StatisticsAggregation = StatisticsAggregation {}
- type SearchAfterKey = [Value]
- newtype CountQuery = CountQuery {
- countQuery :: Query
- data CountResponse = CountResponse {}
- data CountShards = CountShards {}
- data PointInTime = PointInTime {}
- data OpenPointInTimeResponse = OpenPointInTimeResponse {}
- data ClosePointInTime = ClosePointInTime {}
- data ClosePointInTimeResponse = ClosePointInTimeResponse {}
- newtype SumAggregation = SumAggregation {}
- data Highlights = Highlights {}
- data FieldHighlight = FieldHighlight FieldName (Maybe HighlightSettings)
- data HighlightSettings
- data PlainHighlight = PlainHighlight {}
- data PostingsHighlight = PostingsHighlight (Maybe CommonHighlight)
- data FastVectorHighlight = FastVectorHighlight {}
- data CommonHighlight = CommonHighlight {}
- data NonPostings = NonPostings {}
- data HighlightEncoder
- data HighlightTag
- = TagSchema Text
- | CustomTags ([Text], [Text])
- type HitHighlight = Map Text [Text]
- data MissingResult = MissingResult {}
- data TermsResult = TermsResult {}
- data DateHistogramResult = DateHistogramResult {}
- data DateRangeResult = DateRangeResult {}
- data TopHitResult a = TopHitResult {
- tarHits :: SearchHits a
- newtype EsUsername = EsUsername {
- esUsername :: Text
- newtype EsPassword = EsPassword {
- esPassword :: Text
- data Analysis = Analysis {}
- data AnalyzerDefinition = AnalyzerDefinition {}
- data TokenizerDefinition
- data TokenFilterDefinition
- = TokenFilterDefinitionLowercase (Maybe Language)
- | TokenFilterDefinitionUppercase (Maybe Language)
- | TokenFilterDefinitionApostrophe
- | TokenFilterDefinitionReverse
- | TokenFilterDefinitionSnowball Language
- | TokenFilterDefinitionShingle Shingle
- | TokenFilterDefinitionStemmer Language
- | TokenFilterDefinitionStop (Either Language [StopWord])
- | TokenFilterDefinitionEdgeNgram NgramFilter (Maybe EdgeNgramFilterSide)
- | TokenFilterDefinitionNgram NgramFilter
- | TokenFilterTruncate Int
- data CharFilterDefinition
- data Ngram = Ngram {
- ngramMinGram :: Int
- ngramMaxGram :: Int
- ngramTokenChars :: [TokenChar]
- data NgramFilter = NgramFilter {}
- data EdgeNgramFilterSide
- data TokenChar
- data Shingle = Shingle {}
- data Language
- = Arabic
- | Armenian
- | Basque
- | Bengali
- | Brazilian
- | Bulgarian
- | Catalan
- | Cjk
- | Czech
- | Danish
- | Dutch
- | English
- | Finnish
- | French
- | Galician
- | German
- | German2
- | Greek
- | Hindi
- | Hungarian
- | Indonesian
- | Irish
- | Italian
- | Kp
- | Latvian
- | Lithuanian
- | Lovins
- | Norwegian
- | Persian
- | Porter
- | Portuguese
- | Romanian
- | Russian
- | Sorani
- | Spanish
- | Swedish
- | Thai
- | Turkish
Documentation
defaultCache :: Cache Source #
defaultIndexSettings :: IndexSettings Source #
defaultIndexSettings is an IndexSettings with 3 shards and
2 replicas.
defaultIndexDocumentSettings :: IndexDocumentSettings Source #
Reasonable default settings. Chooses no version control and no parent.
mkMatchQuery :: FieldName -> QueryString -> MatchQuery Source #
mkMatchQuery is a convenience function that defaults the less common parameters,
enabling you to provide only the FieldName and QueryString to make a MatchQuery
mkMultiMatchQuery :: [FieldName] -> QueryString -> MultiMatchQuery Source #
mkMultiMatchQuery is a convenience function that defaults the less common parameters,
enabling you to provide only the list of FieldNames and QueryString to
make a MultiMatchQuery.
mkRangeQuery :: FieldName -> RangeValue -> RangeQuery Source #
mkAggregations :: Key -> Aggregation -> Aggregations Source #
mkDocVersion :: Int -> Maybe DocVersion Source #
Smart constructor for in-range doc version
docVersionNumber :: DocVersion -> Int Source #
toMissing :: Key -> AggregationResults -> Maybe MissingResult Source #
toTerms :: Key -> AggregationResults -> Maybe (Bucket TermsResult) Source #
toTopHits :: FromJSON a => Key -> AggregationResults -> Maybe (TopHitResult a) Source #
Instances
Common environment for Elasticsearch calls. Connections will be pipelined according to the provided HTTP connection manager.
mkBHEnv :: Server -> Manager -> BHEnv Source #
Create a BHEnv with all optional fields defaulted. HTTP hook
will be a noop. You can use the exported fields to customize
it further, e.g.:
> (mkBHEnv myServer myManager) { bhRequestHook = customHook }class (Functor m, Applicative m, MonadIO m) => MonadBH m where Source #
All API calls to Elasticsearch operate within
MonadBH
. The idea is that it can be easily embedded in your
own monad transformer stack. A default instance for a ReaderT and
alias BH is provided for the simple case.
Constructors
| Version | |
Fields | |
Instances
| Eq Version Source # | |
| Show Version Source # | |
| Generic Version Source # | |
| ToJSON Version Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| FromJSON Version Source # | |
| type Rep Version Source # | |
Defined in Database.Bloodhound.Internal.Client type Rep Version = D1 ('MetaData "Version" "Database.Bloodhound.Internal.Client" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "Version" 'PrefixI 'True) ((S1 ('MetaSel ('Just "number") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VersionNumber) :*: S1 ('MetaSel ('Just "build_hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BuildHash)) :*: (S1 ('MetaSel ('Just "build_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime) :*: (S1 ('MetaSel ('Just "build_snapshot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "lucene_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 VersionNumber))))) | |
newtype VersionNumber Source #
Traditional software versioning number
Constructors
| VersionNumber | |
Fields | |
Instances
Typically a 7 character hex string.
Instances
| Eq BuildHash Source # | |
| Ord BuildHash Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show BuildHash Source # | |
| Generic BuildHash Source # | |
| ToJSON BuildHash Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| FromJSON BuildHash Source # | |
| type Rep BuildHash Source # | |
Defined in Database.Bloodhound.Internal.Client | |
Status is a data type for describing the JSON body returned by
Elasticsearch when you query its status. This was deprecated in 1.2.0.
Constructors
| Status | |
Fields
| |
data IndexMappingsLimits Source #
'IndexMappingsLimits is used to configure index's limits. https://www.elastic.co/guide/en/elasticsearch/reference/master/mapping-settings-limit.html
Constructors
| IndexMappingsLimits | |
Instances
data IndexSettings Source #
IndexSettings is used to configure the shards and replicas when
you create an Elasticsearch Index.
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-create-index.html
Constructors
| IndexSettings | |
Instances
data UpdatableIndexSetting Source #
UpdatableIndexSetting are settings which may be updated after an index is created.
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html
Constructors
| NumberOfReplicas ReplicaCount | The number of replicas each shard has. |
| AutoExpandReplicas ReplicaBounds | |
| BlocksReadOnly Bool | Set to True to have the index read only. False to allow writes and metadata changes. |
| BlocksRead Bool | Set to True to disable read operations against the index. |
| BlocksWrite Bool | Set to True to disable write operations against the index. |
| BlocksMetaData Bool | Set to True to disable metadata operations against the index. |
| RefreshInterval NominalDiffTime | The async refresh interval of a shard |
| IndexConcurrency Int | |
| FailOnMergeFailure Bool | |
| TranslogFlushThresholdOps Int | When to flush on operations. |
| TranslogFlushThresholdSize Bytes | When to flush based on translog (bytes) size. |
| TranslogFlushThresholdPeriod NominalDiffTime | When to flush based on a period of not flushing. |
| TranslogDisableFlush Bool | Disables flushing. Note, should be set for a short interval and then enabled. |
| CacheFilterMaxSize (Maybe Bytes) | The maximum size of filter cache (per segment in shard). |
| CacheFilterExpire (Maybe NominalDiffTime) | The expire after access time for filter cache. |
| GatewaySnapshotInterval NominalDiffTime | The gateway snapshot interval (only applies to shared gateways). |
| RoutingAllocationInclude (NonEmpty NodeAttrFilter) | A node matching any rule will be allowed to host shards from the index. |
| RoutingAllocationExclude (NonEmpty NodeAttrFilter) | A node matching any rule will NOT be allowed to host shards from the index. |
| RoutingAllocationRequire (NonEmpty NodeAttrFilter) | Only nodes matching all rules will be allowed to host shards from the index. |
| RoutingAllocationEnable AllocationPolicy | Enables shard allocation for a specific index. |
| RoutingAllocationShardsPerNode ShardCount | Controls the total number of shards (replicas and primaries) allowed to be allocated on a single node. |
| RecoveryInitialShards InitialShardCount | When using local gateway a particular shard is recovered only if there can be allocated quorum shards in the cluster. |
| GCDeletes NominalDiffTime | |
| TTLDisablePurge Bool | Disables temporarily the purge of expired docs. |
| TranslogFSType FSType | |
| CompressionSetting Compression | |
| IndexCompoundFormat CompoundFormat | |
| IndexCompoundOnFlush Bool | |
| WarmerEnabled Bool | |
| MappingTotalFieldsLimit Int | |
| AnalysisSetting Analysis | Analysis is not a dynamic setting and can only be performed on a closed index. |
| UnassignedNodeLeftDelayedTimeout NominalDiffTime | Sets a delay to the allocation of replica shards which become unassigned because a node has left, giving them chance to return. See https://www.elastic.co/guide/en/elasticsearch/reference/5.6/delayed-allocation.html |
Instances
data IndexSettingsSummary Source #
Constructors
| IndexSettingsSummary | |
Instances
| Eq IndexSettingsSummary Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: IndexSettingsSummary -> IndexSettingsSummary -> Bool # (/=) :: IndexSettingsSummary -> IndexSettingsSummary -> Bool # | |
| Show IndexSettingsSummary Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> IndexSettingsSummary -> ShowS # show :: IndexSettingsSummary -> String # showList :: [IndexSettingsSummary] -> ShowS # | |
| FromJSON IndexSettingsSummary Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser IndexSettingsSummary # parseJSONList :: Value -> Parser [IndexSettingsSummary] # | |
data AllocationPolicy Source #
Constructors
| AllocAll | Allows shard allocation for all shards. |
| AllocPrimaries | Allows shard allocation only for primary shards. |
| AllocNewPrimaries | Allows shard allocation only for primary shards for new indices. |
| AllocNone | No shard allocation is allowed |
Instances
data Compression Source #
Constructors
| CompressionDefault | Compress with LZ4 |
| CompressionBest | Compress with DEFLATE. Elastic blogs that this can reduce disk use by 15%-25%. |
Instances
| Eq Compression Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show Compression Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> Compression -> ShowS # show :: Compression -> String # showList :: [Compression] -> ShowS # | |
| Generic Compression Source # | |
Defined in Database.Bloodhound.Internal.Client Associated Types type Rep Compression :: Type -> Type # | |
| ToJSON Compression Source # | |
Defined in Database.Bloodhound.Internal.Client Methods toJSON :: Compression -> Value # toEncoding :: Compression -> Encoding # toJSONList :: [Compression] -> Value # toEncodingList :: [Compression] -> Encoding # | |
| FromJSON Compression Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| type Rep Compression Source # | |
Defined in Database.Bloodhound.Internal.Client | |
data ReplicaBounds Source #
Constructors
| ReplicasBounded Int Int | |
| ReplicasLowerBounded Int | |
| ReplicasUnbounded |
Instances
| Eq ReplicaBounds Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: ReplicaBounds -> ReplicaBounds -> Bool # (/=) :: ReplicaBounds -> ReplicaBounds -> Bool # | |
| Show ReplicaBounds Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> ReplicaBounds -> ShowS # show :: ReplicaBounds -> String # showList :: [ReplicaBounds] -> ShowS # | |
| ToJSON ReplicaBounds Source # | |
Defined in Database.Bloodhound.Internal.Client Methods toJSON :: ReplicaBounds -> Value # toEncoding :: ReplicaBounds -> Encoding # toJSONList :: [ReplicaBounds] -> Value # toEncodingList :: [ReplicaBounds] -> Encoding # | |
| FromJSON ReplicaBounds Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser ReplicaBounds # parseJSONList :: Value -> Parser [ReplicaBounds] # | |
A measure of bytes used for various configurations. You may want
to use smart constructors like gigabytes for larger values.
>>>gigabytes 9Bytes 9000000000
>>>megabytes 9Bytes 9000000
>>>kilobytes 9Bytes 9000
Constructors
| FSSimple | |
| FSBuffered |
data InitialShardCount Source #
Instances
data NodeAttrFilter Source #
Constructors
| NodeAttrFilter | |
Fields | |
Instances
| Eq NodeAttrFilter Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeAttrFilter -> NodeAttrFilter -> Bool # (/=) :: NodeAttrFilter -> NodeAttrFilter -> Bool # | |
| Ord NodeAttrFilter Source # | |
Defined in Database.Bloodhound.Internal.Client Methods compare :: NodeAttrFilter -> NodeAttrFilter -> Ordering # (<) :: NodeAttrFilter -> NodeAttrFilter -> Bool # (<=) :: NodeAttrFilter -> NodeAttrFilter -> Bool # (>) :: NodeAttrFilter -> NodeAttrFilter -> Bool # (>=) :: NodeAttrFilter -> NodeAttrFilter -> Bool # max :: NodeAttrFilter -> NodeAttrFilter -> NodeAttrFilter # min :: NodeAttrFilter -> NodeAttrFilter -> NodeAttrFilter # | |
| Show NodeAttrFilter Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeAttrFilter -> ShowS # show :: NodeAttrFilter -> String # showList :: [NodeAttrFilter] -> ShowS # | |
newtype NodeAttrName Source #
Constructors
| NodeAttrName Text |
Instances
| Eq NodeAttrName Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Ord NodeAttrName Source # | |
Defined in Database.Bloodhound.Internal.Client Methods compare :: NodeAttrName -> NodeAttrName -> Ordering # (<) :: NodeAttrName -> NodeAttrName -> Bool # (<=) :: NodeAttrName -> NodeAttrName -> Bool # (>) :: NodeAttrName -> NodeAttrName -> Bool # (>=) :: NodeAttrName -> NodeAttrName -> Bool # max :: NodeAttrName -> NodeAttrName -> NodeAttrName # min :: NodeAttrName -> NodeAttrName -> NodeAttrName # | |
| Show NodeAttrName Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeAttrName -> ShowS # show :: NodeAttrName -> String # showList :: [NodeAttrName] -> ShowS # | |
data CompoundFormat Source #
Constructors
| CompoundFileFormat Bool | |
| MergeSegmentVsTotalIndex Double | percentage between 0 and 1 where 0 is false, 1 is true |
Instances
data IndexTemplate Source #
An IndexTemplate defines a template that will automatically be
applied to new indices created. The templates include both
IndexSettings and mappings, and a simple IndexPattern that
controls if the template will be applied to the index created.
Specify mappings as follows: [toJSON TweetMapping, ...]
https://www.elastic.co/guide/en/elasticsearch/reference/1.7/indices-templates.html
Constructors
| IndexTemplate | |
Fields | |
Instances
| ToJSON IndexTemplate Source # | |
Defined in Database.Bloodhound.Internal.Client Methods toJSON :: IndexTemplate -> Value # toEncoding :: IndexTemplate -> Encoding # toJSONList :: [IndexTemplate] -> Value # toEncodingList :: [IndexTemplate] -> Encoding # | |
Server is used with the client functions to point at the ES instance
EsResult describes the standard wrapper JSON document that you see in
successful Elasticsearch lookups or lookups that couldn't find the document.
Constructors
| EsResult | |
Fields
| |
data EsResultFound a Source #
EsResultFound contains the document and its metadata inside of an
EsResult when the document was successfully found.
Constructors
| EsResultFound | |
Fields
| |
Instances
| Eq a => Eq (EsResultFound a) Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: EsResultFound a -> EsResultFound a -> Bool # (/=) :: EsResultFound a -> EsResultFound a -> Bool # | |
| Show a => Show (EsResultFound a) Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> EsResultFound a -> ShowS # show :: EsResultFound a -> String # showList :: [EsResultFound a] -> ShowS # | |
| FromJSON a => FromJSON (EsResultFound a) Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser (EsResultFound a) # parseJSONList :: Value -> Parser [EsResultFound a] # | |
EsError is the generic type that will be returned when there was a
problem. If you can't parse the expected response, its a good idea to
try parsing this.
Constructors
| EsError | |
Fields
| |
data EsProtocolException Source #
EsProtocolException will be thrown if Bloodhound cannot parse a response
returned by the Elasticsearch server. If you encounter this error, please
verify that your domain data types and FromJSON instances are working properly
(for example, the a of '[Hit a]' in 'SearchResult.searchHits.hits'). If you're
sure that your mappings are correct, then this error may be an indication of an
incompatibility between Bloodhound and Elasticsearch. Please open a bug report
and be sure to include the exception body.
Constructors
| EsProtocolException | |
Fields
| |
Instances
| Eq EsProtocolException Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: EsProtocolException -> EsProtocolException -> Bool # (/=) :: EsProtocolException -> EsProtocolException -> Bool # | |
| Show EsProtocolException Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> EsProtocolException -> ShowS # show :: EsProtocolException -> String # showList :: [EsProtocolException] -> ShowS # | |
| Exception EsProtocolException Source # | |
Defined in Database.Bloodhound.Internal.Client Methods toException :: EsProtocolException -> SomeException # fromException :: SomeException -> Maybe EsProtocolException # | |
data IndexAlias Source #
Constructors
| IndexAlias | |
Fields | |
Instances
| Eq IndexAlias Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show IndexAlias Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> IndexAlias -> ShowS # show :: IndexAlias -> String # showList :: [IndexAlias] -> ShowS # | |
| ToJSON IndexAlias Source # | |
Defined in Database.Bloodhound.Internal.Client Methods toJSON :: IndexAlias -> Value # toEncoding :: IndexAlias -> Encoding # toJSONList :: [IndexAlias] -> Value # toEncodingList :: [IndexAlias] -> Encoding # | |
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 # | |
data IndexAliasAction Source #
Constructors
| AddAlias IndexAlias IndexAliasCreate | |
| RemoveAlias IndexAlias |
Instances
| Eq IndexAliasAction Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: IndexAliasAction -> IndexAliasAction -> Bool # (/=) :: IndexAliasAction -> IndexAliasAction -> Bool # | |
| Show IndexAliasAction Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> IndexAliasAction -> ShowS # show :: IndexAliasAction -> String # showList :: [IndexAliasAction] -> ShowS # | |
| ToJSON IndexAliasAction Source # | |
Defined in Database.Bloodhound.Internal.Client Methods toJSON :: IndexAliasAction -> Value # toEncoding :: IndexAliasAction -> Encoding # toJSONList :: [IndexAliasAction] -> Value # toEncodingList :: [IndexAliasAction] -> Encoding # | |
data IndexAliasCreate Source #
Constructors
| IndexAliasCreate | |
Fields | |
Instances
| Eq IndexAliasCreate Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: IndexAliasCreate -> IndexAliasCreate -> Bool # (/=) :: IndexAliasCreate -> IndexAliasCreate -> Bool # | |
| Show IndexAliasCreate Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> IndexAliasCreate -> ShowS # show :: IndexAliasCreate -> String # showList :: [IndexAliasCreate] -> ShowS # | |
| ToJSON IndexAliasCreate Source # | |
Defined in Database.Bloodhound.Internal.Client Methods toJSON :: IndexAliasCreate -> Value # toEncoding :: IndexAliasCreate -> Encoding # toJSONList :: [IndexAliasCreate] -> Value # toEncodingList :: [IndexAliasCreate] -> Encoding # | |
| FromJSON IndexAliasCreate Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser IndexAliasCreate # parseJSONList :: Value -> Parser [IndexAliasCreate] # | |
data IndexAliasSummary Source #
IndexAliasSummary is a summary of an index alias configured for a server.
Constructors
| IndexAliasSummary | |
Instances
| Eq IndexAliasSummary Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: IndexAliasSummary -> IndexAliasSummary -> Bool # (/=) :: IndexAliasSummary -> IndexAliasSummary -> Bool # | |
| Show IndexAliasSummary Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> IndexAliasSummary -> ShowS # show :: IndexAliasSummary -> String # showList :: [IndexAliasSummary] -> ShowS # | |
newtype IndexAliasesSummary Source #
Constructors
| IndexAliasesSummary | |
Fields | |
Instances
| Eq IndexAliasesSummary Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: IndexAliasesSummary -> IndexAliasesSummary -> Bool # (/=) :: IndexAliasesSummary -> IndexAliasesSummary -> Bool # | |
| Show IndexAliasesSummary Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> IndexAliasesSummary -> ShowS # show :: IndexAliasesSummary -> String # showList :: [IndexAliasesSummary] -> ShowS # | |
| FromJSON IndexAliasesSummary Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser IndexAliasesSummary # parseJSONList :: Value -> Parser [IndexAliasesSummary] # | |
data AliasRouting Source #
Constructors
| AllAliasRouting RoutingValue | |
| GranularAliasRouting (Maybe SearchAliasRouting) (Maybe IndexAliasRouting) |
Instances
| Eq AliasRouting Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show AliasRouting Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> AliasRouting -> ShowS # show :: AliasRouting -> String # showList :: [AliasRouting] -> ShowS # | |
| ToJSON AliasRouting Source # | |
Defined in Database.Bloodhound.Internal.Client Methods toJSON :: AliasRouting -> Value # toEncoding :: AliasRouting -> Encoding # toJSONList :: [AliasRouting] -> Value # toEncodingList :: [AliasRouting] -> Encoding # | |
| FromJSON AliasRouting Source # | |
Defined in Database.Bloodhound.Internal.Client | |
newtype SearchAliasRouting Source #
Constructors
| SearchAliasRouting (NonEmpty RoutingValue) |
Instances
newtype IndexAliasRouting Source #
Constructors
| IndexAliasRouting RoutingValue |
Instances
newtype RoutingValue Source #
Constructors
| RoutingValue | |
Fields
| |
Instances
| Eq RoutingValue Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show RoutingValue Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> RoutingValue -> ShowS # show :: RoutingValue -> String # showList :: [RoutingValue] -> ShowS # | |
| ToJSON RoutingValue Source # | |
Defined in Database.Bloodhound.Internal.Client Methods toJSON :: RoutingValue -> Value # toEncoding :: RoutingValue -> Encoding # toJSONList :: [RoutingValue] -> Value # toEncodingList :: [RoutingValue] -> Encoding # | |
| FromJSON RoutingValue Source # | |
Defined in Database.Bloodhound.Internal.Client | |
data DocVersion Source #
DocVersion is an integer version number for a document between 1
and 9.2e+18 used for .
Instances
newtype ExternalDocVersion Source #
ExternalDocVersion is a convenience wrapper if your code uses its
own version numbers instead of ones from ES.
Constructors
| ExternalDocVersion DocVersion |
Instances
data VersionControl Source #
VersionControl is specified when indexing documents as a
optimistic concurrency control.
Constructors
| NoVersionControl | Don't send a version. This is a pure overwrite. |
| InternalVersion DocVersion | Use the default ES versioning scheme. Only index the document if the version is the same as the one specified. Only applicable to updates, as you should be getting Version from a search result. |
| ExternalGT ExternalDocVersion | Use your own version numbering. Only index the document if the version is strictly higher OR the document doesn't exist. The given version will be used as the new version number for the stored document. N.B. All updates must increment this number, meaning there is some global, external ordering of updates. |
| ExternalGTE ExternalDocVersion | Use your own version numbering. Only index the document if the version is equal or higher than the stored version. Will succeed if there is no existing document. The given version will be used as the new version number for the stored document. Use with care, as this could result in data loss. |
| ForceVersion ExternalDocVersion | The document will always be indexed and the given version will be the new version. This is typically used for correcting errors. Use with care, as this could result in data loss. |
Instances
| Eq VersionControl Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: VersionControl -> VersionControl -> Bool # (/=) :: VersionControl -> VersionControl -> Bool # | |
| Ord VersionControl Source # | |
Defined in Database.Bloodhound.Internal.Client Methods compare :: VersionControl -> VersionControl -> Ordering # (<) :: VersionControl -> VersionControl -> Bool # (<=) :: VersionControl -> VersionControl -> Bool # (>) :: VersionControl -> VersionControl -> Bool # (>=) :: VersionControl -> VersionControl -> Bool # max :: VersionControl -> VersionControl -> VersionControl # min :: VersionControl -> VersionControl -> VersionControl # | |
| Show VersionControl Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> VersionControl -> ShowS # show :: VersionControl -> String # showList :: [VersionControl] -> ShowS # | |
data JoinRelation Source #
Instances
| Eq JoinRelation Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show JoinRelation Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> JoinRelation -> ShowS # show :: JoinRelation -> String # showList :: [JoinRelation] -> ShowS # | |
data IndexDocumentSettings Source #
IndexDocumentSettings are special settings supplied when indexing
a document. For the best backwards compatiblity when new fields are
added, you should probably prefer to start with defaultIndexDocumentSettings
Constructors
| IndexDocumentSettings | |
Fields | |
Instances
| Eq IndexDocumentSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: IndexDocumentSettings -> IndexDocumentSettings -> Bool # (/=) :: IndexDocumentSettings -> IndexDocumentSettings -> Bool # | |
| Show IndexDocumentSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> IndexDocumentSettings -> ShowS # show :: IndexDocumentSettings -> String # showList :: [IndexDocumentSettings] -> ShowS # | |
Constructors
Instances
Constructors
| Search | |
Fields
| |
data SearchType Source #
Constructors
| SearchTypeQueryThenFetch | |
| SearchTypeDfsQueryThenFetch |
Instances
| Eq SearchType Source # | |
Defined in Database.Bloodhound.Types | |
| Show SearchType Source # | |
Defined in Database.Bloodhound.Types Methods showsPrec :: Int -> SearchType -> ShowS # show :: SearchType -> String # showList :: [SearchType] -> ShowS # | |
| ToJSON SearchType Source # | |
Defined in Database.Bloodhound.Types Methods toJSON :: SearchType -> Value # toEncoding :: SearchType -> Encoding # toJSONList :: [SearchType] -> Value # toEncodingList :: [SearchType] -> Encoding # | |
| FromJSON SearchType Source # | |
Defined in Database.Bloodhound.Types | |
data SearchResult a Source #
Constructors
| SearchResult | |
Fields
| |
Instances
| Eq a => Eq (SearchResult a) Source # | |
Defined in Database.Bloodhound.Types Methods (==) :: SearchResult a -> SearchResult a -> Bool # (/=) :: SearchResult a -> SearchResult a -> Bool # | |
| Show a => Show (SearchResult a) Source # | |
Defined in Database.Bloodhound.Types Methods showsPrec :: Int -> SearchResult a -> ShowS # show :: SearchResult a -> String # showList :: [SearchResult a] -> ShowS # | |
| FromJSON a => FromJSON (SearchResult a) Source # | |
Defined in Database.Bloodhound.Types Methods parseJSON :: Value -> Parser (SearchResult a) # parseJSONList :: Value -> Parser [SearchResult a] # | |
data HitsTotalRelation Source #
Instances
| Eq HitsTotalRelation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: HitsTotalRelation -> HitsTotalRelation -> Bool # (/=) :: HitsTotalRelation -> HitsTotalRelation -> Bool # | |
| Show HitsTotalRelation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> HitsTotalRelation -> ShowS # show :: HitsTotalRelation -> String # showList :: [HitsTotalRelation] -> ShowS # | |
| FromJSON HitsTotalRelation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods parseJSON :: Value -> Parser HitsTotalRelation # parseJSONList :: Value -> Parser [HitsTotalRelation] # | |
Constructors
| HitsTotal | |
Fields
| |
data SearchHits a Source #
Instances
| Eq a => Eq (SearchHits a) Source # | |
Defined in Database.Bloodhound.Internal.Aggregation | |
| Show a => Show (SearchHits a) Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> SearchHits a -> ShowS # show :: SearchHits a -> String # showList :: [SearchHits a] -> ShowS # | |
| Semigroup (SearchHits a) Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (<>) :: SearchHits a -> SearchHits a -> SearchHits a # sconcat :: NonEmpty (SearchHits a) -> SearchHits a # stimes :: Integral b => b -> SearchHits a -> SearchHits a # | |
| Monoid (SearchHits a) Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods mempty :: SearchHits a # mappend :: SearchHits a -> SearchHits a -> SearchHits a # mconcat :: [SearchHits a] -> SearchHits a # | |
| FromJSON a => FromJSON (SearchHits a) Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods parseJSON :: Value -> Parser (SearchHits a) # parseJSONList :: Value -> Parser [SearchHits a] # | |
type TrackSortScores = Bool Source #
data PatternOrPatterns Source #
Constructors
| PopPattern Pattern | |
| PopPatterns [Pattern] |
Instances
| Eq PatternOrPatterns Source # | |
Defined in Database.Bloodhound.Types Methods (==) :: PatternOrPatterns -> PatternOrPatterns -> Bool # (/=) :: PatternOrPatterns -> PatternOrPatterns -> Bool # | |
| Read PatternOrPatterns Source # | |
Defined in Database.Bloodhound.Types Methods readsPrec :: Int -> ReadS PatternOrPatterns # readList :: ReadS [PatternOrPatterns] # | |
| Show PatternOrPatterns Source # | |
Defined in Database.Bloodhound.Types Methods showsPrec :: Int -> PatternOrPatterns -> ShowS # show :: PatternOrPatterns -> String # showList :: [PatternOrPatterns] -> ShowS # | |
| ToJSON PatternOrPatterns Source # | |
Defined in Database.Bloodhound.Types Methods toJSON :: PatternOrPatterns -> Value # toEncoding :: PatternOrPatterns -> Encoding # toJSONList :: [PatternOrPatterns] -> Value # toEncodingList :: [PatternOrPatterns] -> Encoding # | |
data ShardResult Source #
Constructors
| ShardResult | |
Fields
| |
Instances
| Eq ShardResult Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show ShardResult Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> ShardResult -> ShowS # show :: ShardResult -> String # showList :: [ShardResult] -> ShowS # | |
| FromJSON ShardResult Source # | |
Defined in Database.Bloodhound.Internal.Client | |
Constructors
| Hit | |
Fields
| |
As of Elastic 2.0, Filters are just Queries housed in a
Bool Query, and flagged in a different context.
Constructors
| MustMatch Term Cache | |
| MustNotMatch Term Cache | |
| ShouldMatch [Term] Cache |
Instances
Instances
| Eq Term Source # | |
| Show Term Source # | |
| Generic Term Source # | |
| ToJSON Term Source # | |
Defined in Database.Bloodhound.Internal.Query | |
| FromJSON Term Source # | |
| type Rep Term Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep Term = D1 ('MetaData "Term" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "Term" 'PrefixI 'True) (S1 ('MetaSel ('Just "termField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Key) :*: S1 ('MetaSel ('Just "termValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |
Instances
| Eq GeoPoint Source # | |
| Show GeoPoint Source # | |
| Generic GeoPoint Source # | |
| ToJSON GeoPoint Source # | |
Defined in Database.Bloodhound.Internal.Query | |
| type Rep GeoPoint Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep GeoPoint = D1 ('MetaData "GeoPoint" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "GeoPoint" 'PrefixI 'True) (S1 ('MetaSel ('Just "geoField") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "latLon") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LatLon))) | |
data GeoBoundingBoxConstraint Source #
Constructors
| GeoBoundingBoxConstraint | |
Fields | |
Instances
data GeoBoundingBox Source #
Constructors
| GeoBoundingBox | |
Fields
| |
Instances
data GeoFilterType Source #
Constructors
| GeoFilterMemory | |
| GeoFilterIndexed |
Instances
Constructors
| Distance | |
Fields
| |
Instances
| Eq Distance Source # | |
| Show Distance Source # | |
| Generic Distance Source # | |
| ToJSON Distance Source # | |
Defined in Database.Bloodhound.Internal.Query | |
| FromJSON Distance Source # | |
| type Rep Distance Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep Distance = D1 ('MetaData "Distance" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "Distance" 'PrefixI 'True) (S1 ('MetaSel ('Just "coefficient") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "unit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DistanceUnit))) | |
data DistanceUnit Source #
Constructors
| Miles | |
| Yards | |
| Feet | |
| Inches | |
| Kilometers | |
| Meters | |
| Centimeters | |
| Millimeters | |
| NauticalMiles |
Instances
data DistanceType Source #
Instances
data DistanceRange Source #
Constructors
| DistanceRange | |
Fields | |
Instances
| Eq DistanceRange Source # | |
Defined in Database.Bloodhound.Internal.Query Methods (==) :: DistanceRange -> DistanceRange -> Bool # (/=) :: DistanceRange -> DistanceRange -> Bool # | |
| Show DistanceRange Source # | |
Defined in Database.Bloodhound.Internal.Query Methods showsPrec :: Int -> DistanceRange -> ShowS # show :: DistanceRange -> String # showList :: [DistanceRange] -> ShowS # | |
| Generic DistanceRange Source # | |
Defined in Database.Bloodhound.Internal.Query Associated Types type Rep DistanceRange :: Type -> Type # | |
| type Rep DistanceRange Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep DistanceRange = D1 ('MetaData "DistanceRange" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "DistanceRange" 'PrefixI 'True) (S1 ('MetaSel ('Just "distanceFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Distance) :*: S1 ('MetaSel ('Just "distanceTo") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Distance))) | |
data OptimizeBbox Source #
Constructors
| OptimizeGeoFilterType GeoFilterType | |
| NoOptimizeBbox |
Instances
Instances
| Eq LatLon Source # | |
| Show LatLon Source # | |
| Generic LatLon Source # | |
| ToJSON LatLon Source # | |
Defined in Database.Bloodhound.Internal.Query | |
| FromJSON LatLon Source # | |
| type Rep LatLon Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep LatLon = D1 ('MetaData "LatLon" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "LatLon" 'PrefixI 'True) (S1 ('MetaSel ('Just "lat") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "lon") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) | |
data RangeValue Source #
Constructors
Instances
data RangeExecution Source #
Constructors
| RangeExecutionIndex | |
| RangeExecutionFielddata |
Instances
newtype LessThanEq Source #
Constructors
| LessThanEq Double |
Instances
| Eq LessThanEq Source # | |
Defined in Database.Bloodhound.Internal.Query | |
| Show LessThanEq Source # | |
Defined in Database.Bloodhound.Internal.Query Methods showsPrec :: Int -> LessThanEq -> ShowS # show :: LessThanEq -> String # showList :: [LessThanEq] -> ShowS # | |
| Generic LessThanEq Source # | |
Defined in Database.Bloodhound.Internal.Query Associated Types type Rep LessThanEq :: Type -> Type # | |
| type Rep LessThanEq Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep LessThanEq = D1 ('MetaData "LessThanEq" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'True) (C1 ('MetaCons "LessThanEq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) | |
newtype GreaterThan Source #
Constructors
| GreaterThan Double |
Instances
| Eq GreaterThan Source # | |
Defined in Database.Bloodhound.Internal.Query | |
| Show GreaterThan Source # | |
Defined in Database.Bloodhound.Internal.Query Methods showsPrec :: Int -> GreaterThan -> ShowS # show :: GreaterThan -> String # showList :: [GreaterThan] -> ShowS # | |
| Generic GreaterThan Source # | |
Defined in Database.Bloodhound.Internal.Query Associated Types type Rep GreaterThan :: Type -> Type # | |
| type Rep GreaterThan Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep GreaterThan = D1 ('MetaData "GreaterThan" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'True) (C1 ('MetaCons "GreaterThan" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) | |
newtype GreaterThanEq Source #
Constructors
| GreaterThanEq Double |
Instances
| Eq GreaterThanEq Source # | |
Defined in Database.Bloodhound.Internal.Query Methods (==) :: GreaterThanEq -> GreaterThanEq -> Bool # (/=) :: GreaterThanEq -> GreaterThanEq -> Bool # | |
| Show GreaterThanEq Source # | |
Defined in Database.Bloodhound.Internal.Query Methods showsPrec :: Int -> GreaterThanEq -> ShowS # show :: GreaterThanEq -> String # showList :: [GreaterThanEq] -> ShowS # | |
| Generic GreaterThanEq Source # | |
Defined in Database.Bloodhound.Internal.Query Associated Types type Rep GreaterThanEq :: Type -> Type # | |
| type Rep GreaterThanEq Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep GreaterThanEq = D1 ('MetaData "GreaterThanEq" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'True) (C1 ('MetaCons "GreaterThanEq" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double))) | |
newtype LessThanEqD Source #
Constructors
| LessThanEqD UTCTime |
Instances
| Eq LessThanEqD Source # | |
Defined in Database.Bloodhound.Internal.Query | |
| Show LessThanEqD Source # | |
Defined in Database.Bloodhound.Internal.Query Methods showsPrec :: Int -> LessThanEqD -> ShowS # show :: LessThanEqD -> String # showList :: [LessThanEqD] -> ShowS # | |
| Generic LessThanEqD Source # | |
Defined in Database.Bloodhound.Internal.Query Associated Types type Rep LessThanEqD :: Type -> Type # | |
| type Rep LessThanEqD Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep LessThanEqD = D1 ('MetaData "LessThanEqD" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'True) (C1 ('MetaCons "LessThanEqD" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime))) | |
newtype GreaterThanD Source #
Constructors
| GreaterThanD UTCTime |
Instances
| Eq GreaterThanD Source # | |
Defined in Database.Bloodhound.Internal.Query | |
| Show GreaterThanD Source # | |
Defined in Database.Bloodhound.Internal.Query Methods showsPrec :: Int -> GreaterThanD -> ShowS # show :: GreaterThanD -> String # showList :: [GreaterThanD] -> ShowS # | |
| Generic GreaterThanD Source # | |
Defined in Database.Bloodhound.Internal.Query Associated Types type Rep GreaterThanD :: Type -> Type # | |
| type Rep GreaterThanD Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep GreaterThanD = D1 ('MetaData "GreaterThanD" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'True) (C1 ('MetaCons "GreaterThanD" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime))) | |
newtype GreaterThanEqD Source #
Constructors
| GreaterThanEqD UTCTime |
Instances
data RegexpFlags Source #
Constructors
| AllRegexpFlags | |
| NoRegexpFlags | |
| SomeRegexpFlags (NonEmpty RegexpFlag) |
Instances
data RegexpFlag Source #
Constructors
| AnyString | |
| Automaton | |
| Complement | |
| Empty | |
| Intersection | |
| Interval |
Instances
FieldName is used all over the place wherever a specific field within
a document needs to be specified, usually in Querys or Filters.
newtype ScriptFields Source #
Constructors
| ScriptFields (KeyMap ScriptFieldValue) |
Instances
| Eq ScriptFields Source # | |
Defined in Database.Bloodhound.Common.Script | |
| Show ScriptFields Source # | |
Defined in Database.Bloodhound.Common.Script Methods showsPrec :: Int -> ScriptFields -> ShowS # show :: ScriptFields -> String # showList :: [ScriptFields] -> ShowS # | |
| ToJSON ScriptFields Source # | |
Defined in Database.Bloodhound.Common.Script Methods toJSON :: ScriptFields -> Value # toEncoding :: ScriptFields -> Encoding # toJSONList :: [ScriptFields] -> Value # toEncodingList :: [ScriptFields] -> Encoding # | |
| FromJSON ScriptFields Source # | |
Defined in Database.Bloodhound.Common.Script | |
type ScriptFieldValue = Value Source #
Constructors
| Script | |
Fields | |
Instances
| Eq Script Source # | |
| Show Script Source # | |
| Generic Script Source # | |
| ToJSON Script Source # | |
Defined in Database.Bloodhound.Common.Script | |
| FromJSON Script Source # | |
| type Rep Script Source # | |
Defined in Database.Bloodhound.Common.Script type Rep Script = D1 ('MetaData "Script" "Database.Bloodhound.Common.Script" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "Script" 'PrefixI 'True) (S1 ('MetaSel ('Just "scriptLanguage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ScriptLanguage)) :*: (S1 ('MetaSel ('Just "scriptSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ScriptSource) :*: S1 ('MetaSel ('Just "scriptParams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ScriptParams))))) | |
newtype ScriptLanguage Source #
Constructors
| ScriptLanguage Text |
Instances
data ScriptSource Source #
Constructors
| ScriptId Text | |
| ScriptInline Text |
Instances
| Eq ScriptSource Source # | |
Defined in Database.Bloodhound.Common.Script | |
| Show ScriptSource Source # | |
Defined in Database.Bloodhound.Common.Script Methods showsPrec :: Int -> ScriptSource -> ShowS # show :: ScriptSource -> String # showList :: [ScriptSource] -> ShowS # | |
| Generic ScriptSource Source # | |
Defined in Database.Bloodhound.Common.Script Associated Types type Rep ScriptSource :: Type -> Type # | |
| type Rep ScriptSource Source # | |
Defined in Database.Bloodhound.Common.Script type Rep ScriptSource = D1 ('MetaData "ScriptSource" "Database.Bloodhound.Common.Script" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "ScriptId" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: C1 ('MetaCons "ScriptInline" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) | |
newtype ScriptParams Source #
Constructors
| ScriptParams (KeyMap ScriptParamValue) |
Instances
| Eq ScriptParams Source # | |
Defined in Database.Bloodhound.Common.Script | |
| Show ScriptParams Source # | |
Defined in Database.Bloodhound.Common.Script Methods showsPrec :: Int -> ScriptParams -> ShowS # show :: ScriptParams -> String # showList :: [ScriptParams] -> ShowS # | |
| ToJSON ScriptParams Source # | |
Defined in Database.Bloodhound.Common.Script Methods toJSON :: ScriptParams -> Value # toEncoding :: ScriptParams -> Encoding # toJSONList :: [ScriptParams] -> Value # toEncodingList :: [ScriptParams] -> Encoding # | |
| FromJSON ScriptParams Source # | |
Defined in Database.Bloodhound.Common.Script | |
type ScriptParamValue = Value Source #
IndexName is used to describe which index to querycreatedelete
data IndexSelection Source #
IndexSelection is used for APIs which take a single index, a list of
indexes, or the special _all index.
Constructors
| IndexList (NonEmpty IndexName) | |
| AllIndexes |
Instances
| Eq IndexSelection Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: IndexSelection -> IndexSelection -> Bool # (/=) :: IndexSelection -> IndexSelection -> Bool # | |
| Show IndexSelection Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> IndexSelection -> ShowS # show :: IndexSelection -> String # showList :: [IndexSelection] -> ShowS # | |
data NodeSelection Source #
NodeSelection is used for most cluster APIs. See here for more details.
Constructors
| LocalNode | Whatever node receives this request |
| NodeList (NonEmpty NodeSelector) | |
| AllNodes |
Instances
| Eq NodeSelection Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeSelection -> NodeSelection -> Bool # (/=) :: NodeSelection -> NodeSelection -> Bool # | |
| Show NodeSelection Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeSelection -> ShowS # show :: NodeSelection -> String # showList :: [NodeSelection] -> ShowS # | |
data NodeSelector Source #
An exact match or pattern to identify a node. Note that All of these options support wildcarding, so your node name, server, attr name can all contain * characters to be a fuzzy match.
Constructors
| NodeByName NodeName | |
| NodeByFullNodeId FullNodeId | |
| NodeByHost Server | e.g. 10.0.0.1 or even 10.0.0.* |
| NodeByAttribute NodeAttrName Text | NodeAttrName can be a pattern, e.g. rack*. The value can too. |
Instances
| Eq NodeSelector Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show NodeSelector Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeSelector -> ShowS # show :: NodeSelector -> String # showList :: [NodeSelector] -> ShowS # | |
data ForceMergeIndexSettings Source #
ForceMergeIndexSettings is used to configure index optimization. See
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-forcemerge.html
for more info.
Constructors
| ForceMergeIndexSettings | |
Fields
| |
Instances
| Eq ForceMergeIndexSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: ForceMergeIndexSettings -> ForceMergeIndexSettings -> Bool # (/=) :: ForceMergeIndexSettings -> ForceMergeIndexSettings -> Bool # | |
| Show ForceMergeIndexSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> ForceMergeIndexSettings -> ShowS # show :: ForceMergeIndexSettings -> String # showList :: [ForceMergeIndexSettings] -> ShowS # | |
defaultForceMergeIndexSettings :: ForceMergeIndexSettings Source #
defaultForceMergeIndexSettings implements the default settings that
Elasticsearch uses for index optimization. maxNumSegments is Nothing,
onlyExpungeDeletes is False, and flushAfterOptimize is True.
newtype TemplateName Source #
TemplateName is used to describe which template to querycreatedelete
Constructors
| TemplateName Text |
Instances
newtype IndexPattern Source #
IndexPattern represents a pattern which is matched against index names
Constructors
| IndexPattern Text |
Instances
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.
CacheKey is used in RegexpFilter to key regex caching.
data BulkOperation Source #
BulkOperation is a sum type for expressing the four kinds of bulk
operation index, create, delete, and update. BulkIndex behaves like an
"upsert", BulkCreate will fail if a document already exists at the DocId.
Consult the Bulk API documentation
for further explanation.
Warning: Bulk operations suffixed with Auto rely on Elasticsearch to
generate the id. Often, people use auto-generated identifiers when
Elasticsearch is the only place that their data is stored. Do not let
Elasticsearch be the only place your data is stored. It does not guarantee
durability, and it may silently discard data.
This issue is
discussed further on github.
Constructors
| BulkIndex IndexName DocId Value | Create the document, replacing it if it already exists. |
| BulkIndexAuto IndexName Value | Create a document with an autogenerated id. |
| BulkIndexEncodingAuto IndexName Encoding | Create a document with an autogenerated id. Use fast JSON encoding. |
| BulkCreate IndexName DocId Value | Create a document, failing if it already exists. |
| BulkCreateEncoding IndexName DocId Encoding | Create a document, failing if it already exists. Use fast JSON encoding. |
| BulkDelete IndexName DocId | Delete the document |
| BulkUpdate IndexName DocId Value | Update the document, merging the new value with the existing one. |
| BulkUpsert IndexName DocId UpsertPayload [UpsertActionMetadata] | Update the document if it already exists, otherwise insert it. |
Instances
| Eq BulkOperation Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: BulkOperation -> BulkOperation -> Bool # (/=) :: BulkOperation -> BulkOperation -> Bool # | |
| Show BulkOperation Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> BulkOperation -> ShowS # show :: BulkOperation -> String # showList :: [BulkOperation] -> ShowS # | |
newtype ReplicaCount Source #
ReplicaCount is part of IndexSettings
Constructors
| ReplicaCount Int |
Instances
newtype ShardCount Source #
ShardCount is part of IndexSettings
Constructors
| ShardCount Int |
Instances
SortMode prescribes how to handle sorting array/multi-valued fields.
SortOrder is Ascending or Descending, as you might expect. These get
encoded into "asc" or "desc" when turned into JSON.
Constructors
| Ascending | |
| Descending |
The two main kinds of SortSpec are DefaultSortSpec and
GeoDistanceSortSpec. The latter takes a SortOrder, GeoPoint, and
DistanceUnit to express "nearness" to a single geographical point as a
sort specification.
data DefaultSort Source #
DefaultSort is usually the kind of SortSpec you'll want. There's a
mkSort convenience function for when you want to specify only the most
common parameters.
The ignoreUnmapped, when Just field is used to set the elastic unmapped_type
Constructors
| DefaultSort | |
Fields
| |
Instances
| Eq DefaultSort Source # | |
Defined in Database.Bloodhound.Internal.Sort | |
| Show DefaultSort Source # | |
Defined in Database.Bloodhound.Internal.Sort Methods showsPrec :: Int -> DefaultSort -> ShowS # show :: DefaultSort -> String # showList :: [DefaultSort] -> ShowS # | |
Missing prescribes how to handle missing fields. A missing field can be
sorted last, first, or using a custom value as a substitute.
Constructors
| LastMissing | |
| FirstMissing | |
| CustomMissing Text |
data OpenCloseIndex Source #
OpenCloseIndex is a sum type for opening and closing indices.
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-open-close.html
Constructors
| OpenIndex | |
| CloseIndex |
Instances
| Eq OpenCloseIndex Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: OpenCloseIndex -> OpenCloseIndex -> Bool # (/=) :: OpenCloseIndex -> OpenCloseIndex -> Bool # | |
| Show OpenCloseIndex Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> OpenCloseIndex -> ShowS # show :: OpenCloseIndex -> String # showList :: [OpenCloseIndex] -> ShowS # | |
data MatchQuery Source #
Constructors
Instances
data MultiMatchQuery Source #
Constructors
Instances
Constructors
| BoolQuery | |
Fields | |
Instances
data BoostingQuery Source #
Constructors
| BoostingQuery | |
Fields
| |
Instances
data CommonTermsQuery Source #
Constructors
Instances
data FunctionScoreQuery Source #
Constructors
| FunctionScoreQuery | |
Instances
Instances
| Eq BoostMode Source # | |
| Show BoostMode Source # | |
| Generic BoostMode Source # | |
| ToJSON BoostMode Source # | |
Defined in Database.Bloodhound.Common.Script | |
| FromJSON BoostMode Source # | |
| type Rep BoostMode Source # | |
Defined in Database.Bloodhound.Common.Script type Rep BoostMode = D1 ('MetaData "BoostMode" "Database.Bloodhound.Common.Script" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) ((C1 ('MetaCons "BoostModeMultiply" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BoostModeReplace" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BoostModeSum" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "BoostModeAvg" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "BoostModeMax" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "BoostModeMin" 'PrefixI 'False) (U1 :: Type -> Type)))) | |
Instances
| Eq ScoreMode Source # | |
| Show ScoreMode Source # | |
| Generic ScoreMode Source # | |
| ToJSON ScoreMode Source # | |
Defined in Database.Bloodhound.Common.Script | |
| FromJSON ScoreMode Source # | |
| type Rep ScoreMode Source # | |
Defined in Database.Bloodhound.Common.Script type Rep ScoreMode = D1 ('MetaData "ScoreMode" "Database.Bloodhound.Common.Script" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) ((C1 ('MetaCons "ScoreModeMultiply" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ScoreModeSum" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScoreModeAvg" 'PrefixI 'False) (U1 :: Type -> Type))) :+: (C1 ('MetaCons "ScoreModeFirst" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "ScoreModeMax" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScoreModeMin" 'PrefixI 'False) (U1 :: Type -> Type)))) | |
data FunctionScoreFunctions Source #
Constructors
| FunctionScoreSingle FunctionScoreFunction | |
| FunctionScoreMultiple (NonEmpty ComponentFunctionScoreFunction) |
Instances
data ComponentFunctionScoreFunction Source #
Constructors
| ComponentFunctionScoreFunction | |
Instances
data FunctionScoreFunction Source #
Constructors
| FunctionScoreFunctionScript Script | |
| FunctionScoreFunctionRandom Seed | |
| FunctionScoreFunctionFieldValueFactor FieldValueFactor |
Instances
data FieldValueFactor Source #
Constructors
| FieldValueFactor | |
Instances
data FactorModifier Source #
Constructors
| FactorModifierNone | |
| FactorModifierLog | |
| FactorModifierLog1p | |
| FactorModifierLog2p | |
| FactorModifierLn | |
| FactorModifierLn1p | |
| FactorModifierLn2p | |
| FactorModifierSquare | |
| FactorModifierSqrt | |
| FactorModifierReciprocal |
Instances
newtype FactorMissingFieldValue Source #
Constructors
| FactorMissingFieldValue Float |
Instances
data DisMaxQuery Source #
Constructors
| DisMaxQuery | |
Fields
| |
Instances
data FuzzyLikeThisQuery Source #
Constructors
| FuzzyLikeThisQuery | |
Instances
data FuzzyLikeFieldQuery Source #
Constructors
Instances
data FuzzyQuery Source #
Constructors
| FuzzyQuery | |
Instances
data HasChildQuery Source #
Constructors
| HasChildQuery | |
Instances
data HasParentQuery Source #
Constructors
| HasParentQuery | |
Instances
data IndicesQuery Source #
Constructors
| IndicesQuery | |
Fields | |
Instances
data MoreLikeThisQuery Source #
Constructors
Instances
data MoreLikeThisFieldQuery Source #
Constructors
Instances
data NestedQuery Source #
Constructors
| NestedQuery | |
Fields | |
Instances
data PrefixQuery Source #
Constructors
| PrefixQuery | |
Fields | |
Instances
data QueryStringQuery Source #
Constructors
Instances
data SimpleQueryStringQuery Source #
Constructors
Instances
data RangeQuery Source #
Constructors
| RangeQuery | |
Fields | |
Instances
data RegexpQuery Source #
Constructors
| RegexpQuery | |
Fields | |
Instances
newtype QueryString Source #
QueryString is used to wrap query text bodies, be they human written or not.
Constructors
| QueryString Text |
Instances
newtype SearchTemplateId Source #
Constructors
| SearchTemplateId Text |
Instances
| Eq SearchTemplateId Source # | |
Defined in Database.Bloodhound.Types Methods (==) :: SearchTemplateId -> SearchTemplateId -> Bool # (/=) :: SearchTemplateId -> SearchTemplateId -> Bool # | |
| Show SearchTemplateId Source # | |
Defined in Database.Bloodhound.Types Methods showsPrec :: Int -> SearchTemplateId -> ShowS # show :: SearchTemplateId -> String # showList :: [SearchTemplateId] -> ShowS # | |
| ToJSON SearchTemplateId Source # | |
Defined in Database.Bloodhound.Types Methods toJSON :: SearchTemplateId -> Value # toEncoding :: SearchTemplateId -> Encoding # toJSONList :: [SearchTemplateId] -> Value # toEncodingList :: [SearchTemplateId] -> Encoding # | |
newtype SearchTemplateSource Source #
Constructors
| SearchTemplateSource Text |
Instances
| Eq SearchTemplateSource Source # | |
Defined in Database.Bloodhound.Types Methods (==) :: SearchTemplateSource -> SearchTemplateSource -> Bool # (/=) :: SearchTemplateSource -> SearchTemplateSource -> Bool # | |
| Show SearchTemplateSource Source # | |
Defined in Database.Bloodhound.Types Methods showsPrec :: Int -> SearchTemplateSource -> ShowS # show :: SearchTemplateSource -> String # showList :: [SearchTemplateSource] -> ShowS # | |
| ToJSON SearchTemplateSource Source # | |
Defined in Database.Bloodhound.Types Methods toJSON :: SearchTemplateSource -> Value # toEncoding :: SearchTemplateSource -> Encoding # toJSONList :: [SearchTemplateSource] -> Value # toEncodingList :: [SearchTemplateSource] -> Encoding # | |
| FromJSON SearchTemplateSource Source # | |
Defined in Database.Bloodhound.Types Methods parseJSON :: Value -> Parser SearchTemplateSource # parseJSONList :: Value -> Parser [SearchTemplateSource] # | |
data SearchTemplate Source #
Constructors
| SearchTemplate | |
Instances
| Eq SearchTemplate Source # | |
Defined in Database.Bloodhound.Types Methods (==) :: SearchTemplate -> SearchTemplate -> Bool # (/=) :: SearchTemplate -> SearchTemplate -> Bool # | |
| Show SearchTemplate Source # | |
Defined in Database.Bloodhound.Types Methods showsPrec :: Int -> SearchTemplate -> ShowS # show :: SearchTemplate -> String # showList :: [SearchTemplate] -> ShowS # | |
| ToJSON SearchTemplate Source # | |
Defined in Database.Bloodhound.Types Methods toJSON :: SearchTemplate -> Value # toEncoding :: SearchTemplate -> Encoding # toJSONList :: [SearchTemplate] -> Value # toEncodingList :: [SearchTemplate] -> Encoding # | |
data GetTemplateScript Source #
Constructors
| GetTemplateScript | |
Instances
| Eq GetTemplateScript Source # | |
Defined in Database.Bloodhound.Types Methods (==) :: GetTemplateScript -> GetTemplateScript -> Bool # (/=) :: GetTemplateScript -> GetTemplateScript -> Bool # | |
| Show GetTemplateScript Source # | |
Defined in Database.Bloodhound.Types Methods showsPrec :: Int -> GetTemplateScript -> ShowS # show :: GetTemplateScript -> String # showList :: [GetTemplateScript] -> ShowS # | |
| FromJSON GetTemplateScript Source # | |
Defined in Database.Bloodhound.Types Methods parseJSON :: Value -> Parser GetTemplateScript # parseJSONList :: Value -> Parser [GetTemplateScript] # | |
newtype TemplateQueryKeyValuePairs Source #
Constructors
| TemplateQueryKeyValuePairs (KeyMap TemplateQueryValue) |
Instances
data WildcardQuery Source #
Constructors
| WildcardQuery | |
Fields | |
Instances
data BooleanOperator Source #
BooleanOperator is the usual And/Or operators with an ES compatible
JSON encoding baked in. Used all over the place.
Instances
data ZeroTermsQuery Source #
Constructors
| ZeroTermsNone | |
| ZeroTermsAll |
Instances
newtype CutoffFrequency Source #
Constructors
| CutoffFrequency Double |
Instances
newtype TokenFilter Source #
Constructors
| TokenFilter Text |
Instances
newtype CharFilter Source #
Constructors
| CharFilter Text |
Instances
newtype MaxExpansions Source #
Constructors
| MaxExpansions Int |
Instances
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.
data MatchQueryType Source #
Constructors
| MatchPhrase | |
| MatchPhrasePrefix |
Instances
data MultiMatchQueryType Source #
Constructors
| MultiMatchBestFields | |
| MultiMatchMostFields | |
| MultiMatchCrossFields | |
| MultiMatchPhrase | |
| MultiMatchPhrasePrefix |
Instances
newtype Tiebreaker Source #
Constructors
| Tiebreaker Double |
Instances
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
newtype DisableCoord Source #
Constructors
| DisableCoord Bool |
Instances
data CommonMinimumMatch Source #
Instances
data MinimumMatchHighLow Source #
Constructors
| MinimumMatchHighLow | |
Fields | |
Instances
newtype PrefixLength Source #
PrefixLength is the prefix length used in queries, defaults to 0.
Constructors
| PrefixLength Int |
Instances
Fuzziness value as a number or AUTO.
See:
https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#fuzziness
Constructors
| Fuzziness Double | |
| FuzzinessAuto |
Instances
| Eq Fuzziness Source # | |
| Show Fuzziness Source # | |
| Generic Fuzziness Source # | |
| ToJSON Fuzziness Source # | |
Defined in Database.Bloodhound.Internal.Query | |
| FromJSON Fuzziness Source # | |
| type Rep Fuzziness Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep Fuzziness = D1 ('MetaData "Fuzziness" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "Fuzziness" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)) :+: C1 ('MetaCons "FuzzinessAuto" 'PrefixI 'False) (U1 :: Type -> Type)) | |
newtype IgnoreTermFrequency Source #
Constructors
| IgnoreTermFrequency Bool |
Instances
newtype MaxQueryTerms Source #
Constructors
| MaxQueryTerms Int |
Instances
newtype AggregateParentScore Source #
Indicates whether the relevance score of a matching parent document is aggregated into its child documents.
Constructors
| AggregateParentScore Bool |
Instances
newtype IgnoreUnmapped Source #
Indicates whether to ignore an unmapped parent_type and not return any documents instead of an error.
Constructors
| IgnoreUnmapped Bool |
Instances
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
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
Constructors
| ScoreTypeMax | |
| ScoreTypeSum | |
| ScoreTypeAvg | |
| ScoreTypeNone |
Instances
| Eq ScoreType Source # | |
| Show ScoreType Source # | |
| Generic ScoreType Source # | |
| ToJSON ScoreType Source # | |
Defined in Database.Bloodhound.Internal.Query | |
| FromJSON ScoreType Source # | |
| type Rep ScoreType Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep ScoreType = D1 ('MetaData "ScoreType" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) ((C1 ('MetaCons "ScoreTypeMax" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScoreTypeSum" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ScoreTypeAvg" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScoreTypeNone" 'PrefixI 'False) (U1 :: Type -> Type))) | |
Constructors
| InnerHits | |
Fields | |
Instances
| Eq InnerHits Source # | |
| Show InnerHits Source # | |
| Generic InnerHits Source # | |
| ToJSON InnerHits Source # | |
Defined in Database.Bloodhound.Internal.Query | |
| FromJSON InnerHits Source # | |
| type Rep InnerHits Source # | |
Defined in Database.Bloodhound.Internal.Query type Rep InnerHits = D1 ('MetaData "InnerHits" "Database.Bloodhound.Internal.Query" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "InnerHits" 'PrefixI 'True) (S1 ('MetaSel ('Just "innerHitsFrom") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)) :*: S1 ('MetaSel ('Just "innerHitsSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Integer)))) | |
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
newtype BoostTerms Source #
Constructors
| BoostTerms Double |
Instances
newtype MaxWordLength Source #
Constructors
| MaxWordLength Int |
Instances
newtype MinWordLength Source #
Constructors
| MinWordLength Int |
Instances
newtype MaxDocFrequency Source #
Constructors
| MaxDocFrequency Int |
Instances
newtype MinDocFrequency Source #
Constructors
| MinDocFrequency Int |
Instances
newtype PhraseSlop Source #
PhraseSlop sets the default slop for phrases, 0 means exact
phrase matches. Default is 0.
Constructors
| PhraseSlop Int |
Instances
newtype MinimumTermFrequency Source #
Constructors
| MinimumTermFrequency Int |
Instances
newtype PercentMatch Source #
Constructors
| PercentMatch Double |
Instances
newtype FieldDefinition Source #
Constructors
| FieldDefinition | |
Instances
| Eq FieldDefinition Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: FieldDefinition -> FieldDefinition -> Bool # (/=) :: FieldDefinition -> FieldDefinition -> Bool # | |
| Show FieldDefinition Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> FieldDefinition -> ShowS # show :: FieldDefinition -> String # showList :: [FieldDefinition] -> ShowS # | |
data MappingField Source #
Constructors
| MappingField | |
Fields | |
Instances
| Eq MappingField Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show MappingField Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> MappingField -> ShowS # show :: MappingField -> String # showList :: [MappingField] -> ShowS # | |
Support for type reification of Mappings is currently incomplete, for
now the mapping API verbiage expects a ToJSONable blob.
Indexes have mappings, mappings are schemas for the documents contained in the index. I'd recommend having only one mapping per index, always having a mapping, and keeping different kinds of documents separated if possible.
Constructors
| Mapping | |
Fields | |
data UpsertActionMetadata Source #
Constructors
| UA_RetryOnConflict Int | |
| UA_Version Int |
Instances
| Eq UpsertActionMetadata Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: UpsertActionMetadata -> UpsertActionMetadata -> Bool # (/=) :: UpsertActionMetadata -> UpsertActionMetadata -> Bool # | |
| Show UpsertActionMetadata Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> UpsertActionMetadata -> ShowS # show :: UpsertActionMetadata -> String # showList :: [UpsertActionMetadata] -> ShowS # | |
data UpsertPayload Source #
Instances
| Eq UpsertPayload Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: UpsertPayload -> UpsertPayload -> Bool # (/=) :: UpsertPayload -> UpsertPayload -> Bool # | |
| Show UpsertPayload Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> UpsertPayload -> ShowS # show :: UpsertPayload -> String # showList :: [UpsertPayload] -> ShowS # | |
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
newtype LowercaseExpanded Source #
Constructors
| LowercaseExpanded Bool |
Instances
newtype GeneratePhraseQueries Source #
GeneratePhraseQueries defaults to false.
Constructors
| GeneratePhraseQueries Bool |
Instances
Locale is used for string conversions - defaults to ROOT.
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
newtype EnablePositionIncrements Source #
Constructors
| EnablePositionIncrements Bool |
Instances
data SimpleQueryFlag Source #
Constructors
Instances
data FieldOrFields Source #
Instances
class Semigroup a => Monoid a where #
The class of monoids (types with an associative binary operation that has an identity). Instances should satisfy the following:
- Right identity
x<>mempty= x- Left identity
mempty<>x = x- Associativity
x(<>(y<>z) = (x<>y)<>zSemigrouplaw)- Concatenation
mconcat=foldr(<>)mempty
The method names refer to the monoid of lists under concatenation, but there are many other instances.
Some types can be viewed as a monoid in more than one way,
e.g. both addition and multiplication on numbers.
In such cases we often define newtypes and make those instances
of Monoid, e.g. Sum and Product.
NOTE: Semigroup is a superclass of Monoid since base-4.11.0.0.
Minimal complete definition
Methods
Identity of mappend
>>>"Hello world" <> mempty"Hello world"
An associative operation
NOTE: This method is redundant and has the default
implementation since base-4.11.0.0.
Should it be implemented manually, since mappend = (<>)mappend is a synonym for
(<>), it is expected that the two functions are defined the same
way. In a future GHC release mappend will be removed from Monoid.
Fold a list using the monoid.
For most types, the default definition for mconcat will be
used, but the function is included in the class definition so
that an optimized version can be provided for specific types.
>>>mconcat ["Hello", " ", "Haskell", "!"]"Hello Haskell!"
Instances
| Monoid Ordering | Since: base-2.1 |
| Monoid () | Since: base-2.1 |
| Monoid ByteString | |
Defined in Data.ByteString.Internal Methods mempty :: ByteString # mappend :: ByteString -> ByteString -> ByteString # mconcat :: [ByteString] -> ByteString # | |
| Monoid ByteString | |
Defined in Data.ByteString.Lazy.Internal Methods mempty :: ByteString # mappend :: ByteString -> ByteString -> ByteString # mconcat :: [ByteString] -> ByteString # | |
| Monoid Builder | |
| Monoid Series | |
| Monoid Key | |
| Monoid More | |
| Monoid All | Since: base-2.1 |
| Monoid Any | Since: base-2.1 |
| Monoid ShortByteString | |
Defined in Data.ByteString.Short.Internal Methods mappend :: ShortByteString -> ShortByteString -> ShortByteString # mconcat :: [ShortByteString] -> ShortByteString # | |
| Monoid IntSet | |
| Monoid CookieJar | Since 1.9 |
| Monoid RequestBody | |
Defined in Network.HTTP.Client.Types Methods mempty :: RequestBody # mappend :: RequestBody -> RequestBody -> RequestBody # mconcat :: [RequestBody] -> RequestBody # | |
| Monoid Doc | |
| Monoid ByteArray | |
| Monoid ShortText | |
| Monoid CalendarDiffTime | Additive |
Defined in Data.Time.LocalTime.Internal.CalendarDiffTime Methods mappend :: CalendarDiffTime -> CalendarDiffTime -> CalendarDiffTime # mconcat :: [CalendarDiffTime] -> CalendarDiffTime # | |
| Monoid CalendarDiffDays | Additive |
Defined in Data.Time.Calendar.CalendarDiffDays Methods mappend :: CalendarDiffDays -> CalendarDiffDays -> CalendarDiffDays # mconcat :: [CalendarDiffDays] -> CalendarDiffDays # | |
| Monoid [a] | Since: base-2.1 |
| Semigroup a => Monoid (Maybe a) | Lift a semigroup into Since 4.11.0: constraint on inner Since: base-2.1 |
| Monoid a => Monoid (IO a) | Since: base-4.9.0.0 |
| Monoid p => Monoid (Par1 p) | Since: base-4.12.0.0 |
| Monoid a => Monoid (Solo a) | |
| Monoid (IResult a) | |
| Monoid (Result a) | |
| Monoid (Parser a) | |
| Monoid (KeyMap v) | |
| (Ord a, Bounded a) => Monoid (Min a) | Since: base-4.9.0.0 |
| (Ord a, Bounded a) => Monoid (Max a) | Since: base-4.9.0.0 |
| Monoid m => Monoid (WrappedMonoid m) | Since: base-4.9.0.0 |
Defined in Data.Semigroup Methods mempty :: WrappedMonoid m # mappend :: WrappedMonoid m -> WrappedMonoid m -> WrappedMonoid m # mconcat :: [WrappedMonoid m] -> WrappedMonoid m # | |
| Semigroup a => Monoid (Option a) | Since: base-4.9.0.0 |
| Monoid a => Monoid (Identity a) | Since: base-4.9.0.0 |
| Monoid (First a) | Since: base-2.1 |
| Monoid (Last a) | Since: base-2.1 |
| Monoid a => Monoid (Dual a) | Since: base-2.1 |
| Monoid (Endo a) | Since: base-2.1 |
| Num a => Monoid (Sum a) | Since: base-2.1 |
| Num a => Monoid (Product a) | Since: base-2.1 |
| Monoid a => Monoid (Down a) | Since: base-4.11.0.0 |
| Monoid s => Monoid (CI s) | |
| Monoid (IntMap a) | |
| Monoid (Seq a) | |
| Ord a => Monoid (Set a) | |
| Monoid (DList a) | |
| Monoid (Doc a) | |
| Monoid (PrimArray a) | Since: primitive-0.6.4.0 |
| Monoid (SmallArray a) | |
Defined in Data.Primitive.SmallArray Methods mempty :: SmallArray a # mappend :: SmallArray a -> SmallArray a -> SmallArray a # mconcat :: [SmallArray a] -> SmallArray a # | |
| Monoid (Array a) | |
| Semigroup a => Monoid (Maybe a) | |
| (Hashable a, Eq a) => Monoid (HashSet a) | O(n+m) To obtain good performance, the smaller set must be presented as the first argument. Examples
|
| Storable a => Monoid (Vector a) | |
| Prim a => Monoid (Vector a) | |
| Monoid (Vector a) | |
| Monoid (MergeSet a) | |
| Monoid (SearchHits a) Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods mempty :: SearchHits a # mappend :: SearchHits a -> SearchHits a -> SearchHits a # mconcat :: [SearchHits a] -> SearchHits a # | |
| Monoid b => Monoid (a -> b) | Since: base-2.1 |
| Monoid (U1 p) | Since: base-4.12.0.0 |
| (Monoid a, Monoid b) => Monoid (a, b) | Since: base-2.1 |
| Monoid a => Monoid (ST s a) | Since: base-4.11.0.0 |
| Ord k => Monoid (Map k v) | |
| (Eq k, Hashable k) => Monoid (HashMap k v) | If a key occurs in both maps, the mapping from the first will be the mapping in the result. Examples
|
| Monoid (Parser i a) | |
| Monoid (Proxy s) | Since: base-4.7.0.0 |
| (Monoid a, Monoid b) => Monoid (Pair a b) | |
| Monoid (f p) => Monoid (Rec1 f p) | Since: base-4.12.0.0 |
| (Monoid a, Monoid b, Monoid c) => Monoid (a, b, c) | Since: base-2.1 |
| Monoid a => Monoid (Const a b) | Since: base-4.9.0.0 |
| (Applicative f, Monoid a) => Monoid (Ap f a) | Since: base-4.12.0.0 |
| Alternative f => Monoid (Alt f a) | Since: base-4.8.0.0 |
| (Semigroup a, Monoid a) => Monoid (Tagged s a) | |
| Monoid c => Monoid (K1 i c p) | Since: base-4.12.0.0 |
| (Monoid (f p), Monoid (g p)) => Monoid ((f :*: g) p) | Since: base-4.12.0.0 |
| (Monoid a, Monoid b, Monoid c, Monoid d) => Monoid (a, b, c, d) | Since: base-2.1 |
| Monoid (f p) => Monoid (M1 i c f p) | Since: base-4.12.0.0 |
| Monoid (f (g p)) => Monoid ((f :.: g) p) | Since: base-4.12.0.0 |
| (Monoid a, Monoid b, Monoid c, Monoid d, Monoid e) => Monoid (a, b, c, d, e) | Since: base-2.1 |
A type that can be converted to JSON.
Instances in general must specify toJSON and should (but don't need
to) specify toEncoding.
An example type and instance:
-- Allow ourselves to writeTextliterals. {-# LANGUAGE OverloadedStrings #-} data Coord = Coord { x :: Double, y :: Double } instanceToJSONCoord wheretoJSON(Coord x y) =object["x".=x, "y".=y]toEncoding(Coord x y) =pairs("x".=x<>"y".=y)
Instead of manually writing your ToJSON instance, there are two options
to do it automatically:
- Data.Aeson.TH provides Template Haskell functions which will derive an instance at compile time. The generated instance is optimized for your type so it will probably be more efficient than the following option.
- The compiler can provide a default generic implementation for
toJSON.
To use the second, simply add a deriving clause to your
datatype and declare a GenericToJSON instance. If you require nothing other than
defaultOptions, it is sufficient to write (and this is the only
alternative where the default toJSON implementation is sufficient):
{-# LANGUAGE DeriveGeneric #-}
import GHC.Generics
data Coord = Coord { x :: Double, y :: Double } deriving Generic
instance ToJSON Coord where
toEncoding = genericToEncoding defaultOptions
If on the other hand you wish to customize the generic decoding, you have to implement both methods:
customOptions =defaultOptions{fieldLabelModifier=maptoUpper} instanceToJSONCoord wheretoJSON=genericToJSONcustomOptionstoEncoding=genericToEncodingcustomOptions
Previous versions of this library only had the toJSON method. Adding
toEncoding had two reasons:
- toEncoding is more efficient for the common case that the output of
toJSONis directly serialized to aByteString. Further, expressing either method in terms of the other would be non-optimal. - The choice of defaults allows a smooth transition for existing users:
Existing instances that do not define
toEncodingstill compile and have the correct semantics. This is ensured by making the default implementation oftoEncodingusetoJSON. This produces correct results, but since it performs an intermediate conversion to aValue, it will be less efficient than directly emitting anEncoding. (this also means that specifying nothing more thaninstance ToJSON Coordwould be sufficient as a generically decoding instance, but there probably exists no good reason to not specifytoEncodingin new instances.)
Minimal complete definition
Nothing
Methods
Convert a Haskell value to a JSON-friendly intermediate type.
toEncoding :: a -> Encoding #
Encode a Haskell value as JSON.
The default implementation of this method creates an
intermediate Value using toJSON. This provides
source-level compatibility for people upgrading from older
versions of this library, but obviously offers no performance
advantage.
To benefit from direct encoding, you must provide an
implementation for this method. The easiest way to do so is by
having your types implement Generic using the DeriveGeneric
extension, and then have GHC generate a method body as follows.
instanceToJSONCoord wheretoEncoding=genericToEncodingdefaultOptions
toJSONList :: [a] -> Value #
toEncodingList :: [a] -> Encoding #
Instances
data TimeInterval Source #
Instances
| Eq TimeInterval Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Read TimeInterval Source # | |
Defined in Database.Bloodhound.Internal.Client Methods readsPrec :: Int -> ReadS TimeInterval # readList :: ReadS [TimeInterval] # | |
| Show TimeInterval Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> TimeInterval -> ShowS # show :: TimeInterval -> String # showList :: [TimeInterval] -> ShowS # | |
data ExecutionHint Source #
Constructors
| GlobalOrdinals | |
| Map |
Instances
| Eq ExecutionHint Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: ExecutionHint -> ExecutionHint -> Bool # (/=) :: ExecutionHint -> ExecutionHint -> Bool # | |
| Show ExecutionHint Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> ExecutionHint -> ShowS # show :: ExecutionHint -> String # showList :: [ExecutionHint] -> ShowS # | |
| ToJSON ExecutionHint Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods toJSON :: ExecutionHint -> Value # toEncoding :: ExecutionHint -> Encoding # toJSONList :: [ExecutionHint] -> Value # toEncodingList :: [ExecutionHint] -> Encoding # | |
data CollectionMode Source #
Constructors
| BreadthFirst | |
| DepthFirst |
Instances
| Eq CollectionMode Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: CollectionMode -> CollectionMode -> Bool # (/=) :: CollectionMode -> CollectionMode -> Bool # | |
| Show CollectionMode Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> CollectionMode -> ShowS # show :: CollectionMode -> String # showList :: [CollectionMode] -> ShowS # | |
| ToJSON CollectionMode Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods toJSON :: CollectionMode -> Value # toEncoding :: CollectionMode -> Encoding # toJSONList :: [CollectionMode] -> Value # toEncodingList :: [CollectionMode] -> Encoding # | |
Constructors
| TermOrder | |
Fields | |
data TermInclusion Source #
Constructors
| TermInclusion Text | |
| TermPattern Text Text |
Instances
| Eq TermInclusion Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: TermInclusion -> TermInclusion -> Bool # (/=) :: TermInclusion -> TermInclusion -> Bool # | |
| Show TermInclusion Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> TermInclusion -> ShowS # show :: TermInclusion -> String # showList :: [TermInclusion] -> ShowS # | |
| ToJSON TermInclusion Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods toJSON :: TermInclusion -> Value # toEncoding :: TermInclusion -> Encoding # toJSONList :: [TermInclusion] -> Value # toEncodingList :: [TermInclusion] -> Encoding # | |
data SnapshotRepoSelection Source #
Constructors
| SnapshotRepoList (NonEmpty SnapshotRepoPattern) | |
| AllSnapshotRepos |
Instances
| Eq SnapshotRepoSelection Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotRepoSelection -> SnapshotRepoSelection -> Bool # (/=) :: SnapshotRepoSelection -> SnapshotRepoSelection -> Bool # | |
| Show SnapshotRepoSelection Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotRepoSelection -> ShowS # show :: SnapshotRepoSelection -> String # showList :: [SnapshotRepoSelection] -> ShowS # | |
data GenericSnapshotRepo Source #
A generic representation of a snapshot repo. This is what gets
sent to and parsed from the server. For repo types enabled by
plugins that aren't exported by this library, consider making a
custom type which implements SnapshotRepo. If it is a common repo
type, consider submitting a pull request to have it included in the
library proper
Constructors
| GenericSnapshotRepo | |
Instances
| Eq GenericSnapshotRepo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: GenericSnapshotRepo -> GenericSnapshotRepo -> Bool # (/=) :: GenericSnapshotRepo -> GenericSnapshotRepo -> Bool # | |
| Show GenericSnapshotRepo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> GenericSnapshotRepo -> ShowS # show :: GenericSnapshotRepo -> String # showList :: [GenericSnapshotRepo] -> ShowS # | |
| SnapshotRepo GenericSnapshotRepo Source # | |
class SnapshotRepo r where Source #
Law: fromGSnapshotRepo (toGSnapshotRepo r) == Right r
Methods
toGSnapshotRepo :: r -> GenericSnapshotRepo Source #
fromGSnapshotRepo :: GenericSnapshotRepo -> Either SnapshotRepoConversionError r Source #
data SnapshotRepoConversionError Source #
Constructors
| RepoTypeMismatch SnapshotRepoType SnapshotRepoType | Expected type and actual type |
| OtherRepoConversionError Text |
Instances
| Eq SnapshotRepoConversionError Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotRepoConversionError -> SnapshotRepoConversionError -> Bool # (/=) :: SnapshotRepoConversionError -> SnapshotRepoConversionError -> Bool # | |
| Show SnapshotRepoConversionError Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotRepoConversionError -> ShowS # show :: SnapshotRepoConversionError -> String # showList :: [SnapshotRepoConversionError] -> ShowS # | |
| Exception SnapshotRepoConversionError Source # | |
newtype SnapshotRepoType Source #
Constructors
| SnapshotRepoType | |
Fields | |
Instances
newtype GenericSnapshotRepoSettings Source #
Opaque representation of snapshot repo settings. Instances of
SnapshotRepo will produce this.
Constructors
| GenericSnapshotRepoSettings | |
Fields | |
Instances
newtype SnapshotRepoUpdateSettings Source #
Constructors
| SnapshotRepoUpdateSettings | |
Fields
| |
Instances
| Eq SnapshotRepoUpdateSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotRepoUpdateSettings -> SnapshotRepoUpdateSettings -> Bool # (/=) :: SnapshotRepoUpdateSettings -> SnapshotRepoUpdateSettings -> Bool # | |
| Show SnapshotRepoUpdateSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotRepoUpdateSettings -> ShowS # show :: SnapshotRepoUpdateSettings -> String # showList :: [SnapshotRepoUpdateSettings] -> ShowS # | |
defaultSnapshotRepoUpdateSettings :: SnapshotRepoUpdateSettings Source #
Reasonable defaults for repo creation/update
- repoUpdateVerify True
newtype SnapshotRepoName Source #
The unique name of a snapshot repository.
Constructors
| SnapshotRepoName | |
Fields | |
Instances
data SnapshotRepoPattern Source #
Either specifies an exact repo name or one with globs in it,
e.g. RepoPattern "foo*" NOTE: Patterns are not supported on ES < 1.7
Constructors
| ExactRepo SnapshotRepoName | |
| RepoPattern Text |
Instances
| Eq SnapshotRepoPattern Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotRepoPattern -> SnapshotRepoPattern -> Bool # (/=) :: SnapshotRepoPattern -> SnapshotRepoPattern -> Bool # | |
| Show SnapshotRepoPattern Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotRepoPattern -> ShowS # show :: SnapshotRepoPattern -> String # showList :: [SnapshotRepoPattern] -> ShowS # | |
newtype SnapshotVerification Source #
The result of running verifySnapshotRepo.
Constructors
| SnapshotVerification | |
Instances
| Eq SnapshotVerification Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotVerification -> SnapshotVerification -> Bool # (/=) :: SnapshotVerification -> SnapshotVerification -> Bool # | |
| Show SnapshotVerification Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotVerification -> ShowS # show :: SnapshotVerification -> String # showList :: [SnapshotVerification] -> ShowS # | |
| FromJSON SnapshotVerification Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser SnapshotVerification # parseJSONList :: Value -> Parser [SnapshotVerification] # | |
data SnapshotNodeVerification Source #
A node that has verified a snapshot
Constructors
| SnapshotNodeVerification | |
Fields | |
Instances
| Eq SnapshotNodeVerification Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotNodeVerification -> SnapshotNodeVerification -> Bool # (/=) :: SnapshotNodeVerification -> SnapshotNodeVerification -> Bool # | |
| Show SnapshotNodeVerification Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotNodeVerification -> ShowS # show :: SnapshotNodeVerification -> String # showList :: [SnapshotNodeVerification] -> ShowS # | |
newtype FullNodeId Source #
Unique, automatically-generated name assigned to nodes that are usually returned in node-oriented APIs.
Constructors
| FullNodeId | |
Fields
| |
Instances
| Eq FullNodeId Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Ord FullNodeId Source # | |
Defined in Database.Bloodhound.Internal.Client Methods compare :: FullNodeId -> FullNodeId -> Ordering # (<) :: FullNodeId -> FullNodeId -> Bool # (<=) :: FullNodeId -> FullNodeId -> Bool # (>) :: FullNodeId -> FullNodeId -> Bool # (>=) :: FullNodeId -> FullNodeId -> Bool # max :: FullNodeId -> FullNodeId -> FullNodeId # min :: FullNodeId -> FullNodeId -> FullNodeId # | |
| Show FullNodeId Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> FullNodeId -> ShowS # show :: FullNodeId -> String # showList :: [FullNodeId] -> ShowS # | |
| FromJSON FullNodeId Source # | |
Defined in Database.Bloodhound.Internal.Client | |
A human-readable node name that is supplied by the user in the node config or automatically generated by Elasticsearch.
newtype ClusterName Source #
Constructors
| ClusterName | |
Fields
| |
Instances
| Eq ClusterName Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Ord ClusterName Source # | |
Defined in Database.Bloodhound.Internal.Client Methods compare :: ClusterName -> ClusterName -> Ordering # (<) :: ClusterName -> ClusterName -> Bool # (<=) :: ClusterName -> ClusterName -> Bool # (>) :: ClusterName -> ClusterName -> Bool # (>=) :: ClusterName -> ClusterName -> Bool # max :: ClusterName -> ClusterName -> ClusterName # min :: ClusterName -> ClusterName -> ClusterName # | |
| Show ClusterName Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> ClusterName -> ShowS # show :: ClusterName -> String # showList :: [ClusterName] -> ShowS # | |
| FromJSON ClusterName Source # | |
Defined in Database.Bloodhound.Internal.Client | |
Constructors
| NodesInfo | |
Fields
| |
data NodesStats Source #
Constructors
| NodesStats | |
Fields | |
Instances
| Eq NodesStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show NodesStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodesStats -> ShowS # show :: NodesStats -> String # showList :: [NodesStats] -> ShowS # | |
| FromJSON NodesStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
Constructors
data NodeBreakersStats Source #
Constructors
| NodeBreakersStats | |
Instances
| Eq NodeBreakersStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeBreakersStats -> NodeBreakersStats -> Bool # (/=) :: NodeBreakersStats -> NodeBreakersStats -> Bool # | |
| Show NodeBreakersStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeBreakersStats -> ShowS # show :: NodeBreakersStats -> String # showList :: [NodeBreakersStats] -> ShowS # | |
| FromJSON NodeBreakersStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeBreakersStats # parseJSONList :: Value -> Parser [NodeBreakersStats] # | |
data NodeBreakerStats Source #
Constructors
| NodeBreakerStats | |
Fields | |
Instances
| Eq NodeBreakerStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeBreakerStats -> NodeBreakerStats -> Bool # (/=) :: NodeBreakerStats -> NodeBreakerStats -> Bool # | |
| Show NodeBreakerStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeBreakerStats -> ShowS # show :: NodeBreakerStats -> String # showList :: [NodeBreakerStats] -> ShowS # | |
| FromJSON NodeBreakerStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeBreakerStats # parseJSONList :: Value -> Parser [NodeBreakerStats] # | |
data NodeHTTPStats Source #
Constructors
| NodeHTTPStats | |
Fields | |
Instances
| Eq NodeHTTPStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeHTTPStats -> NodeHTTPStats -> Bool # (/=) :: NodeHTTPStats -> NodeHTTPStats -> Bool # | |
| Show NodeHTTPStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeHTTPStats -> ShowS # show :: NodeHTTPStats -> String # showList :: [NodeHTTPStats] -> ShowS # | |
| FromJSON NodeHTTPStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeHTTPStats # parseJSONList :: Value -> Parser [NodeHTTPStats] # | |
data NodeTransportStats Source #
Constructors
| NodeTransportStats | |
Fields | |
Instances
| Eq NodeTransportStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeTransportStats -> NodeTransportStats -> Bool # (/=) :: NodeTransportStats -> NodeTransportStats -> Bool # | |
| Show NodeTransportStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeTransportStats -> ShowS # show :: NodeTransportStats -> String # showList :: [NodeTransportStats] -> ShowS # | |
| FromJSON NodeTransportStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeTransportStats # parseJSONList :: Value -> Parser [NodeTransportStats] # | |
data NodeFSStats Source #
Constructors
| NodeFSStats | |
Fields | |
Instances
| Eq NodeFSStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show NodeFSStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeFSStats -> ShowS # show :: NodeFSStats -> String # showList :: [NodeFSStats] -> ShowS # | |
| FromJSON NodeFSStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
data NodeDataPathStats Source #
Constructors
Instances
| Eq NodeDataPathStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeDataPathStats -> NodeDataPathStats -> Bool # (/=) :: NodeDataPathStats -> NodeDataPathStats -> Bool # | |
| Show NodeDataPathStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeDataPathStats -> ShowS # show :: NodeDataPathStats -> String # showList :: [NodeDataPathStats] -> ShowS # | |
| FromJSON NodeDataPathStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeDataPathStats # parseJSONList :: Value -> Parser [NodeDataPathStats] # | |
data NodeFSTotalStats Source #
Constructors
Instances
| Eq NodeFSTotalStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeFSTotalStats -> NodeFSTotalStats -> Bool # (/=) :: NodeFSTotalStats -> NodeFSTotalStats -> Bool # | |
| Show NodeFSTotalStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeFSTotalStats -> ShowS # show :: NodeFSTotalStats -> String # showList :: [NodeFSTotalStats] -> ShowS # | |
| FromJSON NodeFSTotalStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeFSTotalStats # parseJSONList :: Value -> Parser [NodeFSTotalStats] # | |
data NodeNetworkStats Source #
Constructors
| NodeNetworkStats | |
Instances
| Eq NodeNetworkStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeNetworkStats -> NodeNetworkStats -> Bool # (/=) :: NodeNetworkStats -> NodeNetworkStats -> Bool # | |
| Show NodeNetworkStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeNetworkStats -> ShowS # show :: NodeNetworkStats -> String # showList :: [NodeNetworkStats] -> ShowS # | |
| FromJSON NodeNetworkStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeNetworkStats # parseJSONList :: Value -> Parser [NodeNetworkStats] # | |
data NodeThreadPoolStats Source #
Constructors
| NodeThreadPoolStats | |
Instances
| Eq NodeThreadPoolStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeThreadPoolStats -> NodeThreadPoolStats -> Bool # (/=) :: NodeThreadPoolStats -> NodeThreadPoolStats -> Bool # | |
| Show NodeThreadPoolStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeThreadPoolStats -> ShowS # show :: NodeThreadPoolStats -> String # showList :: [NodeThreadPoolStats] -> ShowS # | |
| FromJSON NodeThreadPoolStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeThreadPoolStats # parseJSONList :: Value -> Parser [NodeThreadPoolStats] # | |
data NodeJVMStats Source #
Constructors
Instances
| Eq NodeJVMStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show NodeJVMStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeJVMStats -> ShowS # show :: NodeJVMStats -> String # showList :: [NodeJVMStats] -> ShowS # | |
| FromJSON NodeJVMStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
data JVMBufferPoolStats Source #
Constructors
| JVMBufferPoolStats | |
Instances
| Eq JVMBufferPoolStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: JVMBufferPoolStats -> JVMBufferPoolStats -> Bool # (/=) :: JVMBufferPoolStats -> JVMBufferPoolStats -> Bool # | |
| Show JVMBufferPoolStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> JVMBufferPoolStats -> ShowS # show :: JVMBufferPoolStats -> String # showList :: [JVMBufferPoolStats] -> ShowS # | |
| FromJSON JVMBufferPoolStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser JVMBufferPoolStats # parseJSONList :: Value -> Parser [JVMBufferPoolStats] # | |
data JVMGCStats Source #
Constructors
| JVMGCStats | |
Instances
| Eq JVMGCStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show JVMGCStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> JVMGCStats -> ShowS # show :: JVMGCStats -> String # showList :: [JVMGCStats] -> ShowS # | |
| FromJSON JVMGCStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
data JVMPoolStats Source #
Constructors
| JVMPoolStats | |
Fields | |
Instances
| Eq JVMPoolStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show JVMPoolStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> JVMPoolStats -> ShowS # show :: JVMPoolStats -> String # showList :: [JVMPoolStats] -> ShowS # | |
| FromJSON JVMPoolStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
data NodeProcessStats Source #
Constructors
| NodeProcessStats | |
Instances
| Eq NodeProcessStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeProcessStats -> NodeProcessStats -> Bool # (/=) :: NodeProcessStats -> NodeProcessStats -> Bool # | |
| Show NodeProcessStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeProcessStats -> ShowS # show :: NodeProcessStats -> String # showList :: [NodeProcessStats] -> ShowS # | |
| FromJSON NodeProcessStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeProcessStats # parseJSONList :: Value -> Parser [NodeProcessStats] # | |
data NodeOSStats Source #
Constructors
| NodeOSStats | |
Fields | |
Instances
| Eq NodeOSStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show NodeOSStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeOSStats -> ShowS # show :: NodeOSStats -> String # showList :: [NodeOSStats] -> ShowS # | |
| FromJSON NodeOSStats Source # | |
Defined in Database.Bloodhound.Internal.Client | |
Constructors
| LoadAvgs | |
Fields
| |
data NodeIndicesStats Source #
Constructors
Instances
| Eq NodeIndicesStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeIndicesStats -> NodeIndicesStats -> Bool # (/=) :: NodeIndicesStats -> NodeIndicesStats -> Bool # | |
| Show NodeIndicesStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeIndicesStats -> ShowS # show :: NodeIndicesStats -> String # showList :: [NodeIndicesStats] -> ShowS # | |
| FromJSON NodeIndicesStats Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeIndicesStats # parseJSONList :: Value -> Parser [NodeIndicesStats] # | |
A quirky address format used throughout Elasticsearch. An example would be inet[/1.1.1.1:9200]. inet may be a placeholder for a FQDN.
Instances
| Eq EsAddress Source # | |
| Ord EsAddress Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show EsAddress Source # | |
| FromJSON EsAddress Source # | |
newtype PluginName Source #
Constructors
| PluginName | |
Fields
| |
Instances
| Eq PluginName Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Ord PluginName Source # | |
Defined in Database.Bloodhound.Internal.Client Methods compare :: PluginName -> PluginName -> Ordering # (<) :: PluginName -> PluginName -> Bool # (<=) :: PluginName -> PluginName -> Bool # (>) :: PluginName -> PluginName -> Bool # (>=) :: PluginName -> PluginName -> Bool # max :: PluginName -> PluginName -> PluginName # min :: PluginName -> PluginName -> PluginName # | |
| Show PluginName Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> PluginName -> ShowS # show :: PluginName -> String # showList :: [PluginName] -> ShowS # | |
| FromJSON PluginName Source # | |
Defined in Database.Bloodhound.Internal.Client | |
Constructors
| NodeInfo | |
Fields
| |
data NodePluginInfo Source #
Constructors
| NodePluginInfo | |
Fields
| |
Instances
| Eq NodePluginInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodePluginInfo -> NodePluginInfo -> Bool # (/=) :: NodePluginInfo -> NodePluginInfo -> Bool # | |
| Show NodePluginInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodePluginInfo -> ShowS # show :: NodePluginInfo -> String # showList :: [NodePluginInfo] -> ShowS # | |
| FromJSON NodePluginInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodePluginInfo # parseJSONList :: Value -> Parser [NodePluginInfo] # | |
data NodeHTTPInfo Source #
Constructors
| NodeHTTPInfo | |
Instances
| Eq NodeHTTPInfo Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show NodeHTTPInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeHTTPInfo -> ShowS # show :: NodeHTTPInfo -> String # showList :: [NodeHTTPInfo] -> ShowS # | |
| FromJSON NodeHTTPInfo Source # | |
Defined in Database.Bloodhound.Internal.Client | |
data NodeTransportInfo Source #
Constructors
| NodeTransportInfo | |
Instances
| Eq NodeTransportInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeTransportInfo -> NodeTransportInfo -> Bool # (/=) :: NodeTransportInfo -> NodeTransportInfo -> Bool # | |
| Show NodeTransportInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeTransportInfo -> ShowS # show :: NodeTransportInfo -> String # showList :: [NodeTransportInfo] -> ShowS # | |
| FromJSON NodeTransportInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeTransportInfo # parseJSONList :: Value -> Parser [NodeTransportInfo] # | |
data BoundTransportAddress Source #
Constructors
| BoundTransportAddress | |
Fields
| |
Instances
| Eq BoundTransportAddress Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: BoundTransportAddress -> BoundTransportAddress -> Bool # (/=) :: BoundTransportAddress -> BoundTransportAddress -> Bool # | |
| Show BoundTransportAddress Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> BoundTransportAddress -> ShowS # show :: BoundTransportAddress -> String # showList :: [BoundTransportAddress] -> ShowS # | |
| FromJSON BoundTransportAddress Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser BoundTransportAddress # parseJSONList :: Value -> Parser [BoundTransportAddress] # | |
data NodeNetworkInfo Source #
Constructors
| NodeNetworkInfo | |
Instances
| Eq NodeNetworkInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeNetworkInfo -> NodeNetworkInfo -> Bool # (/=) :: NodeNetworkInfo -> NodeNetworkInfo -> Bool # | |
| Show NodeNetworkInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeNetworkInfo -> ShowS # show :: NodeNetworkInfo -> String # showList :: [NodeNetworkInfo] -> ShowS # | |
| FromJSON NodeNetworkInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeNetworkInfo # parseJSONList :: Value -> Parser [NodeNetworkInfo] # | |
newtype MacAddress Source #
Constructors
| MacAddress | |
Fields
| |
Instances
| Eq MacAddress Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Ord MacAddress Source # | |
Defined in Database.Bloodhound.Internal.Client Methods compare :: MacAddress -> MacAddress -> Ordering # (<) :: MacAddress -> MacAddress -> Bool # (<=) :: MacAddress -> MacAddress -> Bool # (>) :: MacAddress -> MacAddress -> Bool # (>=) :: MacAddress -> MacAddress -> Bool # max :: MacAddress -> MacAddress -> MacAddress # min :: MacAddress -> MacAddress -> MacAddress # | |
| Show MacAddress Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> MacAddress -> ShowS # show :: MacAddress -> String # showList :: [MacAddress] -> ShowS # | |
| FromJSON MacAddress Source # | |
Defined in Database.Bloodhound.Internal.Client | |
newtype NetworkInterfaceName Source #
Constructors
| NetworkInterfaceName | |
Fields | |
Instances
data NodeNetworkInterface Source #
Constructors
| NodeNetworkInterface | |
Instances
| Eq NodeNetworkInterface Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeNetworkInterface -> NodeNetworkInterface -> Bool # (/=) :: NodeNetworkInterface -> NodeNetworkInterface -> Bool # | |
| Show NodeNetworkInterface Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeNetworkInterface -> ShowS # show :: NodeNetworkInterface -> String # showList :: [NodeNetworkInterface] -> ShowS # | |
| FromJSON NodeNetworkInterface Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeNetworkInterface # parseJSONList :: Value -> Parser [NodeNetworkInterface] # | |
data NodeThreadPoolInfo Source #
Constructors
| NodeThreadPoolInfo | |
Instances
| Eq NodeThreadPoolInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeThreadPoolInfo -> NodeThreadPoolInfo -> Bool # (/=) :: NodeThreadPoolInfo -> NodeThreadPoolInfo -> Bool # | |
| Show NodeThreadPoolInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeThreadPoolInfo -> ShowS # show :: NodeThreadPoolInfo -> String # showList :: [NodeThreadPoolInfo] -> ShowS # | |
| FromJSON NodeThreadPoolInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeThreadPoolInfo # parseJSONList :: Value -> Parser [NodeThreadPoolInfo] # | |
data ThreadPoolSize Source #
Constructors
| ThreadPoolBounded Int | |
| ThreadPoolUnbounded |
Instances
| Eq ThreadPoolSize Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: ThreadPoolSize -> ThreadPoolSize -> Bool # (/=) :: ThreadPoolSize -> ThreadPoolSize -> Bool # | |
| Show ThreadPoolSize Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> ThreadPoolSize -> ShowS # show :: ThreadPoolSize -> String # showList :: [ThreadPoolSize] -> ShowS # | |
| FromJSON ThreadPoolSize Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser ThreadPoolSize # parseJSONList :: Value -> Parser [ThreadPoolSize] # | |
data ThreadPoolType Source #
Instances
| Eq ThreadPoolType Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: ThreadPoolType -> ThreadPoolType -> Bool # (/=) :: ThreadPoolType -> ThreadPoolType -> Bool # | |
| Show ThreadPoolType Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> ThreadPoolType -> ShowS # show :: ThreadPoolType -> String # showList :: [ThreadPoolType] -> ShowS # | |
| FromJSON ThreadPoolType Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser ThreadPoolType # parseJSONList :: Value -> Parser [ThreadPoolType] # | |
data NodeJVMInfo Source #
Constructors
| NodeJVMInfo | |
Fields
| |
Instances
| Eq NodeJVMInfo Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show NodeJVMInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeJVMInfo -> ShowS # show :: NodeJVMInfo -> String # showList :: [NodeJVMInfo] -> ShowS # | |
| FromJSON NodeJVMInfo Source # | |
Defined in Database.Bloodhound.Internal.Client | |
newtype JVMMemoryPool Source #
Constructors
| JVMMemoryPool | |
Fields | |
Instances
| Eq JVMMemoryPool Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: JVMMemoryPool -> JVMMemoryPool -> Bool # (/=) :: JVMMemoryPool -> JVMMemoryPool -> Bool # | |
| Show JVMMemoryPool Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> JVMMemoryPool -> ShowS # show :: JVMMemoryPool -> String # showList :: [JVMMemoryPool] -> ShowS # | |
| FromJSON JVMMemoryPool Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser JVMMemoryPool # parseJSONList :: Value -> Parser [JVMMemoryPool] # | |
newtype JVMGCCollector Source #
Constructors
| JVMGCCollector | |
Fields | |
Instances
| Eq JVMGCCollector Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: JVMGCCollector -> JVMGCCollector -> Bool # (/=) :: JVMGCCollector -> JVMGCCollector -> Bool # | |
| Show JVMGCCollector Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> JVMGCCollector -> ShowS # show :: JVMGCCollector -> String # showList :: [JVMGCCollector] -> ShowS # | |
| FromJSON JVMGCCollector Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser JVMGCCollector # parseJSONList :: Value -> Parser [JVMGCCollector] # | |
data JVMMemoryInfo Source #
Constructors
| JVMMemoryInfo | |
Instances
| Eq JVMMemoryInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: JVMMemoryInfo -> JVMMemoryInfo -> Bool # (/=) :: JVMMemoryInfo -> JVMMemoryInfo -> Bool # | |
| Show JVMMemoryInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> JVMMemoryInfo -> ShowS # show :: JVMMemoryInfo -> String # showList :: [JVMMemoryInfo] -> ShowS # | |
| FromJSON JVMMemoryInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser JVMMemoryInfo # parseJSONList :: Value -> Parser [JVMMemoryInfo] # | |
data NodeOSInfo Source #
Constructors
| NodeOSInfo | |
Fields | |
Instances
| Eq NodeOSInfo Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show NodeOSInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeOSInfo -> ShowS # show :: NodeOSInfo -> String # showList :: [NodeOSInfo] -> ShowS # | |
| FromJSON NodeOSInfo Source # | |
Defined in Database.Bloodhound.Internal.Client | |
Constructors
| CPUInfo | |
Fields
| |
data NodeProcessInfo Source #
Constructors
| NodeProcessInfo | |
Instances
| Eq NodeProcessInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: NodeProcessInfo -> NodeProcessInfo -> Bool # (/=) :: NodeProcessInfo -> NodeProcessInfo -> Bool # | |
| Show NodeProcessInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> NodeProcessInfo -> ShowS # show :: NodeProcessInfo -> String # showList :: [NodeProcessInfo] -> ShowS # | |
| FromJSON NodeProcessInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser NodeProcessInfo # parseJSONList :: Value -> Parser [NodeProcessInfo] # | |
data FsSnapshotRepo Source #
A filesystem-based snapshot repo that ships with
Elasticsearch. This is an instance of SnapshotRepo so it can be
used with updateSnapshotRepo
Constructors
| FsSnapshotRepo | |
Fields
| |
Instances
data SnapshotCreateSettings Source #
Constructors
| SnapshotCreateSettings | |
Fields
| |
Instances
| Eq SnapshotCreateSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotCreateSettings -> SnapshotCreateSettings -> Bool # (/=) :: SnapshotCreateSettings -> SnapshotCreateSettings -> Bool # | |
| Show SnapshotCreateSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotCreateSettings -> ShowS # show :: SnapshotCreateSettings -> String # showList :: [SnapshotCreateSettings] -> ShowS # | |
defaultSnapshotCreateSettings :: SnapshotCreateSettings Source #
Reasonable defaults for snapshot creation
- snapWaitForCompletion False
- snapIndices Nothing
- snapIgnoreUnavailable False
- snapIncludeGlobalState True
- snapPartial False
data SnapshotSelection Source #
Constructors
| SnapshotList (NonEmpty SnapshotPattern) | |
| AllSnapshots |
Instances
| Eq SnapshotSelection Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotSelection -> SnapshotSelection -> Bool # (/=) :: SnapshotSelection -> SnapshotSelection -> Bool # | |
| Show SnapshotSelection Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotSelection -> ShowS # show :: SnapshotSelection -> String # showList :: [SnapshotSelection] -> ShowS # | |
data SnapshotPattern Source #
Either specifies an exact snapshot name or one with globs in it,
e.g. SnapPattern "foo*" NOTE: Patterns are not supported on
ES < 1.7
Constructors
| ExactSnap SnapshotName | |
| SnapPattern Text |
Instances
| Eq SnapshotPattern Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotPattern -> SnapshotPattern -> Bool # (/=) :: SnapshotPattern -> SnapshotPattern -> Bool # | |
| Show SnapshotPattern Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotPattern -> ShowS # show :: SnapshotPattern -> String # showList :: [SnapshotPattern] -> ShowS # | |
data SnapshotInfo Source #
General information about the state of a snapshot. Has some
redundancies with SnapshotStatus
Constructors
| SnapshotInfo | |
Instances
| Eq SnapshotInfo Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Show SnapshotInfo Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotInfo -> ShowS # show :: SnapshotInfo -> String # showList :: [SnapshotInfo] -> ShowS # | |
| FromJSON SnapshotInfo Source # | |
Defined in Database.Bloodhound.Internal.Client | |
data SnapshotShardFailure Source #
Constructors
| SnapshotShardFailure | |
Instances
| Eq SnapshotShardFailure Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotShardFailure -> SnapshotShardFailure -> Bool # (/=) :: SnapshotShardFailure -> SnapshotShardFailure -> Bool # | |
| Show SnapshotShardFailure Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotShardFailure -> ShowS # show :: SnapshotShardFailure -> String # showList :: [SnapshotShardFailure] -> ShowS # | |
| FromJSON SnapshotShardFailure Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser SnapshotShardFailure # parseJSONList :: Value -> Parser [SnapshotShardFailure] # | |
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 | |
data SnapshotState Source #
Constructors
| SnapshotInit | |
| SnapshotStarted | |
| SnapshotSuccess | |
| SnapshotFailed | |
| SnapshotAborted | |
| SnapshotMissing | |
| SnapshotWaiting |
Instances
| Eq SnapshotState Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotState -> SnapshotState -> Bool # (/=) :: SnapshotState -> SnapshotState -> Bool # | |
| Show SnapshotState Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotState -> ShowS # show :: SnapshotState -> String # showList :: [SnapshotState] -> ShowS # | |
| FromJSON SnapshotState Source # | |
Defined in Database.Bloodhound.Internal.Client Methods parseJSON :: Value -> Parser SnapshotState # parseJSONList :: Value -> Parser [SnapshotState] # | |
data SnapshotRestoreSettings Source #
Constructors
| SnapshotRestoreSettings | |
Fields
| |
Instances
| Eq SnapshotRestoreSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: SnapshotRestoreSettings -> SnapshotRestoreSettings -> Bool # (/=) :: SnapshotRestoreSettings -> SnapshotRestoreSettings -> Bool # | |
| Show SnapshotRestoreSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> SnapshotRestoreSettings -> ShowS # show :: SnapshotRestoreSettings -> String # showList :: [SnapshotRestoreSettings] -> ShowS # | |
defaultSnapshotRestoreSettings :: SnapshotRestoreSettings Source #
Reasonable defaults for snapshot restores
- snapRestoreWaitForCompletion False
- snapRestoreIndices Nothing
- snapRestoreIgnoreUnavailable False
- snapRestoreIncludeGlobalState True
- snapRestoreRenamePattern Nothing
- snapRestoreRenameReplacement Nothing
- snapRestorePartial False
- snapRestoreIncludeAliases True
- snapRestoreIndexSettingsOverrides Nothing
- snapRestoreIgnoreIndexSettings Nothing
newtype RestoreRenamePattern Source #
Regex-stype pattern, e.g. "index_(.+)" to match index names
Constructors
| RestoreRenamePattern | |
Instances
data RestoreRenameToken Source #
A single token in a index renaming scheme for a restore. These are concatenated into a string before being sent to Elasticsearch. Check out these Java docs to find out more if you're into that sort of thing.
Constructors
| RRTLit Text | Just a literal string of characters |
| RRSubWholeMatch | Equivalent to $0. The entire matched pattern, not any subgroup |
| RRSubGroup RRGroupRefNum | A specific reference to a group number |
Instances
| Eq RestoreRenameToken Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: RestoreRenameToken -> RestoreRenameToken -> Bool # (/=) :: RestoreRenameToken -> RestoreRenameToken -> Bool # | |
| Show RestoreRenameToken Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> RestoreRenameToken -> ShowS # show :: RestoreRenameToken -> String # showList :: [RestoreRenameToken] -> ShowS # | |
data RRGroupRefNum Source #
A group number for regex matching. Only values from 1-9 are
supported. Construct with mkRRGroupRefNum
Instances
| Bounded RRGroupRefNum Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Eq RRGroupRefNum Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: RRGroupRefNum -> RRGroupRefNum -> Bool # (/=) :: RRGroupRefNum -> RRGroupRefNum -> Bool # | |
| Ord RRGroupRefNum Source # | |
Defined in Database.Bloodhound.Internal.Client Methods compare :: RRGroupRefNum -> RRGroupRefNum -> Ordering # (<) :: RRGroupRefNum -> RRGroupRefNum -> Bool # (<=) :: RRGroupRefNum -> RRGroupRefNum -> Bool # (>) :: RRGroupRefNum -> RRGroupRefNum -> Bool # (>=) :: RRGroupRefNum -> RRGroupRefNum -> Bool # max :: RRGroupRefNum -> RRGroupRefNum -> RRGroupRefNum # min :: RRGroupRefNum -> RRGroupRefNum -> RRGroupRefNum # | |
| Show RRGroupRefNum Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> RRGroupRefNum -> ShowS # show :: RRGroupRefNum -> String # showList :: [RRGroupRefNum] -> ShowS # | |
rrGroupRefNum :: RRGroupRefNum -> Int Source #
mkRRGroupRefNum :: Int -> Maybe RRGroupRefNum Source #
Only allows valid group number references (1-9).
newtype RestoreIndexSettings Source #
Index settings that can be overridden. The docs only mention you can update number of replicas, but there may be more. You definitely cannot override shard count.
Constructors
| RestoreIndexSettings | |
Fields | |
Instances
| Eq RestoreIndexSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods (==) :: RestoreIndexSettings -> RestoreIndexSettings -> Bool # (/=) :: RestoreIndexSettings -> RestoreIndexSettings -> Bool # | |
| Show RestoreIndexSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> RestoreIndexSettings -> ShowS # show :: RestoreIndexSettings -> String # showList :: [RestoreIndexSettings] -> ShowS # | |
| ToJSON RestoreIndexSettings Source # | |
Defined in Database.Bloodhound.Internal.Client Methods toJSON :: RestoreIndexSettings -> Value # toEncoding :: RestoreIndexSettings -> Encoding # toJSONList :: [RestoreIndexSettings] -> Value # toEncodingList :: [RestoreIndexSettings] -> Encoding # | |
Constructors
| Suggest | |
Fields
| |
Instances
| Eq Suggest Source # | |
| Show Suggest Source # | |
| Generic Suggest Source # | |
| ToJSON Suggest Source # | |
Defined in Database.Bloodhound.Internal.Suggest | |
| FromJSON Suggest Source # | |
| type Rep Suggest Source # | |
Defined in Database.Bloodhound.Internal.Suggest type Rep Suggest = D1 ('MetaData "Suggest" "Database.Bloodhound.Internal.Suggest" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "Suggest" 'PrefixI 'True) (S1 ('MetaSel ('Just "suggestText") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "suggestName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "suggestType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SuggestType)))) | |
data SuggestType Source #
Constructors
| SuggestTypePhraseSuggester PhraseSuggester |
Instances
data PhraseSuggester Source #
Constructors
Instances
data PhraseSuggesterHighlighter Source #
Constructors
| PhraseSuggesterHighlighter | |
Instances
data PhraseSuggesterCollate Source #
Constructors
| PhraseSuggesterCollate | |
Instances
data SuggestOptions Source #
Constructors
| SuggestOptions | |
Fields | |
Instances
| Eq SuggestOptions Source # | |
Defined in Database.Bloodhound.Internal.Suggest Methods (==) :: SuggestOptions -> SuggestOptions -> Bool # (/=) :: SuggestOptions -> SuggestOptions -> Bool # | |
| Read SuggestOptions Source # | |
Defined in Database.Bloodhound.Internal.Suggest Methods readsPrec :: Int -> ReadS SuggestOptions # readList :: ReadS [SuggestOptions] # | |
| Show SuggestOptions Source # | |
Defined in Database.Bloodhound.Internal.Suggest Methods showsPrec :: Int -> SuggestOptions -> ShowS # show :: SuggestOptions -> String # showList :: [SuggestOptions] -> ShowS # | |
| FromJSON SuggestOptions Source # | |
Defined in Database.Bloodhound.Internal.Suggest Methods parseJSON :: Value -> Parser SuggestOptions # parseJSONList :: Value -> Parser [SuggestOptions] # | |
data SuggestResponse Source #
Constructors
| SuggestResponse | |
Fields | |
Instances
| Eq SuggestResponse Source # | |
Defined in Database.Bloodhound.Internal.Suggest Methods (==) :: SuggestResponse -> SuggestResponse -> Bool # (/=) :: SuggestResponse -> SuggestResponse -> Bool # | |
| Read SuggestResponse Source # | |
Defined in Database.Bloodhound.Internal.Suggest Methods readsPrec :: Int -> ReadS SuggestResponse # readList :: ReadS [SuggestResponse] # | |
| Show SuggestResponse Source # | |
Defined in Database.Bloodhound.Internal.Suggest Methods showsPrec :: Int -> SuggestResponse -> ShowS # show :: SuggestResponse -> String # showList :: [SuggestResponse] -> ShowS # | |
| FromJSON SuggestResponse Source # | |
Defined in Database.Bloodhound.Internal.Suggest Methods parseJSON :: Value -> Parser SuggestResponse # parseJSONList :: Value -> Parser [SuggestResponse] # | |
data NamedSuggestionResponse Source #
Constructors
| NamedSuggestionResponse | |
Fields
| |
Instances
| Eq NamedSuggestionResponse Source # | |
Defined in Database.Bloodhound.Internal.Suggest Methods (==) :: NamedSuggestionResponse -> NamedSuggestionResponse -> Bool # (/=) :: NamedSuggestionResponse -> NamedSuggestionResponse -> Bool # | |
| Read NamedSuggestionResponse Source # | |
Defined in Database.Bloodhound.Internal.Suggest | |
| Show NamedSuggestionResponse Source # | |
Defined in Database.Bloodhound.Internal.Suggest Methods showsPrec :: Int -> NamedSuggestionResponse -> ShowS # show :: NamedSuggestionResponse -> String # showList :: [NamedSuggestionResponse] -> ShowS # | |
| FromJSON NamedSuggestionResponse Source # | |
Defined in Database.Bloodhound.Internal.Suggest Methods parseJSON :: Value -> Parser NamedSuggestionResponse # parseJSONList :: Value -> Parser [NamedSuggestionResponse] # | |
data DirectGenerators Source #
Constructors
Instances
data DirectGeneratorSuggestModeTypes Source #
Constructors
| DirectGeneratorSuggestModeMissing | |
| DirectGeneratorSuggestModePopular | |
| DirectGeneratorSuggestModeAlways |
Instances
data Aggregation Source #
Constructors
Instances
| Eq Aggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation | |
| Show Aggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> Aggregation -> ShowS # show :: Aggregation -> String # showList :: [Aggregation] -> ShowS # | |
| ToJSON Aggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods toJSON :: Aggregation -> Value # toEncoding :: Aggregation -> Encoding # toJSONList :: [Aggregation] -> Value # toEncodingList :: [Aggregation] -> Encoding # | |
type Aggregations = Map Key Aggregation Source #
data BucketValue Source #
Constructors
| TextValue Text | |
| ScientificValue Scientific | |
| BoolValue Bool |
Instances
| Read BucketValue Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods readsPrec :: Int -> ReadS BucketValue # readList :: ReadS [BucketValue] # readPrec :: ReadPrec BucketValue # readListPrec :: ReadPrec [BucketValue] # | |
| Show BucketValue Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> BucketValue -> ShowS # show :: BucketValue -> String # showList :: [BucketValue] -> ShowS # | |
| FromJSON BucketValue Source # | |
Defined in Database.Bloodhound.Internal.Aggregation | |
class BucketAggregation a where Source #
Instances
| BucketAggregation DateRangeResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods key :: DateRangeResult -> BucketValue Source # docCount :: DateRangeResult -> Int Source # aggs :: DateRangeResult -> Maybe AggregationResults Source # | |
| BucketAggregation DateHistogramResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods key :: DateHistogramResult -> BucketValue Source # docCount :: DateHistogramResult -> Int Source # aggs :: DateHistogramResult -> Maybe AggregationResults Source # | |
| BucketAggregation TermsResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation | |
data TermsAggregation Source #
Constructors
Instances
| Eq TermsAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: TermsAggregation -> TermsAggregation -> Bool # (/=) :: TermsAggregation -> TermsAggregation -> Bool # | |
| Show TermsAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> TermsAggregation -> ShowS # show :: TermsAggregation -> String # showList :: [TermsAggregation] -> ShowS # | |
data MissingAggregation Source #
Constructors
| MissingAggregation | |
Instances
| Eq MissingAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: MissingAggregation -> MissingAggregation -> Bool # (/=) :: MissingAggregation -> MissingAggregation -> Bool # | |
| Show MissingAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> MissingAggregation -> ShowS # show :: MissingAggregation -> String # showList :: [MissingAggregation] -> ShowS # | |
data ValueCountAggregation Source #
See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-valuecount-aggregation.html for more information.
Constructors
| FieldValueCount FieldName | |
| ScriptValueCount Script |
Instances
| Eq ValueCountAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: ValueCountAggregation -> ValueCountAggregation -> Bool # (/=) :: ValueCountAggregation -> ValueCountAggregation -> Bool # | |
| Show ValueCountAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> ValueCountAggregation -> ShowS # show :: ValueCountAggregation -> String # showList :: [ValueCountAggregation] -> ShowS # | |
data FilterAggregation Source #
Single-bucket filter aggregations. See https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-filter-aggregation.html#search-aggregations-bucket-filter-aggregation for more information.
Constructors
| FilterAggregation | |
Fields
| |
Instances
| Eq FilterAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: FilterAggregation -> FilterAggregation -> Bool # (/=) :: FilterAggregation -> FilterAggregation -> Bool # | |
| Show FilterAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> FilterAggregation -> ShowS # show :: FilterAggregation -> String # showList :: [FilterAggregation] -> ShowS # | |
data CardinalityAggregation Source #
Constructors
| CardinalityAggregation | |
Fields | |
Instances
| Eq CardinalityAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: CardinalityAggregation -> CardinalityAggregation -> Bool # (/=) :: CardinalityAggregation -> CardinalityAggregation -> Bool # | |
| Show CardinalityAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> CardinalityAggregation -> ShowS # show :: CardinalityAggregation -> String # showList :: [CardinalityAggregation] -> ShowS # | |
data DateHistogramAggregation Source #
Constructors
| DateHistogramAggregation | |
Fields
| |
Instances
| Eq DateHistogramAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: DateHistogramAggregation -> DateHistogramAggregation -> Bool # (/=) :: DateHistogramAggregation -> DateHistogramAggregation -> Bool # | |
| Show DateHistogramAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> DateHistogramAggregation -> ShowS # show :: DateHistogramAggregation -> String # showList :: [DateHistogramAggregation] -> ShowS # | |
data DateRangeAggregation Source #
Constructors
| DateRangeAggregation | |
Instances
| Eq DateRangeAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: DateRangeAggregation -> DateRangeAggregation -> Bool # (/=) :: DateRangeAggregation -> DateRangeAggregation -> Bool # | |
| Show DateRangeAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> DateRangeAggregation -> ShowS # show :: DateRangeAggregation -> String # showList :: [DateRangeAggregation] -> ShowS # | |
| ToJSON DateRangeAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods toJSON :: DateRangeAggregation -> Value # toEncoding :: DateRangeAggregation -> Encoding # toJSONList :: [DateRangeAggregation] -> Value # toEncodingList :: [DateRangeAggregation] -> Encoding # | |
data DateRangeAggRange Source #
Constructors
| DateRangeFrom DateMathExpr | |
| DateRangeTo DateMathExpr | |
| DateRangeFromAndTo DateMathExpr DateMathExpr |
Instances
| Eq DateRangeAggRange Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: DateRangeAggRange -> DateRangeAggRange -> Bool # (/=) :: DateRangeAggRange -> DateRangeAggRange -> Bool # | |
| Show DateRangeAggRange Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> DateRangeAggRange -> ShowS # show :: DateRangeAggRange -> String # showList :: [DateRangeAggRange] -> ShowS # | |
| ToJSON DateRangeAggRange Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods toJSON :: DateRangeAggRange -> Value # toEncoding :: DateRangeAggRange -> Encoding # toJSONList :: [DateRangeAggRange] -> Value # toEncodingList :: [DateRangeAggRange] -> Encoding # | |
data DateMathExpr Source #
See https://www.elastic.co/guide/en/elasticsearch/reference/current/common-options.html#date-math for more information.
Constructors
| DateMathExpr DateMathAnchor [DateMathModifier] |
Instances
| Eq DateMathExpr Source # | |
Defined in Database.Bloodhound.Internal.Aggregation | |
| Show DateMathExpr Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> DateMathExpr -> ShowS # show :: DateMathExpr -> String # showList :: [DateMathExpr] -> ShowS # | |
| ToJSON DateMathExpr Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods toJSON :: DateMathExpr -> Value # toEncoding :: DateMathExpr -> Encoding # toJSONList :: [DateMathExpr] -> Value # toEncodingList :: [DateMathExpr] -> Encoding # | |
data DateMathAnchor Source #
Starting point for a date range. This along with the DateMathModifiers gets you the date ES will start from.
Instances
| Eq DateMathAnchor Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: DateMathAnchor -> DateMathAnchor -> Bool # (/=) :: DateMathAnchor -> DateMathAnchor -> Bool # | |
| Show DateMathAnchor Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> DateMathAnchor -> ShowS # show :: DateMathAnchor -> String # showList :: [DateMathAnchor] -> ShowS # | |
data DateMathModifier Source #
Constructors
| AddTime Int DateMathUnit | |
| SubtractTime Int DateMathUnit | |
| RoundDownTo DateMathUnit |
Instances
| Eq DateMathModifier Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: DateMathModifier -> DateMathModifier -> Bool # (/=) :: DateMathModifier -> DateMathModifier -> Bool # | |
| Show DateMathModifier Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> DateMathModifier -> ShowS # show :: DateMathModifier -> String # showList :: [DateMathModifier] -> ShowS # | |
data DateMathUnit Source #
Instances
| Eq DateMathUnit Source # | |
Defined in Database.Bloodhound.Internal.Aggregation | |
| Show DateMathUnit Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> DateMathUnit -> ShowS # show :: DateMathUnit -> String # showList :: [DateMathUnit] -> ShowS # | |
data TopHitsAggregation Source #
Instances
| Eq TopHitsAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: TopHitsAggregation -> TopHitsAggregation -> Bool # (/=) :: TopHitsAggregation -> TopHitsAggregation -> Bool # | |
| Show TopHitsAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> TopHitsAggregation -> ShowS # show :: TopHitsAggregation -> String # showList :: [TopHitsAggregation] -> ShowS # | |
data StatisticsAggregation Source #
Constructors
| StatisticsAggregation | |
Fields | |
Instances
| Eq StatisticsAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: StatisticsAggregation -> StatisticsAggregation -> Bool # (/=) :: StatisticsAggregation -> StatisticsAggregation -> Bool # | |
| Show StatisticsAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> StatisticsAggregation -> ShowS # show :: StatisticsAggregation -> String # showList :: [StatisticsAggregation] -> ShowS # | |
type SearchAfterKey = [Value] Source #
newtype CountQuery Source #
Constructors
| CountQuery | |
Fields
| |
Instances
| Eq CountQuery Source # | |
Defined in Database.Bloodhound.Internal.Count | |
| Show CountQuery Source # | |
Defined in Database.Bloodhound.Internal.Count Methods showsPrec :: Int -> CountQuery -> ShowS # show :: CountQuery -> String # showList :: [CountQuery] -> ShowS # | |
| ToJSON CountQuery Source # | |
Defined in Database.Bloodhound.Internal.Count Methods toJSON :: CountQuery -> Value # toEncoding :: CountQuery -> Encoding # toJSONList :: [CountQuery] -> Value # toEncodingList :: [CountQuery] -> Encoding # | |
data CountResponse Source #
Constructors
| CountResponse | |
Fields
| |
Instances
| Eq CountResponse Source # | |
Defined in Database.Bloodhound.Internal.Count Methods (==) :: CountResponse -> CountResponse -> Bool # (/=) :: CountResponse -> CountResponse -> Bool # | |
| Show CountResponse Source # | |
Defined in Database.Bloodhound.Internal.Count Methods showsPrec :: Int -> CountResponse -> ShowS # show :: CountResponse -> String # showList :: [CountResponse] -> ShowS # | |
| FromJSON CountResponse Source # | |
Defined in Database.Bloodhound.Internal.Count Methods parseJSON :: Value -> Parser CountResponse # parseJSONList :: Value -> Parser [CountResponse] # | |
data CountShards Source #
Constructors
| CountShards | |
Instances
| Eq CountShards Source # | |
Defined in Database.Bloodhound.Internal.Count | |
| Show CountShards Source # | |
Defined in Database.Bloodhound.Internal.Count Methods showsPrec :: Int -> CountShards -> ShowS # show :: CountShards -> String # showList :: [CountShards] -> ShowS # | |
| FromJSON CountShards Source # | |
Defined in Database.Bloodhound.Internal.Count | |
data PointInTime Source #
Constructors
| PointInTime | |
Instances
| Eq PointInTime Source # | |
Defined in Database.Bloodhound.Internal.PointInTime | |
| Show PointInTime Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods showsPrec :: Int -> PointInTime -> ShowS # show :: PointInTime -> String # showList :: [PointInTime] -> ShowS # | |
| ToJSON PointInTime Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods toJSON :: PointInTime -> Value # toEncoding :: PointInTime -> Encoding # toJSONList :: [PointInTime] -> Value # toEncodingList :: [PointInTime] -> Encoding # | |
| FromJSON PointInTime Source # | |
Defined in Database.Bloodhound.Internal.PointInTime | |
data OpenPointInTimeResponse Source #
Constructors
| OpenPointInTimeResponse | |
Instances
| Eq OpenPointInTimeResponse Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods (==) :: OpenPointInTimeResponse -> OpenPointInTimeResponse -> Bool # (/=) :: OpenPointInTimeResponse -> OpenPointInTimeResponse -> Bool # | |
| Show OpenPointInTimeResponse Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods showsPrec :: Int -> OpenPointInTimeResponse -> ShowS # show :: OpenPointInTimeResponse -> String # showList :: [OpenPointInTimeResponse] -> ShowS # | |
| ToJSON OpenPointInTimeResponse Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods toJSON :: OpenPointInTimeResponse -> Value # toEncoding :: OpenPointInTimeResponse -> Encoding # toJSONList :: [OpenPointInTimeResponse] -> Value # | |
| FromJSON OpenPointInTimeResponse Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods parseJSON :: Value -> Parser OpenPointInTimeResponse # parseJSONList :: Value -> Parser [OpenPointInTimeResponse] # | |
data ClosePointInTime Source #
Constructors
| ClosePointInTime | |
Instances
| Eq ClosePointInTime Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods (==) :: ClosePointInTime -> ClosePointInTime -> Bool # (/=) :: ClosePointInTime -> ClosePointInTime -> Bool # | |
| Show ClosePointInTime Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods showsPrec :: Int -> ClosePointInTime -> ShowS # show :: ClosePointInTime -> String # showList :: [ClosePointInTime] -> ShowS # | |
| ToJSON ClosePointInTime Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods toJSON :: ClosePointInTime -> Value # toEncoding :: ClosePointInTime -> Encoding # toJSONList :: [ClosePointInTime] -> Value # toEncodingList :: [ClosePointInTime] -> Encoding # | |
| FromJSON ClosePointInTime Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods parseJSON :: Value -> Parser ClosePointInTime # parseJSONList :: Value -> Parser [ClosePointInTime] # | |
data ClosePointInTimeResponse Source #
Constructors
| ClosePointInTimeResponse | |
Instances
| Eq ClosePointInTimeResponse Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods (==) :: ClosePointInTimeResponse -> ClosePointInTimeResponse -> Bool # (/=) :: ClosePointInTimeResponse -> ClosePointInTimeResponse -> Bool # | |
| Show ClosePointInTimeResponse Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods showsPrec :: Int -> ClosePointInTimeResponse -> ShowS # show :: ClosePointInTimeResponse -> String # showList :: [ClosePointInTimeResponse] -> ShowS # | |
| ToJSON ClosePointInTimeResponse Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods toJSON :: ClosePointInTimeResponse -> Value # toEncoding :: ClosePointInTimeResponse -> Encoding # toJSONList :: [ClosePointInTimeResponse] -> Value # | |
| FromJSON ClosePointInTimeResponse Source # | |
Defined in Database.Bloodhound.Internal.PointInTime Methods parseJSON :: Value -> Parser ClosePointInTimeResponse # parseJSONList :: Value -> Parser [ClosePointInTimeResponse] # | |
newtype SumAggregation Source #
Constructors
| SumAggregation | |
Fields | |
Instances
| Eq SumAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: SumAggregation -> SumAggregation -> Bool # (/=) :: SumAggregation -> SumAggregation -> Bool # | |
| Show SumAggregation Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> SumAggregation -> ShowS # show :: SumAggregation -> String # showList :: [SumAggregation] -> ShowS # | |
data Highlights Source #
Constructors
| Highlights | |
Fields | |
Instances
| Eq Highlights Source # | |
Defined in Database.Bloodhound.Internal.Highlight | |
| Show Highlights Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods showsPrec :: Int -> Highlights -> ShowS # show :: Highlights -> String # showList :: [Highlights] -> ShowS # | |
| ToJSON Highlights Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods toJSON :: Highlights -> Value # toEncoding :: Highlights -> Encoding # toJSONList :: [Highlights] -> Value # toEncodingList :: [Highlights] -> Encoding # | |
data FieldHighlight Source #
Constructors
| FieldHighlight FieldName (Maybe HighlightSettings) |
Instances
| Eq FieldHighlight Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods (==) :: FieldHighlight -> FieldHighlight -> Bool # (/=) :: FieldHighlight -> FieldHighlight -> Bool # | |
| Show FieldHighlight Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods showsPrec :: Int -> FieldHighlight -> ShowS # show :: FieldHighlight -> String # showList :: [FieldHighlight] -> ShowS # | |
| ToJSON FieldHighlight Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods toJSON :: FieldHighlight -> Value # toEncoding :: FieldHighlight -> Encoding # toJSONList :: [FieldHighlight] -> Value # toEncodingList :: [FieldHighlight] -> Encoding # | |
data HighlightSettings Source #
Instances
| Eq HighlightSettings Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods (==) :: HighlightSettings -> HighlightSettings -> Bool # (/=) :: HighlightSettings -> HighlightSettings -> Bool # | |
| Show HighlightSettings Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods showsPrec :: Int -> HighlightSettings -> ShowS # show :: HighlightSettings -> String # showList :: [HighlightSettings] -> ShowS # | |
| ToJSON HighlightSettings Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods toJSON :: HighlightSettings -> Value # toEncoding :: HighlightSettings -> Encoding # toJSONList :: [HighlightSettings] -> Value # toEncodingList :: [HighlightSettings] -> Encoding # | |
data PlainHighlight Source #
Constructors
| PlainHighlight | |
Fields | |
Instances
| Eq PlainHighlight Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods (==) :: PlainHighlight -> PlainHighlight -> Bool # (/=) :: PlainHighlight -> PlainHighlight -> Bool # | |
| Show PlainHighlight Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods showsPrec :: Int -> PlainHighlight -> ShowS # show :: PlainHighlight -> String # showList :: [PlainHighlight] -> ShowS # | |
data PostingsHighlight Source #
Constructors
| PostingsHighlight (Maybe CommonHighlight) |
Instances
| Eq PostingsHighlight Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods (==) :: PostingsHighlight -> PostingsHighlight -> Bool # (/=) :: PostingsHighlight -> PostingsHighlight -> Bool # | |
| Show PostingsHighlight Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods showsPrec :: Int -> PostingsHighlight -> ShowS # show :: PostingsHighlight -> String # showList :: [PostingsHighlight] -> ShowS # | |
data FastVectorHighlight Source #
Constructors
| FastVectorHighlight | |
Fields
| |
Instances
| Eq FastVectorHighlight Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods (==) :: FastVectorHighlight -> FastVectorHighlight -> Bool # (/=) :: FastVectorHighlight -> FastVectorHighlight -> Bool # | |
| Show FastVectorHighlight Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods showsPrec :: Int -> FastVectorHighlight -> ShowS # show :: FastVectorHighlight -> String # showList :: [FastVectorHighlight] -> ShowS # | |
data CommonHighlight Source #
Constructors
| CommonHighlight | |
Fields
| |
Instances
| Eq CommonHighlight Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods (==) :: CommonHighlight -> CommonHighlight -> Bool # (/=) :: CommonHighlight -> CommonHighlight -> Bool # | |
| Show CommonHighlight Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods showsPrec :: Int -> CommonHighlight -> ShowS # show :: CommonHighlight -> String # showList :: [CommonHighlight] -> ShowS # | |
data NonPostings Source #
Constructors
| NonPostings | |
Fields | |
Instances
| Eq NonPostings Source # | |
Defined in Database.Bloodhound.Internal.Highlight | |
| Show NonPostings Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods showsPrec :: Int -> NonPostings -> ShowS # show :: NonPostings -> String # showList :: [NonPostings] -> ShowS # | |
data HighlightEncoder Source #
Constructors
| DefaultEncoder | |
| HTMLEncoder |
Instances
| Eq HighlightEncoder Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods (==) :: HighlightEncoder -> HighlightEncoder -> Bool # (/=) :: HighlightEncoder -> HighlightEncoder -> Bool # | |
| Show HighlightEncoder Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods showsPrec :: Int -> HighlightEncoder -> ShowS # show :: HighlightEncoder -> String # showList :: [HighlightEncoder] -> ShowS # | |
| ToJSON HighlightEncoder Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods toJSON :: HighlightEncoder -> Value # toEncoding :: HighlightEncoder -> Encoding # toJSONList :: [HighlightEncoder] -> Value # toEncodingList :: [HighlightEncoder] -> Encoding # | |
data HighlightTag Source #
Constructors
| TagSchema Text | |
| CustomTags ([Text], [Text]) |
Instances
| Eq HighlightTag Source # | |
Defined in Database.Bloodhound.Internal.Highlight | |
| Show HighlightTag Source # | |
Defined in Database.Bloodhound.Internal.Highlight Methods showsPrec :: Int -> HighlightTag -> ShowS # show :: HighlightTag -> String # showList :: [HighlightTag] -> ShowS # | |
data MissingResult Source #
Constructors
| MissingResult | |
Fields | |
Instances
| Show MissingResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> MissingResult -> ShowS # show :: MissingResult -> String # showList :: [MissingResult] -> ShowS # | |
| FromJSON MissingResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods parseJSON :: Value -> Parser MissingResult # parseJSONList :: Value -> Parser [MissingResult] # | |
data TermsResult Source #
Constructors
| TermsResult | |
Fields | |
Instances
| Read TermsResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods readsPrec :: Int -> ReadS TermsResult # readList :: ReadS [TermsResult] # readPrec :: ReadPrec TermsResult # readListPrec :: ReadPrec [TermsResult] # | |
| Show TermsResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> TermsResult -> ShowS # show :: TermsResult -> String # showList :: [TermsResult] -> ShowS # | |
| FromJSON TermsResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation | |
| BucketAggregation TermsResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation | |
data DateHistogramResult Source #
Constructors
| DateHistogramResult | |
Fields
| |
Instances
| Show DateHistogramResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> DateHistogramResult -> ShowS # show :: DateHistogramResult -> String # showList :: [DateHistogramResult] -> ShowS # | |
| FromJSON DateHistogramResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods parseJSON :: Value -> Parser DateHistogramResult # parseJSONList :: Value -> Parser [DateHistogramResult] # | |
| BucketAggregation DateHistogramResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods key :: DateHistogramResult -> BucketValue Source # docCount :: DateHistogramResult -> Int Source # aggs :: DateHistogramResult -> Maybe AggregationResults Source # | |
data DateRangeResult Source #
Constructors
| DateRangeResult | |
Fields | |
Instances
| Eq DateRangeResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: DateRangeResult -> DateRangeResult -> Bool # (/=) :: DateRangeResult -> DateRangeResult -> Bool # | |
| Show DateRangeResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> DateRangeResult -> ShowS # show :: DateRangeResult -> String # showList :: [DateRangeResult] -> ShowS # | |
| FromJSON DateRangeResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods parseJSON :: Value -> Parser DateRangeResult # parseJSONList :: Value -> Parser [DateRangeResult] # | |
| BucketAggregation DateRangeResult Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods key :: DateRangeResult -> BucketValue Source # docCount :: DateRangeResult -> Int Source # aggs :: DateRangeResult -> Maybe AggregationResults Source # | |
data TopHitResult a Source #
Constructors
| TopHitResult | |
Fields
| |
Instances
| Eq a => Eq (TopHitResult a) Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods (==) :: TopHitResult a -> TopHitResult a -> Bool # (/=) :: TopHitResult a -> TopHitResult a -> Bool # | |
| Show a => Show (TopHitResult a) Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods showsPrec :: Int -> TopHitResult a -> ShowS # show :: TopHitResult a -> String # showList :: [TopHitResult a] -> ShowS # | |
| FromJSON a => FromJSON (TopHitResult a) Source # | |
Defined in Database.Bloodhound.Internal.Aggregation Methods parseJSON :: Value -> Parser (TopHitResult a) # parseJSONList :: Value -> Parser [TopHitResult a] # | |
newtype EsUsername Source #
Username type used for HTTP Basic authentication. See basicAuthHook.
Constructors
| EsUsername | |
Fields
| |
Instances
| Eq EsUsername Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Read EsUsername Source # | |
Defined in Database.Bloodhound.Internal.Client Methods readsPrec :: Int -> ReadS EsUsername # readList :: ReadS [EsUsername] # readPrec :: ReadPrec EsUsername # readListPrec :: ReadPrec [EsUsername] # | |
| Show EsUsername Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> EsUsername -> ShowS # show :: EsUsername -> String # showList :: [EsUsername] -> ShowS # | |
newtype EsPassword Source #
Password type used for HTTP Basic authentication. See basicAuthHook.
Constructors
| EsPassword | |
Fields
| |
Instances
| Eq EsPassword Source # | |
Defined in Database.Bloodhound.Internal.Client | |
| Read EsPassword Source # | |
Defined in Database.Bloodhound.Internal.Client Methods readsPrec :: Int -> ReadS EsPassword # readList :: ReadS [EsPassword] # readPrec :: ReadPrec EsPassword # readListPrec :: ReadPrec [EsPassword] # | |
| Show EsPassword Source # | |
Defined in Database.Bloodhound.Internal.Client Methods showsPrec :: Int -> EsPassword -> ShowS # show :: EsPassword -> String # showList :: [EsPassword] -> ShowS # | |
Constructors
| Analysis | |
Instances
| Eq Analysis Source # | |
| Show Analysis Source # | |
| Generic Analysis Source # | |
| ToJSON Analysis Source # | |
Defined in Database.Bloodhound.Internal.Analysis | |
| FromJSON Analysis Source # | |
| type Rep Analysis Source # | |
Defined in Database.Bloodhound.Internal.Analysis type Rep Analysis = D1 ('MetaData "Analysis" "Database.Bloodhound.Internal.Analysis" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "Analysis" 'PrefixI 'True) ((S1 ('MetaSel ('Just "analysisAnalyzer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text AnalyzerDefinition)) :*: S1 ('MetaSel ('Just "analysisTokenizer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text TokenizerDefinition))) :*: (S1 ('MetaSel ('Just "analysisTokenFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text TokenFilterDefinition)) :*: S1 ('MetaSel ('Just "analysisCharFilter") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text CharFilterDefinition))))) | |
data AnalyzerDefinition Source #
Constructors
| AnalyzerDefinition | |
Instances
data TokenizerDefinition Source #
Instances
data TokenFilterDefinition Source #
Token filters are used to create custom analyzers.
Constructors
Instances
data CharFilterDefinition Source #
Character filters are used to preprocess the stream of characters before it is passed to the tokenizer.
Constructors
| CharFilterDefinitionMapping (Map Text Text) | |
| CharFilterDefinitionPatternReplace | |
Instances
| Eq CharFilterDefinition Source # | |
Defined in Database.Bloodhound.Internal.Analysis Methods (==) :: CharFilterDefinition -> CharFilterDefinition -> Bool # (/=) :: CharFilterDefinition -> CharFilterDefinition -> Bool # | |
| Show CharFilterDefinition Source # | |
Defined in Database.Bloodhound.Internal.Analysis Methods showsPrec :: Int -> CharFilterDefinition -> ShowS # show :: CharFilterDefinition -> String # showList :: [CharFilterDefinition] -> ShowS # | |
| ToJSON CharFilterDefinition Source # | |
Defined in Database.Bloodhound.Internal.Analysis Methods toJSON :: CharFilterDefinition -> Value # toEncoding :: CharFilterDefinition -> Encoding # toJSONList :: [CharFilterDefinition] -> Value # toEncodingList :: [CharFilterDefinition] -> Encoding # | |
| FromJSON CharFilterDefinition Source # | |
Defined in Database.Bloodhound.Internal.Analysis Methods parseJSON :: Value -> Parser CharFilterDefinition # parseJSONList :: Value -> Parser [CharFilterDefinition] # | |
Constructors
| Ngram | |
Fields
| |
Instances
| Eq Ngram Source # | |
| Show Ngram Source # | |
| Generic Ngram Source # | |
| type Rep Ngram Source # | |
Defined in Database.Bloodhound.Internal.Analysis type Rep Ngram = D1 ('MetaData "Ngram" "Database.Bloodhound.Internal.Analysis" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "Ngram" 'PrefixI 'True) (S1 ('MetaSel ('Just "ngramMinGram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: (S1 ('MetaSel ('Just "ngramMaxGram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "ngramTokenChars") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [TokenChar])))) | |
data NgramFilter Source #
Constructors
| NgramFilter | |
Fields | |
Instances
| Eq NgramFilter Source # | |
Defined in Database.Bloodhound.Internal.Analysis | |
| Show NgramFilter Source # | |
Defined in Database.Bloodhound.Internal.Analysis Methods showsPrec :: Int -> NgramFilter -> ShowS # show :: NgramFilter -> String # showList :: [NgramFilter] -> ShowS # | |
| Generic NgramFilter Source # | |
Defined in Database.Bloodhound.Internal.Analysis Associated Types type Rep NgramFilter :: Type -> Type # | |
| type Rep NgramFilter Source # | |
Defined in Database.Bloodhound.Internal.Analysis type Rep NgramFilter = D1 ('MetaData "NgramFilter" "Database.Bloodhound.Internal.Analysis" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) (C1 ('MetaCons "NgramFilter" 'PrefixI 'True) (S1 ('MetaSel ('Just "ngramFilterMinGram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "ngramFilterMaxGram") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) | |
data EdgeNgramFilterSide Source #
Constructors
| EdgeNgramFilterSideFront | |
| EdgeNgramFilterSideBack |
Instances
Constructors
| TokenLetter | |
| TokenDigit | |
| TokenWhitespace | |
| TokenPunctuation | |
| TokenSymbol |
Instances
| Eq TokenChar Source # | |
| Show TokenChar Source # | |
| Generic TokenChar Source # | |
| ToJSON TokenChar Source # | |
Defined in Database.Bloodhound.Internal.Analysis | |
| FromJSON TokenChar Source # | |
| type Rep TokenChar Source # | |
Defined in Database.Bloodhound.Internal.Analysis type Rep TokenChar = D1 ('MetaData "TokenChar" "Database.Bloodhound.Internal.Analysis" "bloodhound-0.19.1.0-56PePOWCTbaI0sFS5x0lcW" 'False) ((C1 ('MetaCons "TokenLetter" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TokenDigit" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "TokenWhitespace" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TokenPunctuation" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TokenSymbol" 'PrefixI 'False) (U1 :: Type -> Type)))) | |
Constructors
| Shingle | |
Instances
The set of languages that can be passed to various analyzers,
filters, etc. in Elasticsearch. Most data types in this module
that have a Language field are actually only actually to
handle a subset of these languages. Consult the official
Elasticsearch documentation to see what is actually supported.
Constructors