adminer icon indicating copy to clipboard operation
adminer copied to clipboard

Fix selecting from Elasticsearch with conditions

Open peterpp opened this issue 4 years ago • 2 comments

Query type "filtered" has been depraceted and is unsupported in current Elastic version. "bool" query has to be used instead. This pull request:

  • fixes searching
  • adds "must", "should", "must_not" conditions
  • fixes searching in system "_id" field
  • displays real error retuned by Elastic instead of general "Invalid credentials."
  • remove empty body from requests that don't support them (7.14 compatibility)

peterpp avatar Mar 21 '21 20:03 peterpp

I rebased this branch onto field-priviledges (https://github.com/vrana/adminer/pull/422)

peterpp avatar Apr 05 '21 10:04 peterpp

Displaying the real error is indeed a problem with 4.8.0. I get "invalid credentials" for every error.

cweiske avatar Apr 27 '21 07:04 cweiske