RE: How to change the default format for tstamp?

2012-05-08 Thread Markus Jelsma
You should upgrade your Nutch version. Nutch 1.4 writes dates in the 
format Solr understands.


On Tue, 8 May 2012 06:03:25 -0700 (PDT), forwardswing 
 wrote:

I am a learner to nutch,can you please describe in more detail?
For example,from where and how to execute the SQL?

--
View this message in context:

http://lucene.472066.n3.nabble.com/How-to-change-the-default-format-for-tstamp-tp3970751p3971251.html
Sent from the Solr - User mailing list archive at Nabble.com.


--
Markus Jelsma - CTO - Openindex


RE: How to change the default format for tstamp?

2012-05-08 Thread forwardswing
I am a learner to nutch,can you please describe in more detail?
For example,from where and how to execute the SQL?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-change-the-default-format-for-tstamp-tp3970751p3971251.html
Sent from the Solr - User mailing list archive at Nabble.com.


RE: How to change the default format for tstamp?

2012-05-08 Thread Agnesrani Nadar
SELECT  DATE_FORMAT( ts.insertDate,'%Y-%m-%d-%k:%i:%S') as insertDate, 

Try to use the above DATE_FORMAT you will get the date as 
2012-03-24-14:07:59 
-Original Message-
From: forwardswing [mailto:wangweiz...@sohu.com] 
Sent: Tuesday, May 08, 2012 2:22 PM
To: solr-user@lucene.apache.org
Subject: How to change the default format for tstamp?

When i use Nutch1.2 & Solr1.4,from Nutch i use the following command to
commit the index to Solr:
bin/nutch crawl urls -dir ...

But there is an error in Solr:
 ERROR : org.apache.solr.core.SolrCore  -
org.apache.solr.common.SolrException: Error while creating field
'tstamp{type=date,properties=stored}' from value '20120508013912168'

After the checking for Solr's source code,i found that Solr didnot recognize
this string format.
So i want to change the tstamp value's format to "2012-05-08-01:39:12.168Z"

Who can help me ?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-change-the-default-format-for-tstamp-tp3970751.html
Sent from the Solr - User mailing list archive at Nabble.com.



How to change the default format for tstamp?

2012-05-08 Thread forwardswing
When i use Nutch1.2 & Solr1.4,from Nutch i use the following command to
commit the index to Solr:
bin/nutch crawl urls -dir ...

But there is an error in Solr:
 ERROR : org.apache.solr.core.SolrCore  -
org.apache.solr.common.SolrException: Error while creating field
'tstamp{type=date,properties=stored}' from value '20120508013912168'

After the checking for Solr's source code,i found that Solr didnot recognize
this string format.
So i want to change the tstamp value's format to "2012-05-08-01:39:12.168Z"

Who can help me ?

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-change-the-default-format-for-tstamp-tp3970751.html
Sent from the Solr - User mailing list archive at Nabble.com.