Thanks for all your help.  I found the problem.  My delete queries had
spaces around the id, and everything works after I got rid of them.
<delete><id> 12345 </id></delete> doesnt work
<delete><id>12345</id></delete> works fine
Perhaps a heads up about this in the docs would be in order?

- Galen Pahlke


On Wed, Jun 25, 2008 at 8:17 PM, Yonik Seeley <[EMAIL PROTECTED]> wrote:

> On Wed, Jun 25, 2008 at 9:34 PM, Galen Pahlke <[EMAIL PROTECTED]> wrote:
> > I originally tested with an index generated by solr 1.2, but when that
> > didn't work, I rebuilt the index from scratch.
> > From my schema.xml:
> >
> > <fields>
> >   .....
> >   <field name="id" type="integer" indexed="true" stored="true"
> > required="true"/>
> >   .....
> > </fields>
> >
> > <uniqueKey>id</uniqueKey>
>
> I tried this as well... changing the example schema id type to
> integer, adding a document and deleting it.  Everything worked fine.
>
> Something to watch out for: when you indexed the data, could it have
> had spaces in the id or something?
>
> If you can't figure it out, try reproducing it in a simple example
> that can be added to a JIRA issue.
>
> -Yonik
>

Reply via email to