Skip to content

How to create one kafka source, multiple indexes #5453

Answered by fulmicoton
YangTao0 asked this question in Q&A
Discussion options

You must be logged in to vote

Creating one kafka source to feed different indexes is not really possible.

painful workaround 1:
Create one source per index and use transform to filter out the message not targetted for your index.
If you have N index, your data will be read from kafka N times instead of 1. This is VERY inefficient as N grows.

workaround 2:
If you have the same document mapping for all indexes and you wanted different indexes for search efficiency only, one thing you can do is have a single index and use partitioning.

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@YangTao0
Comment options

Answer selected by YangTao0
Comment options

You must be logged in to vote
1 reply
@YangTao0
Comment options

Comment options

You must be logged in to vote
3 replies
@fulmicoton
Comment options

@YangTao0
Comment options

@YangTao0
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants