Re: delete solr data and index older than 3 days

2018-01-02 Thread Alexandre Rafalovitch
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

Re: delete solr data and index older than 3 days

2017-12-28 Thread Alessandro Hoss
My bad... my answer is wrong. It's deleting only the data from the last three days, which is the opposite that you want.. Please check Erick's answer. Sorry. On Thu, Dec 28, 2017 at 6:39 PM Alessandro Hoss wrote: > Hello, > > You can use the same behavior as the delete all >

Re: delete solr data and index older than 3 days

2017-12-28 Thread Alessandro Hoss
Hello, You can use the same behavior as the delete all , but instead of querying for "*:*", you should query for something like "yourdatefield:[NOW-3DAYS TO NOW]" If you need to round to the start of the third day b

Re: delete solr data and index older than 3 days

2017-12-28 Thread Erick Erickson
First off, please don't optimize unless you're willing to do it every time, there's a long discussion of why here: https://issues.apache.org/jira/browse/LUCENE-7976. It's almost always a bad idea to optimize unless you're willing to optimize every time you update your index. But second, this is a