Thanks Shalin,
your proposal is good. Could you give me some link, where I can read some
documantation about your idea. If I write some class extending
UpdateRequestProcessor, where I have to put it, so the requests to solr go
through that new class.

Daniel Angelov


On Thu, Jan 21, 2010 at 3:05 PM, Shalin Shekhar Mangar <
shalinman...@gmail.com> wrote:

> On Thu, Jan 21, 2010 at 1:21 PM, Daniel Angelov <
> dani.b.ange...@googlemail.com> wrote:
>
> > Is it posible to set maximum indexed documents in solr? For example, I
> want
> > to insert in solr max 5000 document, after that solr must refuse
> unserting.
> >
>
> No but you can do it in your indexing application or write a custom
> UpdateRequestProcessor to count the number of adds and throw an exception
> once the limit is reached. Though the latter gets slightly tricky when you
> delete by query or when you replace docs.
>
> --
> Regards,
> Shalin Shekhar Mangar.
>

Reply via email to