Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mus'ab 158 posts 387 karma points notactivated
    Dec 05, 2019 @ 08:22
    Mus'ab
    2

    moving umbraco project require rebuild index to work

    Hi

    i have a newspaper project and i wrote many controllers that using examine search internal and external index

    my problem is that every time i uploading my project to real server i found that i have to rebuild index to make it working will because examine will not return the results without rebuild index again.

    why this case happening and how can i solve that ?

  • Yakov Lebski 594 posts 2350 karma points
    Dec 05, 2019 @ 17:50
    Yakov Lebski
    0

    Are you using existing indexes ? if yes - It should work, if it new indexes - umbraco should create them. sometimes it disabled by default and you need create it manually.

  • Mus'ab 158 posts 387 karma points notactivated
    Dec 07, 2019 @ 09:39
    Mus'ab
    0

    Hi Yakov

    i am using the main umbraco internal & external index i just change the index type for a one date picker from full text type to date time

  • Yakov Lebski 594 posts 2350 karma points
    Dec 07, 2019 @ 18:17
    Yakov Lebski
    0

    If you changed field type you should rebuild index once to apply changes.

  • Mus'ab 158 posts 387 karma points notactivated
    Dec 07, 2019 @ 18:51
    Mus'ab
    0

    so what do you think the reason for that i have to rebuild it each time i upload the project on server ?

  • Yakov Lebski 594 posts 2350 karma points
    Dec 08, 2019 @ 00:18
    Yakov Lebski
    0

    No, rebuild needed only if configuration was changed.

  • Mus'ab 158 posts 387 karma points notactivated
    Dec 08, 2019 @ 07:36
    Mus'ab
    0

    do you mean the reason is changing the connection string or witch configuration do you mean ?!

    what is the configuration that changed when i moving the project to another device ?

  • Søren Kottal 713 posts 4571 karma points MVP 6x c-trib
    Dec 08, 2019 @ 19:09
    Søren Kottal
    0

    What does your /config/ExamineSettings.config file look like?

    Reindexing on startup is enabled by default, but maybe you have it disabled?

  • Jack Lawry 23 posts 146 karma points c-trib
    Dec 09, 2019 @ 10:42
    Jack Lawry
    0

    Hi Søren,

    How do you check the reindex on startup is enabled?

    I'm fairly sure my /config/ExamineSettings.config is default but I wonder if somehow it is disabled?

    This is the contents https://pastebin.com/zMKerpj9

    Thanks, Jack

  • Søren Kottal 713 posts 4571 karma points MVP 6x c-trib
    Dec 09, 2019 @ 11:00
    Søren Kottal
    0

    Hi Jack

    There is a property on the root element called RebuildOnStartup (IIRC). You can set it to false to disable reindexing. The default value is true.

  • Mus'ab 158 posts 387 karma points notactivated
    Dec 09, 2019 @ 10:56
    Mus'ab
    0

    Hi Søren

    I am using Umbraco 8 and i thing there no ExamineSettings.config in umbraco 8

  • Søren Kottal 713 posts 4571 karma points MVP 6x c-trib
    Dec 09, 2019 @ 11:00
    Søren Kottal
    0

    Sorry, the config files is only for v7. I don't know how indexing on startup works in v8.

  • Adam 8 posts 86 karma points
    Jul 01, 2020 @ 08:29
    Adam
    0

    I have exactly the same issue, have anyone solved it so far?

  • Mus'ab 158 posts 387 karma points notactivated
    Jul 01, 2020 @ 08:32
    Mus'ab
    0

    Hi Adam

    Does your site have a large number of nodes? if yes try to wait for 5 minutes after you upload your project in some cases its need some time to deploy the indexes

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies