DocExpirationUpdateProcessorFactory may be interesting for you:
http://www.solr-start.com/javadoc/solr-lucene/org/apache/solr/update/processor/DocExpirationUpdateProcessorFactory.html

Also, if this is a rolling-log with distinct indexing, you could
actually do collection aliasing and start the new collection every
day. Then, you just point the 'current' alias at the last 3
collections.

You may also want to watch: https://issues.apache.org/jira/browse/SOLR-11653

Regards,
    Alex.

On 28 December 2017 at 13:53, ppeddi <phani.pe...@gmail.com> wrote:
> hi,
> Can anyone please post the syntax or some examples for deleting solr data
> and index older than 3 days based on datetime field in solr collection.
>
> I have field data_Start_time which stores the date value in and is of type
> 'date' in my solr collection. I want to delete the index/data older than 3
> days and then optimize the collection.
>
> Please let me know the syntax.
>
> Thanks,
> Ppeddi
>
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Reply via email to