List entries from main dictionary


#1

Hi,

When I want to list entries from a dictionary which type is “MAIN”, like [main_0] I get a 400 error.

{
  "error": {
    "message": "error from gdict entry/list: Mongo Exception: assertion src/mongo/bson/oid.cpp:145",
    "info": {
      "statusCode": 400
    },
    "statusCode": 400
  }
}

For a user dictionary, I get the list.
Is there a way to get the entries list of a main Systran dictionary ? In order to update the entry priorities.

Thomas


#2

Hi,

Dictionaries of type “MAIN” are special: they can only be used for lookup.

Using these dictionaries id in other API will result in a 400 HTTP error: invalid request.
We will improve our documentation around this and the error message too.

So you won’t be able to list the entries or update the priorities. If you want to update a priority you can do so by creating a new UD, and add your entry there.

Thomas