It is natural part of the update model for Solr (and for many other search engines). Solr does not do updates. It does add, replace, and delete.
Every document is processed as if it was new. If there is already a document with that id, then the new document replaces it. The existing documents are not read during indexing. This allows indexing to be much faster than in a relational database. wunder On Feb 16, 2013, at 8:40 PM, Isaac Hebsh wrote: > The component who sends the document does not know whether it is a new > document or an update. These are my internal constraints.. But, guys, I > think that it's a basic feature, and it will be better if Solr will support > it without "external help"... > > > On Sun, Feb 17, 2013 at 12:37 AM, Upayavira <u...@odoko.co.uk> wrote: > >> I think what Walter means is make the thing that sends it to Solr set >> the timestamp when it does so. >> >> Upayavira >> >> On Sat, Feb 16, 2013, at 08:56 PM, Isaac Hebsh wrote: >>> Hi, >>> I do have an externally-created timestamp, but some minutes may pass >>> before >>> it will be sent to Solr. >>> >>> >>> On Sat, Feb 16, 2013 at 10:39 PM, Walter Underwood >>> <wun...@wunderwood.org>wrote: >>> >>>> Do you really want the time that Solr first saw it or do you want the >> time >>>> that the document was really created in the system? I think an external >>>> create timestamp would be a lot more useful. >>>> >>>> wunder >>>> >>>> On Feb 16, 2013, at 12:37 PM, Isaac Hebsh wrote: >>>> >>>>> I opened a JIRA for this improvement request (attached a patch to >>>>> DistributedUpdateProcessor). >>>>> It's my first JIRA. please review it... >>>>> (Or, if someone has an easier solution, tell us...) >>>>> >>>>> https://issues.apache.org/jira/browse/SOLR-4468 >>>>> >>>>> >>>>> On Fri, Feb 15, 2013 at 8:13 AM, Isaac Hebsh <isaac.he...@gmail.com> >>>> wrote: >>>>> >>>>>> Hi. >>>>>> >>>>>> I have a 'timestamp' field, which is a date, with a default value of >>>> 'NOW'. >>>>>> I want it to represent the datetime when the item was inserted (at >> the >>>>>> first time). >>>>>> >>>>>> Unfortunately, when the item is updated, the timestamp is changed... >>>>>> >>>>>> How can I implement INSERT TIME automatically? >>>>>>