Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HLRC - add support for source exists API #34519

Merged
merged 4 commits into from
Oct 26, 2018

Conversation

markharwood
Copy link
Contributor

API re-uses the GetRequest object (following the precedent set by the plain “exists” api).

Relates to #27205

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@markharwood
Copy link
Contributor Author

jenkins test this

4 similar comments
@markharwood
Copy link
Contributor Author

jenkins test this

@markharwood
Copy link
Contributor Author

jenkins test this

@markharwood
Copy link
Contributor Author

jenkins test this

@markharwood
Copy link
Contributor Author

jenkins test this

Copy link
Contributor

@hub-cap hub-cap left a comment

Choose a reason for hiding this comment

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

Is there anything we can add to existing docs to advertise this? The code itself looks fine.

@markharwood markharwood force-pushed the fix/27205SourceExistsv2 branch from ae8d013 to 5a780f5 Compare October 24, 2018 11:29
@markharwood
Copy link
Contributor Author

@hub-cap is this addition to the "exists" page OK? I suspect this source exists feature is rarely used so didn't want to create a dedicated page or go too in-depth with examples as a detour on the current exists page.

@colings86 colings86 added v6.6.0 and removed v6.5.0 labels Oct 25, 2018
@hub-cap
Copy link
Contributor

hub-cap commented Oct 25, 2018

as per the docs youve linked, it should just have a little blurb in the exists doc, just a small section added to it would do. just fyi, the link is actually broken, it looks like there is an extra letter L in _exists in your javadoc, ill mark it on the review, as well.

@@ -725,6 +725,32 @@ public final void existsAsync(GetRequest getRequest, RequestOptions options, Act
emptySet());
}

/**
* Checks for the existence of a document with a _source field. Returns true if it exists, false otherwise.
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html#_sourcel">Source exists API
Copy link
Contributor

Choose a reason for hiding this comment

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

"_source"


/**
* Asynchronously checks for the existence of a document with a _source field. Returns true if it exists, false otherwise.
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-get.html#_sourcel">Source exists API
Copy link
Contributor

Choose a reason for hiding this comment

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

"_source"

jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Oct 26, 2018
* 'master' of github.com:elastic/elasticsearch:
  Fix line length for org.elasticsearch.common.* files (elastic#34888)
  [ML] Extract common native process base class (elastic#34856)
  Refactor children aggregator into a generic ParentJoinAggregator (elastic#34845)
  [Style] Fix line lengths in action.admin.indices (elastic#34890)
  HLRC - add support for source exists API (elastic#34519)
  [CCR] Retry when no index shard stats can be found (elastic#34852)
  [Docs] audit logfile structured format (elastic#34584)
  [Test] Fix FullClusterRestartIT.testShrink() with copy_settings param (elastic#34853)
  Fix LineLength Check Suppressions: index.fielddata (elastic#34891)
  TEST: Stablize Minio Free Port Search (elastic#34894)
  Delete flaky SettingsBasedHostProviderIT test (elastic#34813)
  [ML] Include message in field_stats for text log files (elastic#34861)
  [TEST] HLRC: Expand failure messages in API checks (elastic#34838)
  Lowercase static final DeprecationLogger instance names (elastic#34887)
jasontedor added a commit to martijnvg/elasticsearch that referenced this pull request Oct 26, 2018
* master:
  Introduce cross-cluster replication API docs (elastic#34726)
  Responses can use Writeable.Reader interface (elastic#34655)
  SQL: Provide null-safe scripts for Not and Neg (elastic#34877)
  Fix put/resume follow request parsing (elastic#34913)
  Fix line length for org.elasticsearch.common.* files (elastic#34888)
  [ML] Extract common native process base class (elastic#34856)
  Refactor children aggregator into a generic ParentJoinAggregator (elastic#34845)
  [Style] Fix line lengths in action.admin.indices (elastic#34890)
  HLRC - add support for source exists API (elastic#34519)
markharwood added a commit to markharwood/elasticsearch that referenced this pull request Oct 29, 2018
HLRC - add support for source exists API
API re-uses the GetRequest object (following the precedent set by the plain “exists” api).
markharwood added a commit that referenced this pull request Oct 29, 2018
HLRC - add support for source exists API
API re-uses the GetRequest object (following the precedent set by the plain “exists” api).
Backport of #34519
kcm pushed a commit that referenced this pull request Oct 30, 2018
HLRC - add support for source exists API
API re-uses the GetRequest object (following the precedent set by the plain “exists” api).

Relates to #27205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants