<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: fulltext search and highlight : empty contextParameters in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/fulltext-search-and-highlight-empty-contextparameters/m-p/313132#M133</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Problem resolved !&lt;/P&gt;
&lt;P&gt;I added my custom page provider in nuxeo.conf&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;elasticsearch.override.pageproviders=document_full_text_search


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2023 15:32:02 GMT</pubDate>
    <dc:creator>Ghazi_HAKIM</dc:creator>
    <dc:date>2023-10-16T15:32:02Z</dc:date>
    <item>
      <title>fulltext search and highlight : empty contextParameters</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/fulltext-search-and-highlight-empty-contextparameters/m-p/313131#M132</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I created a custom Page Provider to search for specific words in a specific document :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;coreQueryPageProvider name="document_full_text_search"&amp;gt;
	&amp;lt;trackUsage&amp;gt;true&amp;lt;/trackUsage&amp;gt;
	&amp;lt;property name="coreSession"&amp;gt;#{documentManager}&amp;lt;/property&amp;gt;
	&amp;lt;whereClause docType="DefaultSearch"&amp;gt;
		&amp;lt;fixedPart&amp;gt;
			ecm:uuid = ?
		&amp;lt;/fixedPart&amp;gt;
		&amp;lt;predicate parameter="ecm:fulltext" operator="FULLTEXT"&amp;gt;
			&amp;lt;field schema="default_search" name="ecm_fulltext" /&amp;gt;
		&amp;lt;/predicate&amp;gt;
	&amp;lt;/whereClause&amp;gt;
	&amp;lt;pageSize&amp;gt;1&amp;lt;/pageSize&amp;gt;
&amp;lt;/coreQueryPageProvider&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But when I test my Page Provider : &lt;A href="http://host:port/nuxeo/api/v1/search/pp/document_full_text_search/execute?ecm_fulltext=test&amp;amp;highlight=ecm:binarytext&amp;amp;enrichers.document=highlight&amp;amp;queryParams=my_document_id" target="test_blank"&gt;http://host:port/nuxeo/api/v1/search/pp/document_full_text_search/execute?ecm_fulltext=test&amp;amp;highlight=ecm:binarytext&amp;amp;enrichers.document=highlight&amp;amp;queryParams=my_document_id&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;The document is returned but contextParameters is empty in the Json !&lt;/P&gt;
&lt;P&gt;Do you know why ?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 13:50:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/fulltext-search-and-highlight-empty-contextparameters/m-p/313131#M132</guid>
      <dc:creator>Ghazi_HAKIM</dc:creator>
      <dc:date>2023-08-02T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: fulltext search and highlight : empty contextParameters</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/fulltext-search-and-highlight-empty-contextparameters/m-p/313132#M133</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Problem resolved !&lt;/P&gt;
&lt;P&gt;I added my custom page provider in nuxeo.conf&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;elasticsearch.override.pageproviders=document_full_text_search


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2023 15:32:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/fulltext-search-and-highlight-empty-contextparameters/m-p/313132#M133</guid>
      <dc:creator>Ghazi_HAKIM</dc:creator>
      <dc:date>2023-10-16T15:32:02Z</dc:date>
    </item>
  </channel>
</rss>

