Skip to content

Conversation

@jeroenkoknl
Copy link

pre_offset and post_offset are not supported in the search API, offset is.

@jeroenkoknl
Copy link
Author

Could someone please review this PR?

@russcam
Copy link
Contributor

russcam commented Aug 25, 2017

Thanks for the PR @jeroenkoknl, I'll take a look

Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for the PR! I left a couple of comments for changes

long? PreOffset { get; set; }

[JsonProperty("post_offset")]
long? PostOffset { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For binary compatibility reasons, these can't be removed in a major version i.e. they can be removed in NEST 6.x but not 5.x. These should be marked with [Obsolete("removed in Elasticsearch 2.0. Will be removed in the next major version of NEST")] or something to that effect, and the JsonPropertyAttributes removed, so that setting them becomes a no-op.

[JsonProperty("post_offset")]
long? PostOffset { get; set; }
[JsonProperty("offset")]
double? Offset { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this can be a Time type for greater flexibility.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I may be misunderstanding your request but I'm not sure this is correct. This change applies to the HistorygramAggregation and not to DateHistogramAggregation. Also in the java counterpart HistogramAggregationBuilder doesn't have this method. I may be missing something so could you please explain?

@jeroenkoknl
Copy link
Author

@russcam, any ideas why CI failed? The error message:

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

@Mpdreamz
Copy link
Member

Mpdreamz commented Sep 5, 2017

@jeroenkoknl seems like an intermittent travis bootstrap error. Again many thanks for the PR, much appreciated 👍 , rebased and squashed this commit without the merge commits via #2845 and forward ported it to master.

@Mpdreamz Mpdreamz closed this Sep 5, 2017
@jeroenkoknl
Copy link
Author

Great! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants