datastore-indexes.xml doesn't work, creates no index after deployhow to deal with datastore-indexes app engine?Indexes and indexes entries limits in Google App Engine DatastoreIndex error on querying google datastore using gcloudCreating a Composite Index for AppEngine in Android-Studio-based projectGAE datastore index not getting createdGoogle Cloud Datastore indexesGoogle Cloud Datastore on App Engine with Java. Which package to use?What am i doing wrong here? Anytime i execute this line it directs to one directoryHow to deploy index.yaml and update indexes for java app-engine project?Google App Engine datastore index created but still got DatastoreNeedIndexException
Wrong answer from DSolve when solving a differential equation
Are pressure-treated posts that have been submerged for a few days ruined?
Manager is threatening to grade me poorly if I don't complete the project
Appropriate certificate to ask for a fibre installation (ANSI/TIA-568.3-D?)
How can I get a job without pushing my family's income into a higher tax bracket?
Is there an idiom that support the idea that "inflation is bad"?
PWM 1Hz on solid state relay
How do inspiraling black holes get closer?
Floor of Riemann zeta function
How to safely wipe a USB flash drive
What are the differences between credential stuffing and password spraying?
How to adjust tikz picture so it fits to current size of a table cell?
I'm in your subnets, golfing your code
Why aren't nationalizations in Russia described as socialist?
Should I dumb down my writing in a foreign country?
What was Bran's plan to kill the Night King?
How should I tell my manager I'm not paying for an optional after work event I'm not going to?
Do publishers care if submitted work has already been copyrighted?
What does 'made on' mean here?
How can I get people to remember my character's gender?
Are the Night's Watch still required?
Adjacent DEM color matching in QGIS
Word meaning as function of the composition of its phonemes
What exactly are the `size issues' preventing formation of presheaves being a left adjoint to some forgetful functor?
datastore-indexes.xml doesn't work, creates no index after deploy
how to deal with datastore-indexes app engine?Indexes and indexes entries limits in Google App Engine DatastoreIndex error on querying google datastore using gcloudCreating a Composite Index for AppEngine in Android-Studio-based projectGAE datastore index not getting createdGoogle Cloud Datastore indexesGoogle Cloud Datastore on App Engine with Java. Which package to use?What am i doing wrong here? Anytime i execute this line it directs to one directoryHow to deploy index.yaml and update indexes for java app-engine project?Google App Engine datastore index created but still got DatastoreNeedIndexException
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have created a Kind called User in Google App Engine datastore, and I am trying to add an index for this kind.
Firstly, I followed https://cloud.google.com/appengine/docs/standard/java/config/indexconfig to create index by adding datastore-indexes.xml inside war/WEB-INF, but it doesn't work, no index is created after I deploy to app engine.
code in my datastore-indexes.xml:
<?xml version="1.0" encoding="utf-8"?>
<datastore-indexes autoGenerate="false">
<datastore-index kind="User" ancestor="false" source="manual">
<property name="area" direction="asc"/>
<property name="coins_balance" direction="asc"/>
</datastore-index>
</datastore-indexes>
Then I followed https://cloud.google.com/appengine/docs/standard/python/config/indexref, I created an index.yaml and run gcloud app deploy index.yaml
, this time index is actually created.
So can anyone help me understand why datastore-indexes.xml in my case doesn't work, thanks.
google-app-engine google-cloud-datastore
add a comment |
I have created a Kind called User in Google App Engine datastore, and I am trying to add an index for this kind.
Firstly, I followed https://cloud.google.com/appengine/docs/standard/java/config/indexconfig to create index by adding datastore-indexes.xml inside war/WEB-INF, but it doesn't work, no index is created after I deploy to app engine.
code in my datastore-indexes.xml:
<?xml version="1.0" encoding="utf-8"?>
<datastore-indexes autoGenerate="false">
<datastore-index kind="User" ancestor="false" source="manual">
<property name="area" direction="asc"/>
<property name="coins_balance" direction="asc"/>
</datastore-index>
</datastore-indexes>
Then I followed https://cloud.google.com/appengine/docs/standard/python/config/indexref, I created an index.yaml and run gcloud app deploy index.yaml
, this time index is actually created.
So can anyone help me understand why datastore-indexes.xml in my case doesn't work, thanks.
google-app-engine google-cloud-datastore
1
How did you deployed to App Engine? Likeappcfg.sh update_indexes path/to/datastore-indexes.xml
? Because if you don't explicitly/manually deploy this file, as you later did, it won't have any effect.
– Mangu
Mar 23 at 9:13
I see, but I don't have appcfg.sh, only got gcloud, so I guess I'll stick with index.yaml
– WANG
Mar 25 at 1:34
Yeah, if you use gcloud instead of appcfg, stick with the yaml format described in here, but the logic to follow is the same, you have to rungcloud app deploy index.yaml
for the indexes to deploy.
– Mangu
Mar 25 at 8:19
thank you very much Mangu, issue solved.
– WANG
Mar 27 at 8:22
add a comment |
I have created a Kind called User in Google App Engine datastore, and I am trying to add an index for this kind.
Firstly, I followed https://cloud.google.com/appengine/docs/standard/java/config/indexconfig to create index by adding datastore-indexes.xml inside war/WEB-INF, but it doesn't work, no index is created after I deploy to app engine.
code in my datastore-indexes.xml:
<?xml version="1.0" encoding="utf-8"?>
<datastore-indexes autoGenerate="false">
<datastore-index kind="User" ancestor="false" source="manual">
<property name="area" direction="asc"/>
<property name="coins_balance" direction="asc"/>
</datastore-index>
</datastore-indexes>
Then I followed https://cloud.google.com/appengine/docs/standard/python/config/indexref, I created an index.yaml and run gcloud app deploy index.yaml
, this time index is actually created.
So can anyone help me understand why datastore-indexes.xml in my case doesn't work, thanks.
google-app-engine google-cloud-datastore
I have created a Kind called User in Google App Engine datastore, and I am trying to add an index for this kind.
Firstly, I followed https://cloud.google.com/appengine/docs/standard/java/config/indexconfig to create index by adding datastore-indexes.xml inside war/WEB-INF, but it doesn't work, no index is created after I deploy to app engine.
code in my datastore-indexes.xml:
<?xml version="1.0" encoding="utf-8"?>
<datastore-indexes autoGenerate="false">
<datastore-index kind="User" ancestor="false" source="manual">
<property name="area" direction="asc"/>
<property name="coins_balance" direction="asc"/>
</datastore-index>
</datastore-indexes>
Then I followed https://cloud.google.com/appengine/docs/standard/python/config/indexref, I created an index.yaml and run gcloud app deploy index.yaml
, this time index is actually created.
So can anyone help me understand why datastore-indexes.xml in my case doesn't work, thanks.
google-app-engine google-cloud-datastore
google-app-engine google-cloud-datastore
asked Mar 23 at 0:14
WANGWANG
51
51
1
How did you deployed to App Engine? Likeappcfg.sh update_indexes path/to/datastore-indexes.xml
? Because if you don't explicitly/manually deploy this file, as you later did, it won't have any effect.
– Mangu
Mar 23 at 9:13
I see, but I don't have appcfg.sh, only got gcloud, so I guess I'll stick with index.yaml
– WANG
Mar 25 at 1:34
Yeah, if you use gcloud instead of appcfg, stick with the yaml format described in here, but the logic to follow is the same, you have to rungcloud app deploy index.yaml
for the indexes to deploy.
– Mangu
Mar 25 at 8:19
thank you very much Mangu, issue solved.
– WANG
Mar 27 at 8:22
add a comment |
1
How did you deployed to App Engine? Likeappcfg.sh update_indexes path/to/datastore-indexes.xml
? Because if you don't explicitly/manually deploy this file, as you later did, it won't have any effect.
– Mangu
Mar 23 at 9:13
I see, but I don't have appcfg.sh, only got gcloud, so I guess I'll stick with index.yaml
– WANG
Mar 25 at 1:34
Yeah, if you use gcloud instead of appcfg, stick with the yaml format described in here, but the logic to follow is the same, you have to rungcloud app deploy index.yaml
for the indexes to deploy.
– Mangu
Mar 25 at 8:19
thank you very much Mangu, issue solved.
– WANG
Mar 27 at 8:22
1
1
How did you deployed to App Engine? Like
appcfg.sh update_indexes path/to/datastore-indexes.xml
? Because if you don't explicitly/manually deploy this file, as you later did, it won't have any effect.– Mangu
Mar 23 at 9:13
How did you deployed to App Engine? Like
appcfg.sh update_indexes path/to/datastore-indexes.xml
? Because if you don't explicitly/manually deploy this file, as you later did, it won't have any effect.– Mangu
Mar 23 at 9:13
I see, but I don't have appcfg.sh, only got gcloud, so I guess I'll stick with index.yaml
– WANG
Mar 25 at 1:34
I see, but I don't have appcfg.sh, only got gcloud, so I guess I'll stick with index.yaml
– WANG
Mar 25 at 1:34
Yeah, if you use gcloud instead of appcfg, stick with the yaml format described in here, but the logic to follow is the same, you have to run
gcloud app deploy index.yaml
for the indexes to deploy.– Mangu
Mar 25 at 8:19
Yeah, if you use gcloud instead of appcfg, stick with the yaml format described in here, but the logic to follow is the same, you have to run
gcloud app deploy index.yaml
for the indexes to deploy.– Mangu
Mar 25 at 8:19
thank you very much Mangu, issue solved.
– WANG
Mar 27 at 8:22
thank you very much Mangu, issue solved.
– WANG
Mar 27 at 8:22
add a comment |
1 Answer
1
active
oldest
votes
As documented in the java index config page and noted in the comments, datastore-indexes.xml is only supported through appcfg.sh at this time. To use gcloud, you'll need to configure your indexes as a yaml file.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309356%2fdatastore-indexes-xml-doesnt-work-creates-no-index-after-deploy%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
As documented in the java index config page and noted in the comments, datastore-indexes.xml is only supported through appcfg.sh at this time. To use gcloud, you'll need to configure your indexes as a yaml file.
add a comment |
As documented in the java index config page and noted in the comments, datastore-indexes.xml is only supported through appcfg.sh at this time. To use gcloud, you'll need to configure your indexes as a yaml file.
add a comment |
As documented in the java index config page and noted in the comments, datastore-indexes.xml is only supported through appcfg.sh at this time. To use gcloud, you'll need to configure your indexes as a yaml file.
As documented in the java index config page and noted in the comments, datastore-indexes.xml is only supported through appcfg.sh at this time. To use gcloud, you'll need to configure your indexes as a yaml file.
answered Mar 26 at 1:19
Jim MorrisonJim Morrison
1,00537
1,00537
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55309356%2fdatastore-indexes-xml-doesnt-work-creates-no-index-after-deploy%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
How did you deployed to App Engine? Like
appcfg.sh update_indexes path/to/datastore-indexes.xml
? Because if you don't explicitly/manually deploy this file, as you later did, it won't have any effect.– Mangu
Mar 23 at 9:13
I see, but I don't have appcfg.sh, only got gcloud, so I guess I'll stick with index.yaml
– WANG
Mar 25 at 1:34
Yeah, if you use gcloud instead of appcfg, stick with the yaml format described in here, but the logic to follow is the same, you have to run
gcloud app deploy index.yaml
for the indexes to deploy.– Mangu
Mar 25 at 8:19
thank you very much Mangu, issue solved.
– WANG
Mar 27 at 8:22