Skip to content

Adds a new vector and full-text search quickstart - #7923

Merged
kosabogi merged 31 commits into
mainfrom
vector-full-text-search-quickstart
Sep 8, 2026
Merged

kosabogi merged 31 commits into
mainfrom
vector-full-text-search-quickstart

Conversation

@kosabogi

@kosabogi kosabogi commented Aug 12, 2026 •

Copy link
Copy Markdown
Member

This PR adds a new vector and full-text search quickstart that:

  • Guides users through connecting official Elasticsearch clients, creating an index, and indexing sample data.
  • Demonstrates semantic search, hybrid search, and ES|QL aggregation.
  • Provides examples and complete runnable scripts for Python, TypeScript, PHP, Ruby, C#/.NET, Java, and Go.

Testing

All seven client examples were tested end to end with Claude against Elasticsearch. The tests verified the expected search rankings and ES|QL aggregation output.

Manually testing the tutorial: WIP

  • Console
  • Curl
  • Python
  • TypeScript
  • PHP
  • Ruby
  • C#/.NET
  • Java
  • Go

Generative AI disclosure

  1. Did you use a generative AI (GenAI) tool to assist in creating this contribution?
  • Yes
  • No

Claude, Cursor - GPT 5.6

@github-actions

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

@github-actions

github-actions Bot commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

@kosabogi

kosabogi commented Aug 13, 2026 •

Copy link
Copy Markdown
Member Author

Hi @alexmarhaba @dustincoates @georgewallace @KOTungseth @leemthompo ,

I've added the tutorial here, so please feel free to review it from now on.

These commits include the modifications we agreed on in our last call.

All commits include additional content refinements. I ran our review guidelines against this content and found a few areas that I thought would benefit from some small tweaks based on our guidelines. These include:

  • Improved the introduction to clarify the tutorial’s purpose, audience, and expected outcomes
  • Simplified the tutorial structure by removing unnecessary H3 headings
  • Expanded a few explanations
  • Replaced hardcoded product names with substitutions
  • Organized the Next steps part into subsections
  • Updated code examples based on end-to-end tests performed with Claude. For these, I'd love someone from the engineering team to take a close look even though the end-to-end tests were successful

All these changes are negotiable. Please let me know what you think.

Thank you in advance!

@dustincoates

Copy link
Copy Markdown
Contributor

I took a quick glance and it looks good to me, thanks!

@yetanothertw yetanothertw mentioned this pull request Aug 14, 2026
1 of 2 tasks
@kosabogi

kosabogi commented Aug 19, 2026 •

Copy link
Copy Markdown
Member Author

After testing the tutorial end to end thoroughly, I found that the previous structure mixed two usage models. Users were expected to add snippets to one file and rerun it for verification, but rerunning attempted to recreate the books index and failed with resource_already_exists_exception. Individual examples also depended on earlier imports and initialization, so they could not be tested independently.

The guide was still usable when followed as a single uninterrupted flow, but the overall user experience did not feel clear or intuitive.

Since we agreed that each step should be independently verifiable to support users’ understanding and learning, I updated the tutorial to provide two clear paths:

  • Progressive steps: Standalone, verifiable examples with the required setup and detailed explanations.
  • Complete runnable script: One file for quick results, using a separate index to avoid conflicts.

Happy to tweak anything based on feedback.

@KOTungseth @alexmarhaba @dustincoates @georgewallace

@kosabogi
kosabogi marked this pull request as ready for review August 19, 2026 14:24
@kosabogi
kosabogi requested review from a team as code owners August 19, 2026 14:24
kosabogi and others added 3 commits August 19, 2026 16:28
Use the file and class names created by Gradle so readers can run the examples without renaming generated files.

Co-authored-by: Cursor <[email protected]>

@leemthompo leemthompo left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A few things crossed my mind reading the latest version of this.

Otherwise, I have a few global thoughts:

  • I'm missing the curl (and console) language examples, which are much more ergonomic for running the tutorial stepwise, versus the clients, plus there's much less boilerplate to sift through in the individiual steps.
  • Again the stepwise client examples are kinda cumbersome
  • For the complete runnable scripts, I'd make sure you're printing the results with some big obvious print statements, so the terminal output is super clear

@kosabogi
kosabogi requested a review from a team as a code owner September 2, 2026 10:12
@kosabogi
kosabogi force-pushed the vector-full-text-search-quickstart branch from 414c941 to 0e683df Compare September 2, 2026 10:14
Use it if you're new to search in {{es}} or want to experiment with meaning-based retrieval alongside keyword matching.

