Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
/knowledge/assocSuggest/{entity1}/{verb}/{entity2}/{searchfield}/{communityids}
Info

Returns a list of entity-association suggestions based the sentence/query fragment passed in (eg what the user has typed so far into a query box). Only the specified term (subject/object/verb) from the matching associations is returned, ordered by document count across the specified communities.

Authentication

Required, see Auth - Login

Arguments

entity1 (required)
The first term (subject) of the event you are searching for, leave blank to match on all subject entities

...

communityids (required)
A comma deliminated list of community IDs 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/searchEventSuggest/obam///entity1/4c927585d591d31d7b37097a
http://infinite.ikanow.com/api/knowledge/searchEventSuggest/obama/travel//entity1/4c927585d591d31d7b37097a
http://infinite.ikanow.com/api/knowledge/searchEventSuggest/obam/traveled/can/entity1/4c927585d591d31d7b37097ahttp://infinite.ikanow.com/api/knowledge/searchEventSuggest/obam/traveled/can/entity1/4c927585d591d31d7b37097a,4c927585d561d31e7b37096b

Example Response
Info
Code Block
languagejavascript
{
    "response": {
        "action": "Suggestions Event",
        "success": true,
        "message": "obam",
        "time": 0
    },
    "data": [
        "obama/person",
        "michelle obama/person",
        "barack obama/person",
        "obama administration/organization"
    ]
}