Solr conditional adds/updates?

前端 未结 3 1082
灰色年华
灰色年华 2021-01-19 22:48

I have a fairly simple need to do a conditional update in Solr, which is easily accomplished in MySQL.

For example,

  • I have 100 documents with a unique
3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-19 23:31

    As of solr 4.0, optimistic concurrency is enabled via the _version_ field.

    http://yonik.com/solr/optimistic-concurrency/

    To enable, you need to make sure your schema.xml contains

    
    

    and in solrconfig.xml

    
        
          ${solr.data.dir:}
        
    
    

提交回复
热议问题