cancel
Showing results for 
Search instead for 
Did you mean: 

PropertyNotFoundException in custom search

Corentin_Bourdo
Champ on-the-rise
Champ on-the-rise

Hi,

I am trying to override the default search form to add some custom fields and remove the fields "nature", "subject" and "coverage".

I copy-pasted the code from nuxeo-default-search-form, removed the widgets that I did not want and added one for a custom type. Here is the code of that widget :

<div role="widget">    <label>[[i18n('search.code')]]</label>    <nuxeo-dropdown-aggregation placeholder="[[i18n('search.code.placeholder')]]"                                data="[[aggregations.hwp_code]]"                                value="{{params.hwp_code}}"                                multiple="true"                                name="code">    </nuxeo-dropdown-aggregation></div>

I created a custom schema with the same code as default_search, removed the elements that I did not want and added my custom fields. Here is the definition of that schema :

<?xml version="1.0"?><xs:schema targetNamespace="http://www.nuxeo.org/ecm/project/schemas/arturia-haystack/search"           xmlns:xs="http://www.w3.org/2001/XMLSchema"           xmlns:nxs="http://www.nuxeo.org/ecm/project/schemas/arturia-haystack/search">  <xs:include schemaLocation="base.xsd" />  <xs:element name="ecm_fulltext" type="xs:string" />  <xs:element name="ecm_tags" type="nxs:stringList"/>  <xs:element name="dc_created_min" type="xs:date" />  <xs:element name="dc_created_max" type="xs:date" />  <xs:element name="dc_modified_min" type="xs:date" />  <xs:element name="dc_modified_max" type="xs:date" />  <xs:element name="dc_creator" type="nxs:stringList" />  <!--  <xs:element name="dc_nature" type="nxs:stringList" />  <xs:element name="dc_coverage" type="nxs:stringList" />  <xs:element name="dc_subjects" type="nxs:stringList" />  -->  <xs:element name="ecm_path" type="nxs:stringList"/>  <xs:element name="ecm_collections" type="nxs:stringList"/>  <xs:element name="hwp_departments" type="nxs:stringList"/>  <xs:element name="hwp_code" type="nxs:stringList"/>  <xs:element name="doc_doctype" type="nxs:stringList"/>  <xs:element name="doc_sku" type="nxs:stringList"/>  <xs:element name="doc_phase_hw" type="nxs:stringList"/>  <!-- aggregates field-->  <xs:element name="dc_creator_agg" type="nxs:stringList" />  <xs:element name="dc_created_agg" type="nxs:stringList" />  <xs:element name="dc_modified_agg" type="nxs:stringList" />  <xs:element name="dc_nature_agg" type="nxs:stringList" />  <xs:element name="dc_subjects_agg" type="nxs:stringList" />  <xs:element name="dc_coverage_agg" type="nxs:stringList" />  <xs:element name="common_size_agg" type="nxs:stringList" />  <xs:element name="hwp_departments_agg" type="nxs:stringList"/>  <xs:element name="hwp_code_agg" type="nxs:stringList"/>  <xs:element name="doc_doctype_agg" type="nxs:stringList"/>  <xs:element name="doc_sku_agg" type="nxs:stringList"/>  <xs:element name="doc_phase_hw_agg" type="nxs:stringList"/></xs:schema>

Then I created a document type with this schema and the "ContentViewDisplay" facet, just like DefaultSearch

Then I declared the page provider for the search. Once again I just copy-pasted the default_search provider, replaced the references to the default_search schema with my custom schema's id and added predicates and aggregates for my custom fields. Here is the code of this provider :

