-
-
Notifications
You must be signed in to change notification settings - Fork 501
Search statistics / Move from database to elasticsearch and kibana #2023
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
Conversation
…ore a number of issues/features in search statistics.
039c770 to
5170397
Compare
| client = ApplicationContextHolder.get().getBean(EsClient.class); | ||
| client.bulkRequest(index, listOfDocumentsToIndex); | ||
| } catch (JsonProcessingException e) { | ||
| e.printStackTrace(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A general comment, instead of printStackTrace would be better to use the logger to log the exception to avoid unwanted information disclosure.
| } catch (JsonProcessingException e) { | ||
| e.printStackTrace(); | ||
| return false; | ||
| } catch (IOException e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only JsonProcessingException and IOException are catch. Can happen other exceptions and if so should be catched to avoid if any error in ES indexing affects the current feature in GeoNetwork?
…database due to process ignoring excluded terms.
|
Replaced by #2082 |
Overview
Main goal of this proposal is to restore and improve search statistics. Currently search statistics have some limitations:
This work will also help on the future migration from Lucene to Elasticsearch.
It will also reduce a lot the size of the database by removing "requests" and "params" tables.
Proposal
In the admin console, Kibana is used to render the dashboard:
By default, 2 dashboards are provided:
... but user can create new dashboard and add them to the tab list by JS configuration: