Hi,

A NXQL query with a custom field (type DATE) doesn't work .

By example :

SELECT * from grctran WHERE dc:created >= TIMESTAMP '2007-12-01 00:00:00"  works

SELECT * from grctran WHERE grct:dtlivraison >= TIMESTAMP '2007-12-01 00:00:00" 
doesn't work and there are some WARN lines in server.log :

20:57:17,718 WARN  [CompassBackend] While building ResultItem, could not handle
contents of stored field grct:dtlivraison.
Check Search Service configuration and Compass mappings.

However I put these lines 
    <resource-property name="grct:dtlivraison" converter="date" store="yes"
      index="un_tokenized" />

in 
...\server\default\deploy\nuxeo.ear\platform\nuxeo-platform-search-compass-plugin-5.1.2.jar\nxdocument.cpm.xml

And my search-contrib.xml is like :

  <extension
    target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
    point="indexableDocType">
    <indexableDocType indexAllSchemas="true" name="grctran" />
  </extension>

  <extension
    target="org.nuxeo.ecm.core.search.service.SearchServiceImpl"
    point="resource">
    <resource name="grctran" prefix="grct" type="schema" indexAllFields="true">
    </resource>
  </extension>

Thanks to tell me what I forgot.






_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to