On 5/4/06, Ken Krugler <[EMAIL PROTECTED]> wrote:
 >On 5/4/06, Erik Hatcher <[EMAIL PROTECTED]> 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?).

Does this make sense as a feature request to the Solr server?

Definitely... I had previously thought about auto-incrementing fields
(for documents without a natural uniqueKey)... but to be useful, that
id may need to be returned in the response.

A server-set date field both makes sense *and* is easy to implement.

And then there's the auto-generated unique ID value that I'd like :)

Yeah... that's what what I meant by auto-incrementing fields.

What I use is a PRNG, to mix up the IDs, but I guess that's a form of an auto-incrementing field.

For that to be useful, the generated id would need to be returnd in
the response to the add, right?

Yes.

-- Ken
--
Ken Krugler
Krugle, Inc.
+1 530-210-6378
"Find Code, Find Answers"

Reply via email to