Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10061 karma points MVP 2x admin c-trib
    Jan 31, 2017 @ 16:50
    Ismail Mayat
    0

    Hi Phil,

    I have elastic setup on azure on ubuntu vm can hit that publicly no problem. For my content I have created one indexing service which is registered I can see it in the admin layer.

    Im my web.config i have put for index name umb-cog-elasticsearch this index does not exist yet I have not created it. However I would suspect that from admin ui layer clicking add button should create new index and put the docs into it?

    When i click add button i get notification

    Unable to find indices matching known index pattern, use the add index option
    

    Any ideas?

    Regards

    Ismail

  • Ismail Mayat 4511 posts 10061 karma points MVP 2x admin c-trib
    Feb 01, 2017 @ 11:27
    Ismail Mayat
    0

    So bit of progress, I modifed my solution and am referencing the actual src project files and I can now index. However in the ui I am not seeing the index listed so cannot rebuild.

    Regards

    Ismail

  • Rasmus Fjord 672 posts 1562 karma points c-trib
    Feb 02, 2017 @ 09:29
    Rasmus Fjord
    0

    Its funny to see this post, i just pulled down the git repo, and got the example 7.5 project running, got the database from the 74 sample project, changed the login password in the database and got it running.

    I have Elasticsearch with kibana running, my indexname is : umb-elasticsearchv75

    and i have manually created this index by using this command : PUT /umb-elasticsearchv75?pretty

    And i can see it in Kibana: enter image description here

    but inside umbraco nothing is available, and if i try to save it just says no index.

    enter image description here enter image description here

    Yo gotten any further Ismail?

  • Ismail Mayat 4511 posts 10061 karma points MVP 2x admin c-trib
    Feb 02, 2017 @ 10:40
    Ismail Mayat
    100

    Ramsus,

    I downloaded the source code and modifed the class IndexManager method IndicesInfo line

    return response.Indices.Where(x => x.Key.StartsWith($"{indexAliasName}-")).Select(x => new IndexStatusInfo
    

    I removed the - after ${indexAliasName} that fixed it for me i now can see index and rebuild etc all works a treat.

    Regards

    Ismail

  • Phil Oyston 3 posts 104 karma points
    Feb 27, 2017 @ 10:23
    Phil Oyston
    0

    Ismail / Rasmus,

    Apologies for not seeing our post until now. I don't seem to get any notifications of posts into this forum.

    The issue I suspect is related to the "index prefix".

    Sets a value indicating a prefix string that will by default be prefixed onto the umbElasticsearch:IndexName value to produce a unique index name for an environment. This setting will attempt to expand any environment variables within the value.

    This setting is useful for configuring a development environment in which all developers share an Elasticsearch cluster but want to have a unique index for their computer.

    If you do not want to use an index prefix set the value to an empty string as removing the setting altogether will default its value to %COMPUTERNAME%:

    <add key="umbElasticsearch:IndexEnvironmentPrefix" value="" />

    Taken from: https://github.com/philo/umbraco.elasticsearch/wiki/Web.config-Settings#umbelasticsearchindexenvironmentprefix

    The index prefixing is there to support shared Elasticsearch clusters or specific environment deployments. For example where we use this internally the index prefix defaults to "%COMPUTERNAME% so that all developers can share the same Elasticsearch cluster for development but will all have unique indices.

    In Rasmus' example the indices it will create (or need permission to create) would be:

    • desktop-i6e6apd-umb-elasticsearchv75

    Where desktop-i6e6apd is the prefix and umb-elasticsearchv75 is the index name.

    If you do not want to use an index prefix please set the umbElasticsearch:IndexEnvironmentPrefix to an empty string in the config.

Please Sign in or register to post replies

Write your reply to:

Draft