Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
/search/feed/{channel_id}
/search/feed?channel_id=abc1234
Info

Returns a list of documents that should just be nsight-events for a given channel_id or the posted data (cannot be both)

 

Info

This function has 2 modes:

  1. Initial search mode which corresponds to the POST version, takes a list of keywords and locations and returns a feed of related events to start building a channel from., can pass an optional ?channel_id=id to have the searches effect the channels score
  2. Channel search mode which corresponds to the GET version, takes a channel_id and returns a feed of significant events based on the scoring of a channel (liked/disliked events).

...

channel_id: (optional) id of the channel you want to return a feed for, used in the GET request or when passed as a query param in the POST request, will update score for that channel based on keyword searches

Json Object
Code Block
SearchFeedApiPojo
{
    List<String> search_terms = new ArrayList<String>();
    List<ChannelLocationApiPojo> locations = new ArrayList<ChannelLocationApiPojo>();
}

ChannelLocationApiPojo
{
	String location_id;
    Double latitude;
    Double longitude;
    Double radius;
    Date timestamp;
}

...