Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elasticsearch 7 driver #440

Closed
wants to merge 38 commits into from
Closed

Elasticsearch 7 driver #440

wants to merge 38 commits into from

Conversation

peterpp
Copy link
Contributor

@peterpp peterpp commented Sep 18, 2021

In Elasticsearch 7, mapping types are deprecated and there is only one system '_doc' mapping type. It does not make sense to display it anymore. So the whole presentation of Elastic indices in Adminer can be much improved. Indices can be treated as SQL tables instead of databases.

As long as this new approach is completelly different, it would by complicated to handle it by conditions in the current Elastic driver. And I honestly don't want to bother with it. So I created a brand new driver elastic7 as a plugin and use it happily.

Note that this branch is rebased onto field-priviliges (#422) which is required for this driver to work corretly.

@standa
Copy link

standa commented Dec 4, 2023

@peterpp any chance you could make this PR against https://github.com/adminerevo/adminerevo so it could become a part of a regular release? (Thank you! :-)

@peterpp
Copy link
Contributor Author

peterpp commented Dec 7, 2023

Yes, I noticed activity around adminerevo and I'm happy that somebody is willing to do at least basic maintenance. I am quite busy right now, but I will prepare it.

Roy-Orbison and others added 26 commits March 15, 2024 23:02
Signed-off-by: Roy-Orbison <Roy-Orbison@users.noreply.github.com>
(cherry picked from commit 2717333)
(cherry picked from commit fad4ce7)
Some informal words has been replaced with formal words. Some incorrect words has been corrected.

(cherry picked from commit a4ebae8)

(cherry picked from commit 965598b)
(cherry picked from commit 6024d73)
(cherry picked from commit 33fcfbc)
(cherry picked from commit 7338ead)
and fix a media query.

Signed-off-by: Lucas Sandery <lucas-sandery@users.noreply.github.com>
(cherry picked from commit 4b0b011)
- Allow only scheme, host and port in the server field.
- Use proper default host and port in Elasticsearch and ClickHouse driver.
In Elasticsearch, only indexed fields are searchable.
In Elasticsearch, text fields are not sortable.
@peterpp peterpp force-pushed the elastic7 branch 8 times, most recently from 2e15434 to 515708c Compare March 17, 2024 09:38
- Allow to choose "must", "should", "must_not" condition.
- Add system "_id" column to the field list. So it can be used in search condition.
- Allow to search only in fields with index.
Mapping types are still supported in version 6, but only one mapping type can be created.
In version 7, mapping types are deprecated and there is only one system '_doc' mapping type.
See: https://www.elastic.co/guide/en/elasticsearch/reference/6.0/removal-of-types.html
- Removed empty body from requests.
@peterpp peterpp force-pushed the elastic7 branch 5 times, most recently from 285c6b8 to 04ecf52 Compare March 17, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
10 participants