You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Ben Shlomo, Yatir" <yb...@shopping.com> on 2007/09/25 12:04:54 UTC

I can't delete, why?

Hi!
I know I can delete multiple docs with the following:
<delete><query>mediaId:(6720 OR 6721 OR .... )</query></delete>

My question is can I do something like this?
<delete><query>languageId:123 AND manufacturer:456 </query></delete>
(It does not work for me and I didn't forget to commit....)


How can I do it ? with copy field ?
<delete><query>languageIdmanufacturer:123456</query></delete>
Thanks
yatir

Re: I can't delete, why?

Posted by Yonik Seeley <yo...@apache.org>.
On 9/25/07, Ben Shlomo, Yatir <yb...@shopping.com> wrote:
> I know I can delete multiple docs with the following:
> <delete><query>mediaId:(6720 OR 6721 OR .... )</query></delete>
>
> My question is can I do something like this?
> <delete><query>languageId:123 AND manufacturer:456 </query></delete>
> (It does not work for me and I didn't forget to commit....)

Do you get an error, or do you just not see this document deleted?
Does a query identical to this show matching documents after a commit?

Also keep in mind that delete by id is currently more efficient than
delete by query, so if mediaId is your uniqueKeyField, you would be
better served by using that.

-Yonik