<coreQueryPageProvider name="search_provider">  <trackUsage>true</trackUsage>  <whereClause docType="Search">    <fixedPart>      ecm:primaryType NOT IN ('Domain', 'SectionRoot', 'TemplateRoot', 'WorkspaceRoot', 'Favorites')      AND ecm:mixinType != 'HiddenInNavigation'      AND NOT (ecm:mixinType = 'Collection' AND ecm:name = 'Locally Edited')      AND ecm:isCheckedInVersion = 0      AND ecm:currentLifeCycleState != 'deleted'      AND ecm:parentId IS NOT NULL      AND SORTED_COLUMN IS NOT NULL    </fixedPart>    <predicate parameter="ecm:fulltext" operator="FULLTEXT">      <field schema="search" name="ecm_fulltext" />    </predicate>    <predicate parameter="dc:creator" operator="IN">      <field schema="search" name="dc_creator" />    </predicate>    <predicate parameter="dc:created" operator="BETWEEN">      <field schema="search" name="dc_created_min" />      <field schema="search" name="dc_created_max" />    </predicate>    <predicate parameter="dc:modified" operator="BETWEEN">      <field schema="search" name="dc_modified_min" />      <field schema="search" name="dc_modified_max" />    </predicate>    <!--    <predicate parameter="dc:nature" operator="IN">      <field schema="default_search" name="dc_nature" />    </predicate>    <predicate parameter="dc:subjects" operator="STARTSWITH">      <field schema="default_search" name="dc_subjects" />    </predicate>    <predicate parameter="dc:coverage" operator="STARTSWITH">      <field schema="default_search" name="dc_coverage" />    </predicate>    -->    <predicate parameter="ecm:path" operator="STARTSWITH">      <field schema="search" name="ecm_path" />    </predicate>    <predicate parameter="ecm:tag" operator="IN">      <field schema="search" name="ecm_tags" />    </predicate>    <predicate parameter="collectionMember:collectionIds"               operator="IN">      <field schema="search" name="ecm_collections" />    </predicate>    <predicate parameter="hwp:code" operator="IN">      <field schema="search" name="hwp_code" />    </predicate>  </whereClause>  <aggregates>    <!--    <aggregate id="dc_nature_agg" type="terms" parameter="dc:nature">      <field schema="search" name="dc_nature_agg" />      <properties>        <property name="size">10</property>      </properties>    </aggregate>    <aggregate id="dc_subjects_agg" type="terms" parameter="dc:subjects">      <field schema="search" name="dc_subjects_agg" />      <properties>        <property name="size">10</property>      </properties>    </aggregate>    <aggregate id="dc_coverage_agg" type="terms" parameter="dc:coverage">      <field schema="search" name="dc_coverage_agg" />      <properties>        <property name="size">10</property>      </properties>    </aggregate>    -->    <aggregate id="dc_creator_agg" type="terms" parameter="dc:creator">      <field schema="search" name="dc_creator_agg" />      <properties>        <property name="size">10</property>      </properties>    </aggregate>    <aggregate id="common_size_agg" type="range" parameter="file:content.length">      <field schema="search" name="common_size_agg" />      <ranges>        <range key="tiny" to="102400"/>        <range key="small" from="102401" to="1048576"/>        <range key="medium" from="1048577" to="10485760"/>        <range key="big" from="10485761" to="104857600" />        <range key="huge" from="104857601" />      </ranges>    </aggregate>    <aggregate id="dc_created_agg" type="date_histogram" parameter="dc:created">      <field schema="search" name="dc_created_agg" />      <properties>        <property name="interval">month</property>        <property name="format">MM-yyyy</property>        <property name="order">key desc</property>      </properties>    </aggregate>    <aggregate id="dc_modified_agg" type="date_range" parameter="dc:modified">      <field schema="search" name="dc_modified_agg" />      <properties>        <property name="format">"dd-MM-yyyy"</property>      </properties>      <dateRanges>        <dateRange key="last24h" fromDate="now-24H" toDate="now"/>        <dateRange key="lastWeek" fromDate="now-7d" toDate="now-24H"/>        <dateRange key="lastMonth" fromDate="now-1M" toDate="now-7d"/>        <dateRange key="lastYear" fromDate="now-1y" toDate="now-1M"/>        <dateRange key="priorToLastYear" toDate="now-1y"/>      </dateRanges>    </aggregate>    <aggregate id="hwp_code" type="terms" parameter="hwp:code">      <field schema="search" name="hwp_code_agg" />      <properties>        <property name="size">10</property>      </properties>    </aggregate>  </aggregates>  <quickFilters>    <quickFilter name="noFolder">      <clause>ecm:mixinType != 'Folderish'</clause>    </quickFilter>    <quickFilter name="mostRecent">      <sort column="dc:modified" ascending="false" />    </quickFilter>    <quickFilter name="onlyValidated">      <clause>ecm:currentLifeCycleState = 'approved'</clause>      <sort column="dc:modified" ascending="false" />    </quickFilter>  </quickFilters>  <pageSize>20</pageSize></coreQueryPageProvider>

Finally I overrided the search form with this file, only the page provider is changing :

<nuxeo-slot-content name="defaultSearchMenuPage" slot="DRAWER_PAGES" priority="1">    <template>        <nuxeo-search-form                name="defaultSearch"                search-name="default"                auto                provider="search_provider"                schemas="dublincore,common,file,uid,hwproject,document"        ></nuxeo-search-form>    </template></nuxeo-slot-content>

and added it to the web resources by contributing to the "resources" extension point :

