Exemplo n.º 1
0
        private void CreateSuggestAnalyzer()
        {
            string json = Serialization.Serialize(Analyzers.GetSuggestAnalyzer(Language.GetLanguageAnalyzer(_language)));

            byte[] data = Encoding.UTF8.GetBytes(json);
            var    uri  = _indexing.GetUri(_name, "_settings");

            Logger.Information("Adding Suggest analyzer");
            Logger.Information(JToken.Parse(json).ToString(Formatting.Indented));

            HttpClientHelper.Put(uri, data);
        }