A
A
Alexander2018-03-05 11:45:12
C++ / C#
Alexander, 2018-03-05 11:45:12

C# NEST where is the error in the documentation example?

I take an example:
www.notes.1gb.ru/c-elasticsearch
I try to add an entry

client.Index(inboxPayment, i => i
    .Index("payments.inbox")
    .Id(inboxPayment.TransactionID)
    .Refresh()
);

And then Visual Studio underlines .Refresh() with a red squiggly line, with the diagnosis:
Missing argument corresponding to the required formal refresh parameter from IndexDescription.Refresh(Refresh?)
What am I doing wrong here?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis, 2018-03-15
@den_labs

The given example is 14 years old, in your version Refresh already requires parameters.
See what it can accept and specify the required one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question