1.3.4.0 deprecates setFilter in favour of setPostFilter. I need to use filtering due to facets. There is no obvious way to handle this with if-else to be compatible with both version without causing flood of deprecation notices.
Possible options are contacting upstream, just coordinating simultaneous update with WMF, having a version number provider in Elastica.