fulltext search and highlight : empty contextParameters

Hello,

I created a custom Page Provider to search for specific words in a specific document :

<coreQueryPageProvider name="document_full_text_search">
    <trackUsage>true</trackUsage>
    <property name="coreSession">#{documentManager}</property>
    <whereClause docType="DefaultSearch">
        <fixedPart>
            ecm:uuid = ?
        </fixedPart>
        <predicate parameter="ecm:fulltext" operator="FULLTEXT">
            <field schema="default_search" name="ecm_fulltext" />
        </predicate>
    </whereClause>
    <pageSize>1</pageSize>
</coreQueryPageProvider>

But when I test my Page Provider : http://host:port/nuxeo/api/v1/search/pp/document_full_text_search/execute?ecm_fulltext=test&highlight=ecm:binarytext&enrichers.document=highlight&queryParams=my_document_id

The document is returned but contextParameters is empty in the Json !

Do you know why ?

Thanks.

0 votes

1 answers

506 views

ANSWER



Hello,

Problem resolved !

I added my custom page provider in nuxeo.conf

elasticsearch.override.pageproviders=document_full_text_search

Regards.

0 votes