Well, it would help if you defined what behavior you're seeing. When you say delete-by-query doesn't work, what is the symptom? What does "empty" mean? Because if you're just looking at your index directory and expecting to see files disappear, you'll be disappointed.
When you delete documents in Solr, the docs are just marked as deleted, they aren't physically removed until segments are merged. Does a query for *:* return any documents after you delete-by-query? Running an optimize after you do the delete will force merging to happen BTW. If this doesn't help, please post the exact URLs you use, and what your evidence that "the index isn't empty" is. Best Erick On Mon, Jun 18, 2012 at 5:45 AM, ramzesua <michaelnaza...@gmail.com> wrote: > Hi all. I am using solr 4.0 and trying to clear index by query. At first I > use <delete><query>*:*</query></delete> with commit, but index is still not > empty. I tried another queries, but it not help me. Then I tried delete by > `id`. It works fine, but I need clear all index. Can anyone help me? > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/delete-by-query-don-t-work-tp3990077.html > Sent from the Solr - User mailing list archive at Nabble.com.