René's URL Explorer Experiment


Title: GitHub · Where software is built

Open Graph Title: elastic/elasticsearch-java

X Title: elastic/elasticsearch-java

Description: Official Elasticsearch Java Client. Contribute to elastic/elasticsearch-java development by creating an account on GitHub.

Open Graph Description: Official Elasticsearch Java Client. Contribute to elastic/elasticsearch-java development by creating an account on GitHub.

X Description: Official Elasticsearch Java Client. Contribute to elastic/elasticsearch-java development by creating an account on GitHub.

Opengraph URL: https://github.com/elastic/elasticsearch-java

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Update operation does not work with BinaryData object. ","articleBody":"### Java API client version\n\n7.17.10\n\n### Java version\n\n11\n\n### Elasticsearch Version\n\n7.17.9\n\n### Problem description\n\nIf you try and perform an update when using the BinaryData object the document will be created but it will be empty. \r\n\r\nI have created a test for a reproducer.\r\n\r\n\r\n```java\r\npublic void testBinaryDataUpdateIngestion() throws Exception {\r\n        String index = \"binary-ingestion-test\";\r\n        String id = \"foo-bar\";\r\n\r\n        BinaryData data = BinaryData.of(\"{\\\"foo\\\":\\\"bar\\\"}\".getBytes(), ContentType.APPLICATION_JSON);\r\n\r\n        UpdateResponse\u003cBinaryData\u003e response = esAsyncClient.update(UpdateRequest.of(u -\u003e u\r\n                .index(index)\r\n                .id(id)\r\n                .doc(data)\r\n                .docAsUpsert(true)\r\n                .refresh(Refresh.True)), BinaryData.class).get();\r\n\r\n        Assertions.assertEquals(response.result().toString(), \"Created\");\r\n\r\n        GetResponse\u003cBinaryData\u003e getResponse =\r\n                esAsyncClient.get(g -\u003e g.index(index)\r\n                                        .id(id)\r\n                        ,BinaryData.class\r\n                ).get();\r\n\r\n        Assertions.assertEquals(id, getResponse.id());\r\n        Assertions.assertEquals(\r\n                \"{\\\"foo\\\":\\\"bar\\\"}\",\r\n                new String(getResponse.source().asByteBuffer().array(), StandardCharsets.UTF_8)\r\n        );\r\n    }\r\n```\r\n\r\nI was able to get this to work using a similar object and implementing **JsonpSerializable** like so.\r\n\r\n\r\n```java\r\n @Override\r\n    public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) {\r\n        if(generator instanceof JacksonJsonpGenerator){\r\n            // data is a byte[] containing raw JSON data\r\n            String json = new String(data, StandardCharsets.UTF_8);\r\n            try {\r\n                ((JacksonJsonpGenerator) generator).jacksonGenerator().writeRawValue(json);\r\n            } catch (IOException e) {\r\n                throw new IllegalStateException(\"Unable to write raw json\", e);\r\n            }\r\n        }else{\r\n            throw new UnsupportedOperationException(\"Only JacksonJsonpGenerator is supported\");\r\n        }\r\n    }\r\n```","author":{"url":"https://github.com/NavidMitchell","@type":"Person","name":"NavidMitchell"},"datePublished":"2023-07-01T09:02:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/615/elasticsearch-java/issues/615"}

route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:d31f338d-0dde-bbde-c0be-0aed36daeacd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9E2E:17C847:2A4299C:382D598:6992E752
html-safe-nonceb46280c39e8eb9e4f3bb3cca15288e4e64f083831d78690306e8103a9b26b273
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTJFOjE3Qzg0NzoyQTQyOTlDOjM4MkQ1OTg6Njk5MkU3NTIiLCJ2aXNpdG9yX2lkIjoiNjc1MjY2ODExNDIwOTY2MjgwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac62f0224c6ca731b8591bee56b5b73b0e73115c3bffe7b5962ecca6aadd89c2bb
hovercard-subject-tagrepository:365244061
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/elastic/elasticsearch-java/issues/615
twitter:imagehttps://opengraph.githubassets.com/8264318acaa509f7611c5a3166b024b005163cd429a6e39cfb9130a273f2b45f/elastic/elasticsearch-java
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8264318acaa509f7611c5a3166b024b005163cd429a6e39cfb9130a273f2b45f/elastic/elasticsearch-java
og:image:altOfficial Elasticsearch Java Client. Contribute to elastic/elasticsearch-java development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-cache
go-importgithub.com/elastic/elasticsearch-java git https://github.com/elastic/elasticsearch-java.git
octolytics-dimension-user_id6764390
octolytics-dimension-user_loginelastic
octolytics-dimension-repository_id365244061
octolytics-dimension-repository_nwoelastic/elasticsearch-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id365244061
octolytics-dimension-repository_network_root_nwoelastic/elasticsearch-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84dcb133269e3cfe6e0296cc85fbacb92cae92bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/elastic/elasticsearch-java/issues/615#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Felastic%2Felasticsearch-java%2Fissues%2F615
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Felastic%2Felasticsearch-java%2Fissues%2F615
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=elastic%2Felasticsearch-java
Reloadhttps://patch-diff.githubusercontent.com/elastic/elasticsearch-java/issues/615
Reloadhttps://patch-diff.githubusercontent.com/elastic/elasticsearch-java/issues/615
Reloadhttps://patch-diff.githubusercontent.com/elastic/elasticsearch-java/issues/615
elastic https://patch-diff.githubusercontent.com/elastic
elasticsearch-javahttps://patch-diff.githubusercontent.com/elastic/elasticsearch-java
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Felastic%2Felasticsearch-java
Fork 282 https://patch-diff.githubusercontent.com/login?return_to=%2Felastic%2Felasticsearch-java
Star 516 https://patch-diff.githubusercontent.com/login?return_to=%2Felastic%2Felasticsearch-java
Code https://patch-diff.githubusercontent.com/elastic/elasticsearch-java
Issues 34 https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/issues
Pull requests 9 https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/pulls
Actions https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/actions
Projects 0 https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/projects
Security 0 https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/security
Insights https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/pulse
Code https://patch-diff.githubusercontent.com/elastic/elasticsearch-java
Issues https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/issues
Pull requests https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/pulls
Actions https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/actions
Projects https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/projects
Security https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/security
Insights https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/elastic/elasticsearch-java/issues/615
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/elastic/elasticsearch-java/issues/615
Update operation does not work with BinaryData object. https://patch-diff.githubusercontent.com/elastic/elasticsearch-java/issues/615#top
Category: EnhancementNew feature or requesthttps://github.com/elastic/elasticsearch-java/issues?q=state%3Aopen%20label%3A%22Category%3A%20Enhancement%22
https://github.com/NavidMitchell
https://github.com/NavidMitchell
NavidMitchellhttps://github.com/NavidMitchell
on Jul 1, 2023https://github.com/elastic/elasticsearch-java/issues/615#issue-1783710172
Category: EnhancementNew feature or requesthttps://github.com/elastic/elasticsearch-java/issues?q=state%3Aopen%20label%3A%22Category%3A%20Enhancement%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.