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 < 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. >