Skip to content

Conversation

@fxprunayre
Copy link
Member

@fxprunayre fxprunayre commented Jun 14, 2017

Overview

Main goal of this proposal is to restore and improve search statistics. Currently search statistics have some limitations:

  • CSW and q services are not logged since DrillDownQuery are used (hierarchical facet)
  • When lots of stats are available, UI is not working properly (eg. browser freeze, timeout)

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:

image

By default, 2 dashboards are provided:

  • one for search statistics
  • one for catalog content

... but user can create new dashboard and add them to the tab list by JS configuration:

image

@fxprunayre fxprunayre added this to the 3.4.0 milestone Jun 14, 2017
client = ApplicationContextHolder.get().getBean(EsClient.class);
client.bulkRequest(index, listOfDocumentsToIndex);
} catch (JsonProcessingException e) {
e.printStackTrace();
Copy link
Member

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) {
Copy link
Member

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?

@fxprunayre
Copy link
Member Author

Replaced by #2082

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants