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

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현