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;








0















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.










share|improve this question

















  • 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

















0















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.










share|improve this question

















  • 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













0












0








0








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 23 at 0:14









WANGWANG

51




51







  • 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












  • 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







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












1 Answer
1






active

oldest

votes


















3














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.






share|improve this answer























    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
    );



    );













    draft saved

    draft discarded


















    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









    3














    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.






    share|improve this answer



























      3














      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.






      share|improve this answer

























        3












        3








        3







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 26 at 1:19









        Jim MorrisonJim Morrison

        1,00537




        1,00537





























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

            155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

            Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?