Azure search FindFailedActionsToRetry returning empty actions? -
i testing findfailedactionstoretry function on c# client azure search , not getting expected results.
in function try index batch , have try-catch handles indexbatchexception. inside catch do:
var retrybatch = e.findfailedactionstoretry(batch, id => id["identifier"].tostring());
the first time index get: 999 out of 1000 documents failed index (which expected).
then try index batch again instead of getting same indexbatchexception thrown out (because purposedly set merge action of original 1k documents), exception:
the request invalid. details: actions : no indexing actions found in request. please include between 1 , 1000 indexing actions in request.
any ideas why findfailedactionstoretry function not returning correct results? or maybe im doing wrong?
edit
to show more context, when expand retrybatch object created contains indexbatch object, can see actions. expand further, click on results view, , get: enumeration yielded no results
the original batch sent first time did have resutls. in fact, see: action,document. action,document, etc.
why not seing results?
you provoking indexing failure in way not transient , therefore not retriable. findfailedactionstoretry smart enough detect this. take @ shouldretry method in code.
Comments
Post a Comment