GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Index.yaml location · Issue #1334 · googleapis/google-cloud-java

Index.yaml location #1334

New issue
Copy link
New issue
Copy link
Closed
Closed
Index.yaml location#1334
Copy link
Assignees
mitchhentges
Labels
api: datastoreIssues related to the Datastore API.

Description

@mitchhentges
mitchhentges
opened on Oct 25, 2016
Issue body actions

I'm running my application as a Jetty jar: java -jar app.jar will start a webserver on $PORT, which serves both static files and services API calls.

I'm having an issue with datastore indices not being honoured. I've followed the instructions both on google-cloud-java and its linked datastore-index-specific page, which appears to state that the index configuration index.yaml should be in WEB-INF/index.yaml in my jar:

The index.yaml is located in the /WEB-INF/ folder.

However, even with this index.yaml file configured, my datastore requests are still failing:

Caused by: com.google.datastore.v1.client.DatastoreException: no matching index found. recommended index is:
- kind: TextMessage
  properties:
  - name: sender
  - name: date

Is my index.yaml in the correct spot? Can I provide the index.yaml resource path to the Client Datastore API? Is the index.yaml supposed to be visible on my app via an http request?

For reference, my index.yaml is:

indexes:
- kind: TextMessage
  properties:
  - name: sender
  - name: date

Activity

  1. mitchhentges commented on Oct 25, 2016

    @mitchhentges
    mitchhentges
    on Oct 25, 2016
    Author
    More actions

    Note: I've investigated the Bookshelf example (all other links are broken on http://googlecloudplatform.github.io/google-cloud-java/0.4.0/index.html), and it has an index.yaml. However, after building a Bookshelf war file, it doesn't have an index.yaml in it?

  2. mziccard commented on Oct 25, 2016

    @mziccard
    mziccard
    on Oct 25, 2016
    Contributor
    More actions

    Hi @mitchhentges!

    The creation of indexes from a local file (index.yaml) is not done by our library. When you deploy an App Engine app, index.yaml is used to update/create indexes in datastore as part of the deploy process.

    Since it does not seem you are deploying your application to AppEngine, the gcloud command comes to the rescue and allows you to set indexes for Datastore given a index.yaml file. Use the google preview datastore create-indexes command (docs here) to create index in the production Datastore from a local index.yaml.

    Here you can find an interesting example of development workflow when using Datastore.

  3. mziccard
    added
    api: datastoreIssues related to the Datastore API.
    on Oct 25, 2016
  4. mitchhentges commented on Oct 25, 2016

    @mitchhentges
    mitchhentges
    on Oct 25, 2016
    Author
    More actions

    Sweet, thanks!

  5. mitchhentges
    closed this as completedon Oct 25, 2016
  6. JustinBeckwith
    assigned
    mitchhentges
    on Feb 1, 2021
  7. github-actions
    added 2 commits that reference this issue on Sep 15, 2022

    deps: update dependency com.google.api.grpc:proto-google-cloud-pubsub…

    56cb4b4

    chore(main): release 3.6.0 (#1313)

    1fbaf40
  8. meltsufin
    added a commit that references this issue on Dec 22, 2025

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    f6accf8
  9. chingor13
    added a commit that references this issue on Jan 6, 2026

    build(deps): update dependency org.sonatype.plugins:nexus-staging-mav…

    2deac4f
  10. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(main): release 2.18.5-SNAPSHOT (#1334)

    0737266
  11. chingor13
    added a commit that references this issue on Feb 24, 2026

    fix: handle error-prone warnings (#1334)

    927cad8
  12. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    7e0703f
  13. chingor13
    added a commit that references this issue on Mar 12, 2026

    fix: handle error-prone warnings (#1334)

    99af0d6
  14. suztomo
    added 2 commits that reference this issue on Mar 23, 2026

    docs: create Spring Data JDBC sample (googleapis#1334)

    3335d83

    chore(main): release 2.13.0 (googleapis#1345)

    79ed936
  15. meltsufin
    added 4 commits that reference this issue on Apr 29, 2026

    deps: update dependency com.google.cloud:google-cloud-bigquery to v2.…

    d2edb44

    chore(main): release 1.120.21 (#1347)

    0bef041

    deps: update dependency com.google.cloud:google-cloud-bigquery to v2.…

    0c44aac

    chore(main): release 1.120.21 (#1347)

    8e348ca
  16. benjaminp
    added a commit that references this issue on Jul 13, 2026

    feat: Support Cloud Bigtable Changestream (googleapis#1569)

    99071f0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @mitchhentges
    mitchhentges

Labels

api: datastoreIssues related to the Datastore API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.