November Happy Hour will be moved to Thursday December 5th.

Dev account: Synonyms

Vote:
 

Are synonyms functionallity is supported if index is running on dev find account?

Request:

GET http://es-api01.episerver.com/QkEI9tXN8so30PlQV3TJH9dTtFBeszkJ/yauheni_0663/_config HTTP/1.1

Response:

{
    "status": "ok",
    "item": {
        "stats": true,
        "admin": true,
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "languages": ["no", "pl", "sv"],
        "connectors": false
    }
}
"admin" propety is set to: true.(Repeating "language" property looks like a bug)

I'm able to use UsingSynonyms extension when I do search - there is no error during request:
{
    "query": {
        "query_string": {
            "query": " ... ",
            "analyzer": "synonym_[language]"
        }
    }
}

But if I try to add synonym:

            var synonymsClient = SearchClient.Instance.Optimizations().Synonyms();
            synonymsClient.Add(new Synonym("word1", "s1"), Language.Swedish);

Following request is issued:

POST http://es-api01.episerver.com/QkEI9tXN8so30PlQV3TJH9dTtFBeszkJ/yauheni_0663/_admin/synonym/?

{
    "$type": "EPiServer.Find.Optimizations.Synonyms.Api.Synonym, EPiServer.Find.Optimizations",
    "phrase": "word1",
    "synonym": "s1",
    "bidirectional": false,
    "tags": ["language:sv"]
}

which failes with 403 Forbidden error:

{
    "status": 403,
    "error": "Your key is not authorized to access (POST) '/yauheni_0663/_admin/synonym/?'"
}
#88603
Jul 18, 2014 11:50
Vote:
 

Sorry for post formatting.

BTW, it would be nice to have preview option:)

#88604
Jul 18, 2014 11:52
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.