You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Hammad <ra...@gmail.com> on 2016/05/12 20:58:50 UTC

Documents auto-expiry inside a collection Solr 6.0.0

Hi Team,

I followed below walkthough for auto expiry configuration
https://lucidworks.com/blog/2014/05/07/document-expiration/

Each step is followed but nothing happens. I was expecting to see expiry
automatically set as per multiple mechanisms configured.

Does it work differently in 6.0.0 than 4.8? Or am I missing something
obvious?

I have posted same question with details on stackoverflow here;

http://stackoverflow.com/questions/37131117/solr-auto-expiry-of-documents-in-collection


Any help will be really appreciated.

Thank you.

HAwK

Re: Documents auto-expiry inside a collection Solr 6.0.0

Posted by Hammad <ra...@gmail.com>.
Wonderful - thanks Hoss.

I had only one default updateRequestProcessorChain but yes as I started
with the data_driven_schema_configs configset, and modified that to include
my new updateRequestProcessorChain, it's not used because;
<initParams path="/update/**"> was forcing "add-unknown-fields-to-the-schema"
updateRequestProcessorChain to be used - I had to comment this and update
my default with desired processors.

Lots of lessons from this response. Thanks!


On Thu, May 12, 2016 at 9:35 PM, Chris Hostetter <ho...@fucit.org>
wrote:

>
> : https://lucidworks.com/blog/2014/05/07/document-expiration/
> :
> : Each step is followed but nothing happens. I was expecting to see expiry
> : automatically set as per multiple mechanisms configured.
>
> if you are not seeing the configured expirationFieldName added to your
> docs, then it sounds like you may not be using the
> updateRequestProcessorChain that you think you are...
>
> :
> http://stackoverflow.com/questions/37131117/solr-auto-expiry-of-documents-in-collection
>
> ...i skimmed this, but in the future please include all relevant details
> in your emails, not just a link (links can change, go away, be edited,
> etc...)
>
> you said "My default solrconfig.xml has only addition (as per walkthrough
> suggestion)" ... what solrconfig.xml did you start with? are there other
> updateRequestProcessorChain's defined in your solrconfig.xml? are there
> any others that say default="true" ?  do you have any WARNings in your
> log when you startup solr?
>
> do you have an explicitly defined "/update" requestHandler in your
> solrconfig.xml?  what does it look like?  does the string "update.chain"
> exist anywhere in your solrconfig.xml?
>
> (For example: if you started with the data_driven_schema_configs config
> set, and modified that to include your new updateRequestProcessorChain,
> it's not going to be used because <initParams path="/update/**">
> forces "add-unknown-fields-to-the-schema" to be used by name regardless of
> wether you changed teh default.)
>
>
> if you explicitly include an expiration field in your docs when adding
> them, then do they get deleted periodically?
>
>
>
> -Hoss
> http://www.lucidworks.com/
>

Re: Documents auto-expiry inside a collection Solr 6.0.0

Posted by Chris Hostetter <ho...@fucit.org>.
: https://lucidworks.com/blog/2014/05/07/document-expiration/
: 
: Each step is followed but nothing happens. I was expecting to see expiry
: automatically set as per multiple mechanisms configured.

if you are not seeing the configured expirationFieldName added to your 
docs, then it sounds like you may not be using the 
updateRequestProcessorChain that you think you are...

: http://stackoverflow.com/questions/37131117/solr-auto-expiry-of-documents-in-collection

...i skimmed this, but in the future please include all relevant details 
in your emails, not just a link (links can change, go away, be edited, 
etc...)

you said "My default solrconfig.xml has only addition (as per walkthrough 
suggestion)" ... what solrconfig.xml did you start with? are there other 
updateRequestProcessorChain's defined in your solrconfig.xml? are there 
any others that say default="true" ?  do you have any WARNings in your 
log when you startup solr?  

do you have an explicitly defined "/update" requestHandler in your 
solrconfig.xml?  what does it look like?  does the string "update.chain" 
exist anywhere in your solrconfig.xml?

(For example: if you started with the data_driven_schema_configs config 
set, and modified that to include your new updateRequestProcessorChain, 
it's not going to be used because <initParams path="/update/**"> 
forces "add-unknown-fields-to-the-schema" to be used by name regardless of 
wether you changed teh default.)


if you explicitly include an expiration field in your docs when adding 
them, then do they get deleted periodically?



-Hoss
http://www.lucidworks.com/