[opencms-dev] Date store in Solr (OpenCms 8.5)

Rüdiger Kurz r.kurz at alkacon.com
Fri Dec 21 15:18:42 CET 2012


Hi,

Am 21.12.2012 15:03, schrieb Siegfried Ehret:
> Hi,
> I have a field, named Date, with the type OpenCmsString, which use a DateTimeWidget.
> OpenCms stores it as a timestamp (for example 1170233760000), like expired, created etc.
> Why dates aren't store as iso 8601 date ? (See http://wiki.apache.org/solr/SolrQuerySyntax)

next to the fact the as you said the type of the field is OpenCmsString 
it es necessary to add something like:

     <searchsetting element="Release" searchcontent="false">
       <solrfield targetfield="arelease" sourcefield="*_dt" />
     </searchsetting>

to the XSD of your XML content.

regards

-- 
Kind Regards,
Rüdiger.

-------------------

Rüdiger Kurz

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org



More information about the opencms-dev mailing list