lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhenyuan wei <tins...@gmail.com>
Subject Is that solr supports multi version operations?
Date Wed, 19 Sep 2018 02:11:20 GMT
Hi all,
    add solr document with overwrite=false will keepping multi version
documents,
My question is :
    1.  How to search newest documents?with what options?
    2.  How to delete  old version < newest version  documents?

for example:
         {
        "id":"1002",
        "name":["james"],
        "_version_":1611998319085617152,
        "name_str":["james"]},
      {
        "id":"1002",
        "name":["lily"],
        "_version_":1611998307815522304,
        "name_str":["lily"]},
      {
        "id":"1002",
        "name":["lucy"],
        "_version_":1611998248265842688,
        "name_str":["lucy"]}]

1. curl  http://localhost:8983/solr/collection001/query?q=*:*   return all
,
    how to search to make response return the newest one?
2. how to delete  document of version
[1611998307815522304,1611998248265842688] ,
which is older then 1611998319085617152.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message