there you grab the default from the object and some lines later if not server
then and only then is a new server choosen
ive also some code to have a test for it
the retries also have an issue, these both issues cause hotspotting of servers in our environment
back in some minutes
Julian Hille
@julianhille
max_retries does not work as expected. The urlopen function from urllib has another "retry" parameter.
Tehse leads in connection timeouts too the same host used several times directly inside of urllib BEFORE the max retrying starts to be used inside of pyes.
Vitaly Babiy
@vbabiy
Is there a way with pyes queryset to run an or query?
@aparo when I try to use complex_filter with a Q object I get _filter_or_exclude() argument after ** must be a mapping, not Q
Do I need to wrap the Q object?
The docs suggest I should be able to use a Q object
Alberto Paro
@aparo
you can pass an OrFilyer
Vitaly Babiy
@vbabiy
@aparo okay so don't use Q objects?
Should the OrFilter just be a list of TermFilters?
_
Alberto Paro
@aparo
OrFilter takes a list of Filter.
you can put every kind of filters *Filter classes
Julian Hille
@julianhille
alberto have you looked at the issues (max retries, load balancing).
Alberto Paro
@aparo
I’m sorry. I’ll be at work today and I cannot debug until tonight
the trick will be to take a random server from the connection list of servers
I’ll try to check if I’ve time during lunch
Julian Hille
@julianhille
i think only line 106 need to be deleted
Julian Hille
@julianhille
good day. alberto did you manage to have a look? :)
Alberto Paro
@aparo
I’ve no time, but looking for develop branch I migrate to use native ElasticSearch driver, that should manage automatically the balancer
Farhan Syed
@Nearhan
does this support percolator?
Alberto Paro
@aparo
since several years
patilvikram
@patilvikram
hi
Alberto Paro
@aparo
hi
patilvikram
@patilvikram
I have just started using pyes for Elasticsearch
Alberto Paro
@aparo
do you need some help?
patilvikram
@patilvikram
I would like to contribute as well
yes I do
I am looking for BoostingQuery implementation but I could not find one