:::{tip}
Are you an agent? Use the [elasticsearch-onboarding skill](https://github.com/elastic/agent-skills/tree/main/skills/elasticsearch/elasticsearch-onboarding).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I find this a little confusing and disruptive, the goal of this quickstart is to learn about the VDB project and learn the basic syntax of indexing and hybrid querying. Is an agent expected to use the skill and the follow the quickstart? I'd consider losing this or putting it somewhere less prominent, and losing the "Are you an agent?" question

@leemthompo leemthompo Sep 4, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we could at least soften the question to be more human-friendly and provide a bit more (concise) context about the details and value-add of the skill, right now it's not clear at all what this redirect will achieve for the user :)

@leemthompo leemthompo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approving because I don't think we have any substantial blockers at this point :)

vectordb: ga
---

# {{es}} vector and full-text search in 10 minutes [vector-full-text-search-quickstart]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Final thought: I wonder if we should have a think about the SEO of this H1 and whether we want to include "vector database" explicitly in the title

@kosabogi

kosabogi commented Sep 8, 2026

Copy link
Copy Markdown
Member Author

Manually tested the complete and progressive examples across all supported clients, plus Console and cURL.

Changes made based on testing:

  • TypeScript: Added ES module configuration to support top-level await.
  • C#/.NET: Added the imports required by the progressive examples.
  • Java: Added the imports required by the progressive examples.
  • Ruby: Retested successfully after multi_json 1.21.2 resolved the temporary compatibility issue with json 3.0.0. No tutorial change was needed.

@kosabogi
kosabogi merged commit fd6a21f into main Sep 8, 2026
10 checks passed
@kosabogi
kosabogi deleted the vector-full-text-search-quickstart branch September 8, 2026 10:51
yetanothertw added a commit that referenced this pull request Sep 8, 2026
## Summary

Closes
[#1413](elastic/docs-content-internal#1413)

### What's new

Page / file | What changed
-- | --
[Elasticsearch Vector Database project
overview](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/solutions/vector-database)
| Replaced hidden stub with full overview: what you get, when to use,
limitations (index modes, no custom in-cluster ML), billing pointer.
[Get
started](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/solutions/vector-database/get-started)
| Replaced hidden stub with create → ingest → search get-started guide.
[Elasticsearch Vector Database billing
dimensions](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/deploy-manage/cloud-organization/billing/vector-database-billing-dimensions)
| New Vector Database billing page (storage, search, ingest,
infrastructure; Search Power guidance).




### What's changed


Page / file | What changed
-- | --
[docs homepage](elastic/docs-builder#3866) | New
Vector Database availability card in the **Solutions and use cases**
section.
[Solutions > Choose your
path](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/solutions)
| Added Vector Database to search path; clarified ES vs Vector Database
choice tip.

[get-started/introduction.md](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/get-started/introduction)
| Reframed Elasticsearch need; added Vector Database row with Serverless
badges.

[get-started/versioning-availability.md](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/get-started/versioning-availability#examples-of-where-availability-can-vary)
| Added Vector Database to Serverless project types list.

[deploy-manage/deploy/elastic-cloud/serverless.md](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/deploy-manage/deploy/elastic-cloud/serverless#get-started)
| Four project types; ES vs Vector Database positioning copy.

[deploy-manage/deploy/elastic-cloud/create-an-organization.md](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/deploy-manage/deploy/elastic-cloud/create-an-organization#general-sign-up-trial-what-is-included-in-my-trial)
| Trial info lists four project types, including Vector Database.

[deploy-manage/deploy/elastic-cloud/project-settings.md](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/deploy-manage/deploy/elastic-cloud/project-settings#elasticsearch-manage-project-search-ai-lake-settings)
| Added Vector Database Search Power row (default 100, increments of
100, max 1900).

[deploy-manage/deploy/elastic-cloud/differences-from-other-elasticsearch-offerings.md](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/deploy-manage/deploy/elastic-cloud/differences-from-other-elasticsearch-offerings#architectural-differences)
| Project organization row includes Vector Database.

[deploy-manage/cloud-organization/billing.md](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/deploy-manage/cloud-organization/billing)
| Linked Vector Database billing dimensions.

[deploy-manage/cloud-organization/billing/serverless-project-billing-dimensions.md](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/deploy-manage/cloud-organization/billing/serverless-project-billing-dimensions#offerings)
| Added Vector Database to offerings list.
deploy-manage/toc.yml | Added Vector Database billing page to billing
TOC.
deploy-manage/_snippets/cps-billing.md | CPS retained-data rates include
Vector Database.

[deploy-manage/cross-project-search-config.md](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/deploy-manage/cross-project-search-config)
| CPS linking includes Vector Database; SVG architecture replaced with
Mermaid (incl. Vector Database spoke).

[deploy-manage/users-roles/cloud-organization/user-roles.md](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7961/deploy-manage/users-roles/cloud-organization/user-roles#general-assign-user-roles-table)
| Admin, Developer, Viewer availability includes Vector Database badge.
contribute-docs/how-to/cumulative-docs/guidelines.md | Example updated
from three to four serverless project types.
solutions/toc.yml | Unhid Vector Database overview and get-started pages
in nav.




Related to #7923


## Generative AI disclosure
<!--
To help us ensure compliance with the Elastic open source and
documentation guidelines, please answer the following:
-->
1. Did you use a generative AI (GenAI) tool to assist in creating this
contribution?
- [x] Yes  
- [ ] No  
<!--
2. If you answered "Yes" to the previous question, please specify the
tool(s) and model(s) used (e.g., Google Gemini, OpenAI ChatGPT-4, etc.).
-->

Tool(s) and model(s) used: Used Cursor's Auto agent to surface pages
that needed updates.
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.

4 participants