Well, I guess that just goes to show that I ought to catch up on all
the great notes and TOOD items that all of you fantastic Solr
creators have made so I don't go reinventing the wheels. Thanks Hoss!
Erik
On May 4, 2006, at 5:20 PM, Chris Hostetter wrote:
: I've been thinking that Solr could benefit from "auto-valued"
fields,
: such as a datestamp. This would be a field defined in the schema,
: but its value comes from the Solr server itself rather than the
: client POSTing documents. The client wouldn't post such a value at
: all (it'd be an error if it did, perhaps, or it could override the
: automatic value?).
great minds think alike ... i added this to the long term task list
about
a month ago...
support for an an optional "timestamp" style field in schemas which
allways want every doc to include the datetime the document was
added to
the index. This might be a special case (like the uniqueKey field)
or it
could involve more general "default" support for fields and fieldtypes
(ie: <field> and <fieldtype> declarations could include a
default="..."
attribute that gets put into any document that doesn't already have a
value for that field, with the underlying FieldType parsing the
text each
time it's used, so that the DateField class can convert
default="now" to
the current time.
-Hoss