[opencms-dev] OpenCms 8.5.1 - Solr query on collector.date

Siegfried Ehret s.ehret at eurelis.com
Tue Jun 4 11:35:36 CEST 2013


Your date format may be incorrect.
This is an example working query we have to retrieve our news: 
fq=type:news&sort=DateStart_fr_dt desc&fq=parent-folders:/shared/contents/news/&rows=50&start=0& fq=DateStart_fr_dt:[2012-06-03T11:27:28Z TO *]

In the schema, we have the following element:
      <xsd:element name="DateStart" type="OpenCmsDateTime" minOccurs="1" maxOccurs="1"/>

And the following search setting:

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

Hope this will help.

Siegfried Ehret


-----Message d'origine-----
De : opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] De la part de Cavva
Envoyé : mardi 4 juin 2013 10:58
À : opencms-dev at opencms.org
Objet : [opencms-dev] OpenCms 8.5.1 - Solr query on collector.date

Hi all,

I'm trying to query with solr on the collector.date_exact field. It seems not to work.
the query I'm requesting with the contentload is:

core=Solr Offline&fq=parent-folders:/sites/default/&q=colletor.date_exact:[
1359241200000 TO * ]&rows=150000000

I do not receive any results although I have elements that are into.

What's the problem?

Regards,

Davide



--
View this message in context: http://opencms.996256.n3.nabble.com/OpenCms-8-5-1-Solr-query-on-collector-date-tp23326.html
Sent from the OpenCMS mailing list archive at Nabble.com.
_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your list options, or to unsubscribe from the list, please visit http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev








More information about the opencms-dev mailing list