On May 26, 2011, at 1:55 PM, anass talby wrote:

> it seems like reserved key words  can't be used as field names did you try
> to changes your date field name?

Interesting thought, but it didn't seem to help.

I changed the schema so it has both a "date" and a "eventDate" field (so as not 
to invalidate my current data), and changed the copyField statement to 
from="eventDate". Then I added an eventData field to the test document 
mentioned earlier, with a one-second difference so I could be sure which was 
which. I added that doc, but the text field still doesn't have either date 
field.

Any other thoughts why I can't copyField a date into a textgen?

{
  "responseHeader":{
    "status":0,
    "QTime":5,
    "params":{
      "indent":"on",
      "start":"0",
      "q":"text:\"example for list question\"",
      "version":"2.2",
      "rows":"10"}},
  "response":{"numFound":1,"start":0,"docs":[
      {
        "id":"jackrepenningdev-p1-svn-solr-user-question-1",
        "item":"r10",
        "itemNumber":10,
        "user":"jackrepenning",
        "date":"2011-05-26T20:34:19Z",
        "eventDate":"2011-05-26T20:34:20Z",
        "log":"example for list question",
        "organization":"jackrepenningdev",
        "project":"p1",
        "system":"versioncontrol",
        "subsystem":"svn",
        "class":"operation",
        "className":"commit",
        "text":[
          "r10",
          "jackrepenning",
          "M /trunk/cvsdude/solr/conf/schema.xml",
          "example for list question"],
        "paths":["/trunk/cvsdude/solr/conf/schema.xml"],
        "changes":["M /trunk/cvsdude/solr/conf/schema.xml"]}]
  }}

-==-
Jack Repenning
Technologist
Codesion Business Unit
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
office: +1 650.228.2562
twitter: http://twitter.com/jrep









Attachment: PGP.sig
Description: This is a digitally signed message part

Reply via email to