Nuxeo Server

How to Make a Page Provider or Content View Query Elasticsearch Index

Updated: September 22, 2017 Page Information Edit on GitHub

When configuring a content view in Nuxeo Studio, you can make it query Elasticsearch instead of the Core API. This may be interesting for performance/scalability reasons as well as for enabling aggregates support. This page lists the required steps:

Make sure the Nuxeo JSF UI target package is checked in your project's Application Definition to get all the needed features in Nuxeo Studio.

Overriding an Existing Page Provider

See in nuxeo.conf the property "elasticsearch.override.pageproviders". Uncomment it and pickup some of the mentioned page providers.

elasticsearch.override.pageproviders=default_search,document_content,section_content,document_content,tree_children,default_document_suggestion,simple_search,advanced_search,nxql_search,DEFAULT_DOCUMENT_SUGGESTION

You can view the list of the Page Providers in the Admin Center/Elasticsearch/Page Provider tab, the CoreQueryDocumentPageProvider listed in blue can be overridden by Elasticsearch.

Configuring a New Content View  (and underlying Page Provider) With Nuxeo Studio

  1. In Studio, on the content view, on the query & form tab, check "Use Elasticsearch index" and Save.

  2. Deploy your Nuxeo Studio project. You are done!

Elasticsearch indexing is "eventually consistent". This means that depending on your indexing server charge, you may have a small delay before Elasticsearch returns the latest content update/create/delete.

 

Extract from the course What's New in Nuxeo Platform 2015 on Nuxeo University

 

3 days ago manonlumeau NXDOC-1323: Update BDE doc
2 years ago Bertrand Chauvin 20
3 years ago Solen Guitter 19
3 years ago Solen Guitter 18
3 years ago Solen Guitter 17
3 years ago Benoit Delbosc 16
3 years ago Benoit Delbosc 15
3 years ago Alain Escaffre 14
3 years ago Alain Escaffre 13
3 years ago Solen Guitter 12
3 years ago Solen Guitter 11
3 years ago Alain Escaffre 9
3 years ago Alain Escaffre 10
3 years ago Alain Escaffre 8
3 years ago Alain Escaffre 7
3 years ago Solen Guitter 6
3 years ago Manon Lumeau 5
3 years ago Florent Guillaume 4
3 years ago Alain Escaffre 3
3 years ago Alain Escaffre 2
3 years ago Alain Escaffre 1
History: Created by Alain Escaffre