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 Makailol Charls <4e...@gmail.com> on 2015/03/09 10:02:06 UTC

Re: Solr Document expiration with TTL

Hi,

As suggested, we could manage to activate the document expiration using TTL
by shifting the newly added URP setting in the starting of the
add-unknown-fields-to-the-schema URP. That populates the "expire_at_dt"
field and makes document to expire after defined TTL.

Many Thanks,
Makailol

On Fri, Feb 27, 2015 at 10:23 PM, Chris Hostetter <ho...@fucit.org>
wrote:

>
> : There were no changes made in the solrconfig.xml file except added that
> : <updateRequestProcessorChain
> default="true"></updateRequestProcessorChain>
> : block.
>
> ok, first off: if you already *had* another updateRequestProcessorChain
> that said 'default="true"' just adding a new one would be weird and would
> likely give you errors.  you have t oconsider the whole context of the
> config and the other updateRequestProcessorChains when you make edits like
> that.
>
> : <initParams path="/update/**">
> : <lst name="defaults">
> :     <str name="update.chain">add-unknown-fields-to-the-schema</str>
> : </lst>
> : </initParams>
>
> so that says whe nyou make any requests to a "/update" handler, it's going
> to use a default request param of
> update.chain=add-unknown-fields-to-the-schema.
>
> so your updates are not going to the default hanler (which you didn't give
> a name) they are going though the <updateRequestProcessorChain/> with the
> name="add-unknown-fields-to-the-schema"
>
> you should probably remove the chain you added, and instead put the new
> processors you want in the add-unknown-fields-to-the-schema chain.
>
> that's the simplest way to get what you want in place.
>
>
> -Hoss
> http://www.lucidworks.com/
>

Re: Solr Document expiration with TTL

Posted by Alexandre Rafalovitch <ar...@gmail.com>.
Great,

Thank you for confirming. This will help other people seeing similar
kinds of issues.

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

On 9 March 2015 at 05:02, Makailol Charls <4e...@gmail.com> wrote:
> Hi,
>
> As suggested, we could manage to activate the document expiration using TTL
> by shifting the newly added URP setting in the starting of the
> add-unknown-fields-to-the-schema URP. That populates the "expire_at_dt"
> field and makes document to expire after defined TTL.
>
> Many Thanks,
> Makailol