5

SOLR has a feature for doing partial updates of a document called Atomic Updates. The SOLR documentation has this example:

{
   "id":"mydoc",
   "price":{"set":99},
   "popularity":{"inc":20},
   "categories":{"add":["toys","games"]},
   "promo_ids":{"remove":"a123x"},
   "tags":{"remove":["free_to_try","on_sale"]}
}

Where the keywords set, inc, add, remove performs different kinds of updates.

Can this be done through the Sitecore Search api?

I can see that SOLRNet has a class called AtomicUpdateCommand.If Sitecore does not support Atomic Updates, what is the best way to access the underlying SOLRNet object?

The objective of my work is to be able to run through an index and update all items with Page View statistics from third party analytics data.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.