Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This has been replaced by the Auto-Deploy setup technology you can find here. The below may serve to find some helpful information in case of issues or deeper interest.

-----------------------------------------------------------------------------------------------------------------------------

Table of Contents
Table of Contents

Enable

...

external elasticsearch server

Add this lines to nuxeo.conf. 

...

Change localhost to address(es) of the elasicsearch servers.

Enable  elasticsearch for casebrowser fulltext search

Add pi_queryelastic_search to the list of overrided pageproviders.

Code Block
elasticsearch.override.pageproviders=default_search,pi_queryelastic_search

Each page prover name listed in elasticsearch.override.pageproviders will tell the PageProviderService to use ElasticSearchNxqlPageProvider as a replacer to the default page provider.

pi_queryelastic_search is our custom page provider name which is used only in PiDocumentPaginatedQuery when it is called when elasticsearch=true. Only in PiElasticDocumentPaginatedQuery.

PiElasticDocumentPaginatedQuery is called only when users search in through the yellow filter box and or search dialog, PiDocumentPaginatedQuery will be called with elasticsearch=true flag. In all other cases PiDocumentPaginatedQuery with elasticsearch=false or original DocumentPaginatedQuery is called.

PiDocumentPaginatedQuery with elasticsearch=false and DocumentPaginatedQuery works in absolutely same way.

default_search is a default value of elasticsearch.override.pageproviders so we have to leave it in the list when uncommenting

 
There is a diagnosis servlet for listing all searchable indexes in a given case, using URL endpoint:

http://<server_host>/casebrowser/admin/documents-index-info?case_number=<case_ref>

e.g.

http://our-dms-server.com:9080/casebrowser/admin/documents-index-info?case_number=P1046DEEP

 

Another diagnosis servlet returns elasticsearch configuration and number of processed documents in categories: textExtraction, mailAnalysis, previewGenerating

URL: http://<server_host>/casebrowser/admin/processing-info