Ok. Can I update the index without deleting? I mean to update all names with a new name. In an index I have id, name, deptid as fields. I need to update name field = "new" where name="old".
-----Original Message----- From: Noble Paul നോബിള് नोब्ळ् [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2008 3:56 PM To: solr-user@lucene.apache.org Subject: Re: Deleting indices yes On Wed, Nov 26, 2008 at 3:19 PM, Raghunandan Rao <[EMAIL PROTECTED]> wrote: > Hi, > > I need to update an index after I update data in the DB. I will first > update the DB and then call deleteByQuery in Solrj and then update > particular index. What happens to deleteByQuery method if there are > multiple ids found? > > > > For eg, I am using deleteByQuery("12"); > > > > Can I specify field name here as in search and delete only those indices > belonging to a field. > > > > Like deleteByQuery("ID:12"); > > > > Is this allowed? > > > > Thanks > > -Raghu > > -- --Noble Paul