Solr4.1を実行しています。バージョンフィールドはありますが、時間に関してクエリで削除する方法がわかりません。スキーマにタイムスタンプが表示されているフィールドがありません。
私がやろうとしているのは、たとえば30日より古いすべてのドキュメントを削除するクエリを実行することです。
私はネット上で見つけることができるすべてを試しました。
curl http://localhost:8983/solr/update?commit=true -H "Content-Type: text/xml" --data-binary '<delete><query>_version_:[* TO NOW-60DAYS] </query></delete>'
curl http://localhost:8983/solr/update?commit=true -H "Content-Type: text/xml" --data-binary '<delete><query>timestamp:[* TO NOW-60DAYS] </query></delete>'
curl http://localhost:8983/solr/update?commit=true -H "Content-Type: text/xml" --data-binary '<delete><query>createTime:[* TO NOW-60DAYS] </query></delete>'
他の削除は正常に機能します。
curl http://localhost:8983/solr/update?commit=true -H "Content-Type: text/xml" --data-binary '<delete><query>field:value</query></delete>'