You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "mkhludnev (via GitHub)" <gi...@apache.org> on 2023/03/12 11:03:46 UTC

[GitHub] [solr-operator] mkhludnev commented on issue #532: Updating Solr Document Results Duplicate Versions

mkhludnev commented on issue #532:
URL: https://github.com/apache/solr-operator/issues/532#issuecomment-1465161525

   Couldn't they land onto separate shards somehow? You can check it with
   fl=[shard]
   
   On Sat, Mar 11, 2023 at 8:30 PM Özgür ***@***.***> wrote:
   
   > I'm updating a SOLR doc via the below command:
   >
   > 'base Uri'/update?overwrite=true&commitWithin=2000&wt=json
   >
   > The problem is SOLR duplicates the doc instead overwritting the old one.
   > After the update, I have end up with two docs with same id field (id field
   > is also defined as a uniqueKey), but different _version_ numbers.
   >
   > Updated docs have two new fields that older versions do not have (as I
   > have make additions to the schame.xml file recently).
   >
   > I'm sharing necessary parts of my schema below:
   >
   > <?xml version="1.0" encoding="UTF-8" ?>
   > <schema name="My Project Solr 7.2.0 (stable version) Instance"
   > version="1.6">
   > <field name="id" type="string" indexed="true" stored="true"
   > required="true" />
   > <field name="_version_" type="long" indexed="true" stored="true"/>
   > <!-- other fields -->
   > <uniqueKey>id</uniqueKey>
   >
   > Why I end up with two docs with same unique key field after the update
   > command?
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/solr-operator/issues/532>, or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AAGFEYWQAL4F3TY76A2DJ3DW3SZBVANCNFSM6AAAAAAVXTD3TE>
   > .
   > You are receiving this because you are subscribed to this thread.Message
   > ID: ***@***.***>
   >
   
   
   -- 
   Sincerely yours
   Mikhail Khludnev
   https://t.me/MUST_SEARCH
   A caveat: Cyrillic!
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org