...
Enable elasticsearch for casebrowser fulltext search
addAdd pi_query_search to the list of overrided pageproviders.
Code Block |
---|
elasticsearch.override.pageproviders=default_search,pi_query_search |
Each page prover name Values listed in elasticsearch.override.pageproviders will give new alias names to ElasticSearchNxqlPageProvider and this provider will be returned by PageProviderService if one of the alias names will be provided in ittell the PageProviderService to use ElasticSearchNxqlPageProvider as a replacer to the default page provider.
pi_query_search is our custom page provider name which which is used only in PiDocumentPaginatedQuery when it is called with when elasticsearch=true flag. Now PiDocumentPaginatedQuery is . Only when users search in the yellow filter box and search dialog, PiDocumentPaginatedQuery will be called with elasticsearch=true flag only for fulltext searches (yellow search box and search window). In all other cases PiDocumentPaginatedQuery with elasticsearch=false or original DocumentPaginatedQuery is called.
...
default_search is a default value of elasticsearch.override.pageproviders so we have to leave it in the list when uncommenting
Code Block |
---|
elasticsearch.override.pageproviders=default_search,pi_query_search |