Remove check for queryMethod from search adapter code specific to elastic search

Hi team,

While going through the code of search adapter for elastic search. I just noticed some checks for the queryMethod. As per my understanding, all the search queries will have GET as queryMethod and we can remove such checks.

Is there anything I am missing or should I proceed on working towards it?

Aditya Sharma

Hi, you can still switch to POST in config (well, that’s what the if-clause looks fore), which sometimes makes sense e.g. when GET-URLs would become very long (there are limits for borwesrs and servers how long urls can become).

1 Like

Thanks @reVLis for your answer. Indeed that makes sense.