Re: insertion time

2016-08-15 Thread Emir Arnautovic

Hi Mahmoud,

I haven't been looking for new DIH featrures, but I don't think there is 
something that can provides such functionality and that only thing you 
can do is track it in your source and index it (like createDate and 
lastUpdatedDate).


Regards,
Emir


On 14.08.2016 20:56, Mahmoud Almokadem wrote:

Hello,

We always update the same document many times using DataImportHandler. Can I 
add a field for the first time the document inserted to the index and another 
field for the last time the document updated?


Thanks,
Mahmoud


--
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/



insertion time

2016-08-14 Thread Mahmoud Almokadem
Hello, 

We always update the same document many times using DataImportHandler. Can I 
add a field for the first time the document inserted to the index and another 
field for the last time the document updated?


Thanks,
Mahmoud 

Sorting by insertion time

2009-10-08 Thread tarjei

Hi,

Quite often I want a set of documents ordered by the time they were 
inserted, i.e. give me the 5 latest items that matches query foo. I 
usually solve this by sorting on a date field.


I had a chat with Eric Hatcher when he visited Javazone 2009 and he said 
that Solr places documents on disk in insertion order.


This would make it possible for me to save a sorting step by not sorting 
by a specific field, but by insertion time in reverse.


AFAIK Lucene knows how to do this, but which request parameters should I 
use in Solr?


Kind regards,
Tarjei


--
Tarjei Huse
Mobil: 920 63 413


RE: Sorting by insertion time

2009-10-08 Thread Steven A Rowe
Hi Tarjei,

See https://issues.apache.org/jira/browse/SOLR-1478 - with trunk Solr (and 
soon, 1.4), you can use pseudo-field _docid_ for this purpose.

Steve

 -Original Message-
 From: tarjei [mailto:tar...@nu.no]
 Sent: Thursday, October 08, 2009 2:18 AM
 To: solr-user@lucene.apache.org
 Subject: Sorting by insertion time
 
 Hi,
 
 Quite often I want a set of documents ordered by the time they were
 inserted, i.e. give me the 5 latest items that matches query foo. I
 usually solve this by sorting on a date field.
 
 I had a chat with Eric Hatcher when he visited Javazone 2009 and he
 said
 that Solr places documents on disk in insertion order.
 
 This would make it possible for me to save a sorting step by not
 sorting
 by a specific field, but by insertion time in reverse.
 
 AFAIK Lucene knows how to do this, but which request parameters should
 I
 use in Solr?
 
 Kind regards,
 Tarjei
 
 
 --
 Tarjei Huse
 Mobil: 920 63 413