Safe Haskell | None |
---|
- createIndex :: Server -> IndexSettings -> IndexName -> IO Reply
- deleteIndex :: Server -> IndexName -> IO Reply
- indexExists :: Server -> IndexName -> IO Bool
- openIndex :: Server -> IndexName -> IO Reply
- closeIndex :: Server -> IndexName -> IO Reply
- putMapping :: ToJSON a => Server -> IndexName -> MappingName -> a -> IO Reply
- deleteMapping :: Server -> IndexName -> MappingName -> IO Reply
- indexDocument :: ToJSON doc => Server -> IndexName -> MappingName -> doc -> DocId -> IO Reply
- getDocument :: Server -> IndexName -> MappingName -> DocId -> IO Reply
- documentExists :: Server -> IndexName -> MappingName -> DocId -> IO Bool
- deleteDocument :: Server -> IndexName -> MappingName -> DocId -> IO Reply
- searchAll :: Server -> Search -> IO Reply
- searchByIndex :: Server -> IndexName -> Search -> IO Reply
- searchByType :: Server -> IndexName -> MappingName -> Search -> IO Reply
- refreshIndex :: Server -> IndexName -> IO Reply
- mkSearch :: Maybe Query -> Maybe Filter -> Search
- bulk :: Server -> [BulkOperation] -> IO Reply
- pageSearch :: Int -> Int -> Search -> Search
- mkShardCount :: Int -> Maybe ShardCount
- mkReplicaCount :: Int -> Maybe ReplicaCount
- getStatus :: Server -> IO (Maybe Status)
Documentation
createIndex :: Server -> IndexSettings -> IndexName -> IO ReplySource
putMapping :: ToJSON a => Server -> IndexName -> MappingName -> a -> IO ReplySource
putMapping is an HTTP PUT and has upsert semantics. Mappings are schemas for documents in indexes.
deleteMapping :: Server -> IndexName -> MappingName -> IO ReplySource
indexDocument :: ToJSON doc => Server -> IndexName -> MappingName -> doc -> DocId -> IO ReplySource
getDocument :: Server -> IndexName -> MappingName -> DocId -> IO ReplySource
documentExists :: Server -> IndexName -> MappingName -> DocId -> IO BoolSource
deleteDocument :: Server -> IndexName -> MappingName -> DocId -> IO ReplySource
searchByType :: Server -> IndexName -> MappingName -> Search -> IO ReplySource
mkShardCount :: Int -> Maybe ShardCountSource