lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Removing expired documents from Solr index
Date Wed, 25 Aug 2010 01:07:57 GMT
In addition to deletebyquery, you might want to optimize
your index periodically to reclaim some space....

Best
Erick

On Tue, Aug 24, 2010 at 2:53 AM, Andreas Jung <lists@zopyx.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Andy wrote:
> > My documents have an "expiration_datetime" field that holds the
> expiration datetime of the document.
> >
> > I use a filter query to exclude expired documents from my query results.
> >
> > Is it a good idea to periodically go through the index and remove expired
> documents from it? If so what is the best way to do that? Any example code
> would be appreciated.
>
> Look at the "deleteByQuery" API of SOLR.
>
> - -aj
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJMc5auAAoJEADcfz7u4AZjy7kLwOQy5wJNM+SnHLInNo9vESmA
> XYjhxK5GrLYwSc02wqO+WItbz7N1aZArUjFTsC2dlF2aQe6Bs5HulspGQSlOC4I7
> ZHJuoMqcj8DJHgqFmx2zIepil6grqph7buq78medGZXUKXeDp2mKwTRtbofrVFCK
> p3Mi+BueUsC4yWbuCPzK26GpeXDwF2C6wrjyuec4yrmVKK7H+zqEq8pV4zNefTlB
> /XgxU5R6CD8kHOBrkVK+8AeRtg4vroeS1TEF4faGQreswY1peXiorhdkjuyab2IY
> vhi//PU9tczd5nzgnsU+HsraZ0OWTx+Q9riz2MC5PQgF4Vt+UdKEeVxp4as3GCMP
> r6tKJPO2dYuEx4D7VhdDUQf7GhrEsYHgkxNWn+q7pgE0hmUE3FkwynwRLOPltKvn
> 0PsahscqE1Ct0e3TsOtv+zMNRWA6NsjHfDQxURmjk9v/DzZO907cXt7D/WzQ94HD
> w+ME2pC4ucp8I4f9sLjrO6IyIbYY1IU=
> =cRVP
> -----END PGP SIGNATURE-----
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message