I have been reading up on Point in time API and wanted to implement it using NEST in my .net application. However, when reading that article (.net application hyperlink), I saw the Fluent DSL example as shown below. Is there a way to find that ID without having to go to kibana on the console and doing an query search to get the id to then later place that id inside of "a-point-in-time-id"? or does "a-point-in-time-id" do that for you like is that mapped to the ID?
s => s .PointInTime("a-point-in-time-id", p => p .KeepAlive("1m"))
and when reading up on search_after and attempting to implement it using the search after usage for the .net client using the Fluent DSL Example. I noticed that they had they word "Project" but it does not say what "Project is in the example. What would that be exactly?
s => s .Sort(srt => srt .Descending(p => p.NumberOfCommits) .Descending(p => p.Name) ) .SearchAfter( Project.First.NumberOfCommits, Project.First.Name )
Here I attempted to implement
.SearchAfter() but got stuck.
var response = await _elasticClient.SearchAsync<EsSource>(s => s .Size(3000) // must see about this .Source(src => src.Includes(i => i .Fields(f => f.timestamp, fields => fields.messageTemplate, fields => fields.message))) .Index("customer-simulation-es-app-logs*" .Query(q => +q .DateRange(dr => dr .Field("@timestamp") .GreaterThanOrEquals("2021-06-12T16:39:32.727-05:00") .LessThanOrEquals(DateTime.Now)))) .PointInTime("", p => p .KeepAlive("5m")) .Sort(srt => srt .Ascending(p => p.timestamp)) .SearchAfter()
I know when you are using PIT ID you do not need the index in the search, but in the hyperlink example it does not show how you would go about implementing that. So just a bit lost on how to do so. Any pointers/guidance/tutorials would be great!