Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

/knowledge/feature/aliasSuggest/{field}/{term}/{comma-separated-list-of-community-ids}
Info

Returns a list of aliases sugggestions alias sugggestions (ie alternative names for an entity) that have been found in other documents, based on your query term.

Authentication

Required, see Auth - Login

Arguments

field (required)
The entity field on which to search, ie "index", "disambiguated_name", or "actual_name"

term (required)
The value of the entity field on which to search for aliases. Note this needs to be URL-escaped, eg "/" in the "index" would be represented by "%2F"

community id list (required)
The list of community IDs or community ID - regex in the URL controls which sources the query will use. Obviously the logged-in user must have access rights to those communities. A user's communities can be viewed using the "person/get" API call.

Example

http://infinite.ikanow.com/api/knowledge/feature/aliasSuggest/index/barack obama%2Fperson/4c927585d591d31d7b37097a,4db5c05fb246d25364aceca0
http://infinite.ikanow.com/api/knowledge/feature/aliasSuggest/disambiguated_name/barack obama/4c927585d591d31d7b37097a,4db5c05fb246d25364aceca0
http://infinite.ikanow.com/api/knowledge/feature/aliasSuggest/actual_name/Barry%20Obama/4c927585d591d31d7b37097a,4db5c05fb246d25364aceca0

Example Response
Info
Code Block

{
      "response": {
          "action": "aliasSuggest",
          "success": true,
          "message": "Successfully returned aliases",
          "time": 1660
      },
      "data: [
            [
                "GregMitch Obama"
                "Obamas"
                "Barack "Obama"
                "hussein obama"
                "barack"
                "president obama"
                "president-elect barack obama"
                "Barack Hussein Obama"
                "mr. obama"
": [
               "barrack" obama"
                "Barack) Obama"
                "barack] obama"
                "Senator Obama"
                "President [Barack] Obama"
                "President Obama"
                "BARACK OBAMA"
                "barack) obama"
                "First Lady Michelle Obama"
                "Obama"
                "president barak obama"
                "Sen. Barack Obama"
                "obama."
                "President Barack Obama"
                "Barack Hussein Obama."
                "senator obama"
                "Senator Barack Obama"
                "barack "barry" obama"
                "mrs. obama"
                "first lady michelle obama"
                "mcchrystal—president obama"BARACK OBAMA",
                 "Barack] Obama"
                "President Barak Obama"
                "Barack Obama"
                "OBAMA"
                "sen. barack obama"
                "Mr. Obama"
                "barack hussein obama"
                "barack obama."
                "Mrs. Obama"
                "king obama"
                "barrack obama"
                "obama"
                "obamas"
                "president barack obama"
                "Barak Obama"
                "President BARACK OBAMA"
                "president barack obama"
                "barack obama"
                "barack hussein obama."
                "barak obama"
                "senator barack obama"
                "malia obama"
                "dr barack obama"
                "Barack H. Obama"
                "Barack Obama."
            ]
 
    ]
}