Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a self-contained sample Java client (with a minimal Vespa app + dataset scaffolding) to demonstrate connecting to and exercising a Vespa application, including authentication and throughput-oriented querying.
Changes:
- Adds a Gradle-based Java client example with query, load-test, and feed modes.
- Introduces a minimal Vespa application (
services.xml+ schema) to test the client against. - Adds Gradle wrapper/configuration and basic documentation for running the sample.
Reviewed changes
Copilot reviewed 14 out of 16 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| examples/clients/client-java/settings.gradle.kts | Initializes Gradle multi-project settings for the sample client. |
| examples/clients/client-java/gradlew.bat | Windows Gradle wrapper script for reproducible builds. |
| examples/clients/client-java/gradlew | POSIX Gradle wrapper script for reproducible builds. |
| examples/clients/client-java/gradle/wrapper/gradle-wrapper.properties | Pins Gradle distribution for the wrapper. |
| examples/clients/client-java/gradle/wrapper/gradle-wrapper.jar | Gradle wrapper binary needed to run wrapper scripts. |
| examples/clients/client-java/gradle/libs.versions.toml | Version catalog for basic dependencies. |
| examples/clients/client-java/gradle.properties | Gradle configuration defaults for the sample. |
| examples/clients/client-java/app/src/main/java/com/example/VespaClient.java | Implements the Java sample client (query, load test, feed) with auth options. |
| examples/clients/client-java/app/build.gradle.kts | Declares dependencies/toolchain and app entrypoint for the sample. |
| examples/clients/client-java/README.md | Documents how to run feed/query/load-test modes. |
| examples/clients/client-java/.gitignore | Ignores Gradle and build outputs for the sample project. |
| examples/clients/client-java/.gitattributes | Normalizes line endings and marks wrapper JAR as binary. |
| examples/clients/app/services.xml | Minimal Vespa app services config to support search + document API. |
| examples/clients/app/schemas/passage.sd | Minimal schema for the sample dataset and querying. |
| examples/clients/README.md | Top-level README describing the sample app/dataset and deployment. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
examples/clients/client-java/app/src/main/java/com/example/VespaClient.java
Outdated
Show resolved
Hide resolved
examples/clients/client-java/app/src/main/java/com/example/VespaClient.java
Outdated
Show resolved
Hide resolved
examples/clients/client-java/app/src/main/java/com/example/VespaClient.java
Show resolved
Hide resolved
Comment on lines
+1
to
+2
| schema passage { | ||
| document passage { |
examples/clients/app/services.xml
Outdated
Comment on lines
+8
to
+17
| <nodes count="2"> | ||
| </nodes> | ||
| </container> | ||
| <content version="1.0" id="content"> | ||
| <min-redundancy>2</min-redundancy> | ||
| <documents> | ||
| <document type="passage" mode="index"/> | ||
| </documents> | ||
| <nodes count="2"> | ||
| </nodes> |
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Create a sample java-client illustrating how a client can connect to a Vespa application, illustrating: