How to delete SOLR indexed data by query with curl?

前端 未结 3 2190
忘了有多久
忘了有多久 2020-12-15 06:09

I have a SOLR schema.xml like this:



        
3条回答
  •  盖世英雄少女心
    2020-12-15 06:40

    Using JSON instead of XML:

    curl -g "http://localhost:8983/solr/$core/update" \
         -H 'Content-Type: application/json' \
         -d '{"delete":{"query":"field:value"}}'
    

提交回复
热议问题