<?xml version="1.0"?><component name="com.arturia.haystack.core.resources">  <require>org.nuxeo.web.ui.resources</require>  <extension target="org.nuxeo.ecm.platform.WebResources" point="resources">    <resource name="haystack.html" type="import" shrinkable="false">      <uri>/ui/haystack/haystack.html</uri>    </resource>  </extension>  <extension target="org.nuxeo.ecm.platform.WebResources" point="bundles">    <bundle name="web-ui">      <resources append="true">        <resource>haystack.html</resource>      </resources>    </bundle>  </extension></component>

My form layout seems to be loaded (I can see my custom widget) but nothing is working, elasticSearch does not seem to correctly process the aggregates : I got "No available results" for checkbox widgets, and cannot launch a search.

I got the following server error every time I try to launch a search :

ERROR [http-nio-0.0.0.0-8080-exec-6] [org.nuxeo.ecm.webengine.app.WebEngineExceptionMapper] org.nuxeo.ecm.core.api.model.PropertyNotFoundException: search:dc_created_min org.nuxeo.ecm.core.api.model.PropertyNotFoundException: search:dc_created_min at org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getProperty(DocumentModelImpl.java:1212) ~[nuxeo-core-api-10.10.jar:?] at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.writeSchemaProperties(DocumentModelJsonWriter.java:220) ~[nuxeo-core-io-10.10.jar:?] at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.writeEntityBody(DocumentModelJsonWriter.java:185) ~[nuxeo-core-io-10.10.jar:?] at org.nuxeo.ecm.core.io.marshallers.json.document.DocumentModelJsonWriter.writeEntityBody(DocumentModelJsonWriter.java:107) ~[nuxeo-core-io-10.10.jar:?] at org.nuxeo.ecm.core.io.marshallers.json.ExtensibleEntityJsonWriter.write(ExtensibleEntityJsonWriter.java:80) ~[nuxeo-core-io-10.10.jar:?] at org.nuxeo.ecm.core.io.marshallers.json.AbstractJsonWriter.write(AbstractJsonWriter.java:81) ~[nuxeo-core-io-10.10.jar:?] at org.nuxeo.ecm.core.io.registry.MarshallerHelper.objectToJson(MarshallerHelper.java:99) ~[nuxeo-core-io-10.10.jar:?] at org.nuxeo.ecm.platform.query.api.AbstractPageProvider.fireSearchEvent(AbstractPageProvider.java:1025) ~[nuxeo-platform-query-api-10.10.jar:?] at org.nuxeo.ecm.platform.query.nxql.CoreQueryDocumentPageProvider.getCurrentPage(CoreQueryDocumentPageProvider.java:196) ~[nuxeo-platform-query-api-10.10.jar:?] at org.nuxeo.ecm.automation.core.util.PaginablePageProvider.(PaginablePageProvider.java:43) ~[nuxeo-core-io-10.10.jar:?] at org.nuxeo.ecm.automation.jaxrs.io.documents.PaginableDocumentModelListImpl.(PaginableDocumentModelListImpl.java:49) ~[nuxeo-core-io-10.10.jar:?] at org.nuxeo.ecm.restapi.server.jaxrs.search.QueryExecutor.queryByPageProvider(QueryExecutor.java:365) ~[nuxeo-search-rest-api-10.10.jar:?] at org.nuxeo.ecm.restapi.server.jaxrs.search.QueryExecutor.queryByPageProvider(QueryExecutor.java:324) ~[nuxeo-search-rest-api-10.10.jar:?] at org.nuxeo.ecm.restapi.server.jaxrs.search.SearchObject.doQueryByPageProvider(SearchObject.java:137) ~[nuxeo-search-rest-api-10.10.jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_252] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_252] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_252] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_252] at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ObjectOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:258) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:137) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542) ~[jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473) [jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419) [jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409) [jersey-server-1.19.4.jar:1.19.4] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409) [jersey-servlet-1.19.4.jar:1.19.4] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558) [jersey-servlet-1.19.4.jar:1.19.4] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733) [jersey-servlet-1.19.4.jar:1.19.4] at org.nuxeo.ecm.webengine.app.jersey.WebEngineServlet.containerService(WebEngineServlet.java:72) [nuxeo-webengine-core-10.10.jar:?] at org.nuxeo.ecm.webengine.app.jersey.WebEngineServlet.service(WebEngineServlet.java:56) [nuxeo-webengine-core-10.10.jar:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) [servlet-api.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-websocket.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.elasticsearch.ElasticSearchFilter.doFilter(ElasticSearchFilter.java:55) [nuxeo-elasticsearch-core-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.webengine.jaxrs.session.SessionCleanupFilter.run(SessionCleanupFilter.java:50) [nuxeo-webengine-jaxrs-10.10.jar:?] at org.nuxeo.ecm.webengine.jaxrs.HttpFilter.doFilter(HttpFilter.java:49) [nuxeo-webengine-jaxrs-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.webengine.app.WebContextFilter.doFilter(WebContextFilter.java:56) [nuxeo-webengine-core-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.webengine.jaxrs.context.RequestContextFilter.run(RequestContextFilter.java:48) [nuxeo-webengine-jaxrs-10.10.jar:?] at org.nuxeo.ecm.webengine.jaxrs.HttpFilter.doFilter(HttpFilter.java:49) [nuxeo-webengine-jaxrs-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.webengine.app.HeaderFixFilter.run(HeaderFixFilter.java:62) [nuxeo-webengine-core-10.10.jar:?] at org.nuxeo.ecm.webengine.jaxrs.HttpFilter.doFilter(HttpFilter.java:49) [nuxeo-webengine-jaxrs-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.core.management.jtajca.internal.Log4jWebFilter.doFilter(Log4jWebFilter.java:69) [nuxeo-core-management-jtajca-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter.doFilter(NuxeoRequestControllerFilter.java:134) [nuxeo-platform-web-common-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter.doFilterInternal(NuxeoAuthenticationFilter.java:633) [nuxeo-platform-web-common-10.10.jar:?] at org.nuxeo.ecm.platform.ui.web.auth.NuxeoAuthenticationFilter.doFilter(NuxeoAuthenticationFilter.java:429) [nuxeo-platform-web-common-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:67) [nuxeo-platform-web-common-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:64) [nuxeo-platform-web-common-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) [catalina.jar:9.0.14] at org.nuxeo.ecm.restapi.server.APIServlet.service(APIServlet.java:50) [nuxeo-rest-api-server-10.10.jar:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:741) [servlet-api.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) [tomcat-websocket.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.elasticsearch.ElasticSearchFilter.doFilter(ElasticSearchFilter.java:55) [nuxeo-elasticsearch-core-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoThreadTrackerFilter.doFilter(NuxeoThreadTrackerFilter.java:43) [nuxeo-platform-web-common-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoStandbyFilter.doFilter(NuxeoStandbyFilter.java:67) [nuxeo-platform-web-common-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.core.management.jtajca.internal.Log4jWebFilter.doFilter(Log4jWebFilter.java:69) [nuxeo-core-management-jtajca-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.platform.ui.web.rest.FancyURLFilter.doFilter(FancyURLFilter.java:120) [nuxeo-platform-ui-web-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoRequestControllerFilter.doFilter(NuxeoRequestControllerFilter.java:134) [nuxeo-platform-web-common-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.platform.web.common.requestcontroller.filter.NuxeoCorsCsrfFilter.doFilter(NuxeoCorsCsrfFilter.java:255) [nuxeo-platform-web-common-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.platform.web.common.exceptionhandling.NuxeoExceptionFilter.doFilter(NuxeoExceptionFilter.java:67) [nuxeo-platform-web-common-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.nuxeo.ecm.platform.web.common.encoding.NuxeoEncodingFilter.doFilter(NuxeoEncodingFilter.java:64) [nuxeo-platform-web-common-10.10.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [catalina.jar:9.0.14] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [catalina.jar:9.0.14] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [catalina.jar:9.0.14] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [catalina.jar:9.0.14] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:490) [catalina.jar:9.0.14] at org.apache.catalina.valves.rewrite.RewriteValve.invoke(RewriteValve.java:276) [catalina.jar:9.0.14] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) [catalina.jar:9.0.14] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) [catalina.jar:9.0.14] at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:668) [catalina.jar:9.0.14] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74) [catalina.jar:9.0.14] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) [catalina.jar:9.0.14] at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:408) [tomcat-coyote.jar:9.0.14] at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-coyote.jar:9.0.14] at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:834) [tomcat-coyote.jar:9.0.14] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1417) [tomcat-coyote.jar:9.0.14] at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-coyote.jar:9.0.14] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_252] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_252] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:9.0.14] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]

2 REPLIES 2

Gregory_Carlin
Elite Collaborator
Elite Collaborator

Hello,

The code is hard to read. I don't see any references anyway of the search:dc_created_min property in your files.

This is not the recommended way to do it. It better to use Nuxeo Studio and:

  • Create a custom page provider with the fields you need
  • Generate the form layout and the result layouts (you can even use the autogenerated one)
  • Create a drawer item from the quick links
  • Disable the default search

It takes less time and it is way more secured than overriding the default one.

Regards

Thank you for your answer and sorry about the code, I thought it would indent well.