Documentation ¶
Index ¶
- Constants
- type Document
- type DocumentSearch
- type FilterParams
- type Index
- type IndexStatus
- type Indices
- type PointInTime
- type SearchRequestBody
- type Source
- func (s *Source) Chunks(ctx context.Context, chunksChan chan *sources.Chunk, ...) error
- func (s *Source) Init(aCtx context.Context, name string, jobId sources.JobID, ...) error
- func (s *Source) JobID() sources.JobID
- func (s *Source) SourceID() sources.SourceID
- func (s *Source) Type() sourcespb.SourceType
- type UnitOfWork
Constants ¶
View Source
const PAGE_SIZE = 10
View Source
const SourceType = sourcespb.SourceType_SOURCE_TYPE_ELASTICSEARCH
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentSearch ¶
type DocumentSearch struct {
// contains filtered or unexported fields
}
func (*DocumentSearch) String ¶
func (ds *DocumentSearch) String() string
type FilterParams ¶
type FilterParams struct {
// contains filtered or unexported fields
}
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (*Index) DocumentAlreadySeen ¶
func (*Index) UpdateLatestTimestampLastRun ¶
func (i *Index) UpdateLatestTimestampLastRun()
type IndexStatus ¶
type IndexStatus int
type Indices ¶
type Indices struct {
// contains filtered or unexported fields
}
func (*Indices) GetProcessedDocumentCount ¶
Returns the number of documents processed within these indices
func (*Indices) Update ¶
Updates a set of indices from an Elasticsearch cluster. If an index has been deleted it will be removed; if it's been added it'll be added; if its document count has changed (based on filterParams and latestTimestamp) it'll be updated.
func (*Indices) UpdateProcessedDocumentCount ¶
Adds documents processed to the count, used for progress
type PointInTime ¶
type SearchRequestBody ¶
type SearchRequestBody struct { PIT PointInTime `json:"pit"` Sort []string `json:"sort"` SearchAfter []int `json:"search_after,omitempty"` Query map[string]any `json:"query,omitempty"` }
type Source ¶
func (*Source) Chunks ¶
func (s *Source) Chunks( ctx context.Context, chunksChan chan *sources.Chunk, targets ...sources.ChunkingTarget, ) error
Chunks emits chunks of bytes over a channel.
func (*Source) Init ¶
func (s *Source) Init( aCtx context.Context, name string, jobId sources.JobID, sourceId sources.SourceID, verify bool, connection *anypb.Any, concurrency int, ) error
Init returns an initialized Elasticsearch source
func (*Source) Type ¶
func (s *Source) Type() sourcespb.SourceType
type UnitOfWork ¶
type UnitOfWork struct {
// contains filtered or unexported fields
}
func NewUnitOfWork ¶
func NewUnitOfWork(maxDocumentCount int) UnitOfWork
Click to show internal directories.
Click to hide internal directories.