lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Solr Document expiration with TTL
Date Thu, 26 Feb 2015 17:09:11 GMT

: If your expire_at_dt field is not populated automatically, let's step
: back and recheck a sanity setting. You said it is a managed schema? Is
: it a schemaless as well? With an explicit processor chain? If that's
: the case, your default chain may not be running AT ALL.....

yeah ... my only guess here is that even though you posted before that you 
had this configured in your defaut chain...

    <processor class="solr.processor.DocExpirationUpdateProcessorFactory">
      <int name="autoDeletePeriodSeconds">30</int>
      <str name="ttlFieldName">time_to_live_s</str>
      <str name="expirationFieldName">expire_at_dt</str>
    </processor>

...perhaps you have an update.chain=foo type default param configured for 
your /update handler?

* what does your /update <requestHandler/> config look like?
* are you using the new <initParams/> feature of solr? what does it's 
config look like?

: So, recheck your solrconfig.xml. Or add another explicit field
: population inside the chain, just like the example did with
: TimestampUpdateProcessorFactory :
: https://lucidworks.com/blog/document-expiration/

yeah ... that would help as a sanity check as well ... point is: we need 
to verify which chain you are using when adding the doc.

: 
: 
: 
: ----
: Solr Analyzers, Tokenizers, Filters, URPs and even a newsletter:
: http://www.solr-start.com/
: 

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

Mime
View raw message