We have an API built in 2007 which at the lowest level submits requests with
<add>. We haven't changed anything to the API, and it worked well until the
beginning of this year.

Unique key is solr_id with this definition: <field name="solr_id"
type="slong" indexed="true" stored="true"/>

The number of documents is determined using this HTTP request:
http://server/app_name/select/?q=*%3A*&version=2.2&start=0&rows=10&indent=on

Thanks,
Marius

2011/6/8 Tomás Fernández Löbbe <tomasflo...@gmail.com>

> That's rare. How do you add documents to Solr? what do you have as primary
> key?
> How do you determine the number of documents in the index?
>
> The value of "maxDoc" of the stats page considers deleted documents too,
> which are eliminated at merging.
>
> On Wed, Jun 8, 2011 at 12:18 PM, Marius Hanganu <mhang...@tremend.ro>
> wrote:
>
> > Hello,
> >
> > We've been using for 1.5 years now solr 1.4 for one of the indexes in our
> > application with a special configuration with maxDocs=1 and maxTime=1.
> The
> > number of documents is 10.000, with index size around 10MB.
> >
> > For a few monhts now, SOLR has this strange behavior. Our code did not
> > change, however, documents started disappearing from the index. And it's
> > decreasing constantly, at various speeds.
> >
> > Our first modification was to raise maxTime to 30sec, which seemed to fix
> > the problem for some time. After a few weeks, the problem started showing
> > again, so we've upgraded to SOLR 3.1.
> >
> > This upgrade did not fix the problem either. Our last try was with
> > maxDocs=500 and maxTime=60sec. After a complete reindex, SOLR shows all
> > 10081 documents, but after a few minutes, it suddenly goes down to 10078,
> > after a few hours to 10076, and it's stabilizing around this number.
> >
> > We have another SOLR index with ~400.000 objects, maxDocs=1000 and
> > maxTime=3
> > minutes and it never showed this problem.
> >
> > Do you have any idea why this is happening? Or how we can identify the
> > problem?
> >
> > Thanks,
> > Marius
> >
>

Reply via email to