...
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 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 wayor search dialog.
default_search is a default value of elasticsearch.override.pageproviders so we have to leave it in the list when uncommenting
...