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 Daniel Angelov <da...@googlemail.com> on 2010/01/21 08:51:05 UTC
question
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.
Re: question
Posted by Daniel Angelov <da...@googlemail.com>.
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 <
shalinmangar@gmail.com> wrote:
> On Thu, Jan 21, 2010 at 1:21 PM, Daniel Angelov <
> dani.b.angelov@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.
>
Re: question
Posted by Daniel Angelov <da...@googlemail.com>.
My case is:
I have 2 web appl, first in jboss, second - tomcat.
The second knows how is max docs, but first make a new docs, so I wander ,
how I can control the indexing (from jboss) through tomcat appl. The solr
server is in tomcat
thanks
On Thu, Jan 21, 2010 at 3:05 PM, Shalin Shekhar Mangar <
shalinmangar@gmail.com> wrote:
> On Thu, Jan 21, 2010 at 1:21 PM, Daniel Angelov <
> dani.b.angelov@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.
>
Re: question
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Thu, Jan 21, 2010 at 1:21 PM, Daniel Angelov <
dani.b.angelov@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.