It works. I made some mistake in my code. Jennifer Luo
> -----Original Message----- > From: Jennifer Luo [mailto:jenni...@talenttech.com] > Sent: Wednesday, January 27, 2010 1:57 PM > To: solr-user@lucene.apache.org > Subject: RE: update doc success, but could not find the new value > > I am using example, only with two fields, id and body. Id is string > field, body is text field. > > I use another program to do a http post to update the document, url is > http://localhost:8983/solr/update?commit=true&overwrite=true&commitWithi > n=10 , the data is > <add> > <doc> > <field name="id">id1</field> > <field name="body">test body</field> > </doc> > </add> > > I get the responseHeader back, the status is 0. > > Then I go to admin page, do search, query is body:test. The result > numFound = 0. > > I think the reason should be the index is not updated with the updated > document. > > What should I do? What's is missing? > Jennifer Luo > > > -----Original Message----- > > From: Erick Erickson [mailto:erickerick...@gmail.com] > > Sent: Wednesday, January 27, 2010 1:39 PM > > To: solr-user@lucene.apache.org > > Subject: Re: update doc success, but could not find the new value > > > > Ummm, you have to provide a *lot* more detail before anyone can help. > > > > Have you used Luke or the admin page to examine your index and > determine > > that the update did, indeed, work? > > > > Have you tried firing your query with debugQuery=on to see if the > fields > > searched are the ones you expect? > > > > etc. > > > > Erick > > > > On Wed, Jan 27, 2010 at 11:54 AM, Jennifer Luo > > <jenni...@talenttech.com>wrote: > > > > > I am using > > > > http://localhost:8983/solr/update?commit=true&overwrite=true&commitWithi > > > n=10 to update a document. The responseHeader's status is 0. > > > > > > But when I search the new value, it couldn't be found. > > >