私が試したコア内のすべてのデータを削除するためのsolr XMLクエリは何ですか?
curl http://localhost:8983/solr/core0/update?commit=true -H "Content-Type: text/xml" --data-binary '<delete><query>id:*</query></delete>'
質問する
6239 次
2 に答える
7
あなたが試すことができます :-
カールあり -
curl -H 'Content-Type: text/xml' http://localhost:8983/solr/update --data-binary '<delete><query>*:*</query></delete>'
これらの変更を反映するには、必ず commit=true を使用してください。
または参照から -
http://localhost:8983/solr/update?stream.body=<delete><query>*:*</query></delete>&commit=true
于 2012-08-21T08:05:55.640 に答える
1
java を使用した cmd の別のオプション: java -Durl=http://localhost:8983/solr/update -Ddata=args -Dcommit=yes -jar post.jar " : " このすべてがポスト ディレクトリにあります。
于 2012-12-18T09:11:15.540 に答える