Skip to content

Set elasticsearch options dynamically #19

Answered by wallneradam
poppelaars asked this question in Q&A
Discussion options

You must be logged in to vote

I've never used this feature of ES. So you would like to have different headers for the communications of a specific model?

If you check the source code, there is a call method of the ESModel. You could easily override it. Then every ES call will use your headers.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wallneradam
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