Skip to content

Update search-template.asciidoc #103416

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

Open
wants to merge 1 commit into
base: 8.11
Choose a base branch
from

Conversation

sherry-ger
Copy link

The example using the inverted section in the list topic does not produce a query with the correct syntax,

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#search-template-lists

{
  "template_output": {
    "query": {
      "multi-match": {
        "query": "My string",
        "fields": "[John,kimchy]"
      }
    }
  }
}

The above query does not have the correct syntax.

Fix the example so it creates the correct query.

The example using the inverted section in the list topic does not produce a query with the correct syntax, 

https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html#search-template-lists

Fix the example so it creates the correct query.
Copy link
Contributor

Documentation preview:

@elasticsearchmachine
Copy link
Collaborator

@sherry-ger please enable the option "Allow edits and access to secrets by maintainers" on your PR. For more information, see the documentation.

@elasticsearchmachine elasticsearchmachine added v8.11.4 needs:triage Requires assignment of a team area label external-contributor Pull request authored by a developer outside the Elasticsearch team labels Dec 13, 2023
@pxsalehi pxsalehi added :Search/Search Search-related issues that do not fall into other categories >docs General docs changes and removed needs:triage Requires assignment of a team area label labels Dec 18, 2023
@elasticsearchmachine elasticsearchmachine added Team:Docs Meta label for docs team Team:Search Meta label for search team labels Dec 18, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@leemthompo
Copy link
Contributor

Thanks @sherry-ger, would you mind rebasing to target main for this change, which we can then backport to 8.11 and 812?

sherry-ger added a commit that referenced this pull request Jan 2, 2024
Update search-template.asciidoc recreate #103416 in main
@sherry-ger
Copy link
Author

Thanks @leemthompo
Recreated the PR in main #103816

@javanna javanna added :Search Foundations/Search Catch all for Search Foundations and removed :Search/Search Search-related issues that do not fall into other categories labels Jul 17, 2024
@elasticsearchmachine elasticsearchmachine added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch and removed Team:Search Meta label for search team labels Jul 17, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@leemthompo
Copy link
Contributor

Important

Elastic documentation is migrating to Markdown for version 9.0+. See the migration guide for details.

ℹ️ What's happening?

  • Starting January 29, we will start closing all unmerged documentation PRs targeting main/master
  • We're migrating from AsciiDoc to Markdown for 9.0+
  • 9.0 docs will be frozen from January 29 until February 20 2024
  • NOTE: PRs that include both code and documentation changes will remain open

What do I need to do?

For <=8.x docs:

  1. Rebase your PR to target the relevant 8.x branch instead
  2. The content can remain in AsciiDoc format

For 9.0+ docs:

Option 1:

  • Draft docs in Markdown
  • Once migration freeze ends, find the relevant page in the new docs system and use the edit options to submit your changes

Option 2:

💡 Need help?

  1. For Elasticians: Ask in #docs Slack channel
  2. For external contributors: Open an issue in elastic/docs-content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes external-contributor Pull request authored by a developer outside the Elasticsearch team :Search Foundations/Search Catch all for Search Foundations Team:Docs Meta label for docs team Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v8.11.5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants