Hi,
Please clarify if you not getting the results you wanted using SocialMiner REST API campaign results call? Are you refereeing to some specific time frame that the results are missing for?
Also it is not clear if you also not getting the expected results in SocialMIner UI HOME page for this specific campaign?
Please clarify.
In any case, there are detail explanations in User Guide on how to use campaign results api with an additional parameters and what happens if those are not provided (what kind of defaults are used instead). Please refer to this document. I pasted some details below , but refer to the document for the complete reference:
==============================================================================
•timestamp: Integer. Display results older results than this timestamp. Defaults to the time of request if
not provided. If startIndex is not specified then timestamp assumes startIndex = 0.
• resultsPerPage: Integer. The maximum number of results to be returned. Default is 50 and maximum
is 200.
• startIndex: Integer. The number of results to skip based on the timestamp. Used for pagination. Assuming
resultsPerPage is set at the default of 50, then you could create a “page 2” link by using the timestamp
provided in the href of the feed/link rel="self" and a startIndex of 50. Page 3 would use the same
timestamp and a startIndex of 100, and so on.
Note
*If timestamp is provided and startIndex is not provided, then the results are displayed up to the
“resultsPerPage” with a creation date older than “timestamp”, starting at index 0.
*If timestamp is not provided and startIndex is provided, then the results are displayed up to the
“resultsPerPage” with a creation date older than “now” starting at startIndex.
For SocialMIner UI, please look if there may be an additional filter set for the campaign or there is a tag filtering going on (you can check it in Settings). That can narrow down the original results set.
You can also look at the ccpapi logs to see what query is used , when you select the campaign on HOME page. Please also note that UI will also filter based on the SocialContact state chosen (unread, handled, etc.)
From the logs you can see how query looks like and try the corresponding REST api call.
Please find the example of the logs , I am referring to, below .
If your questions still remain un-answered, please provide us with the exact api call, logs and the explanations on what data are missing , etc.
Thank you
Tanya
>>>>>>>>>>>>>>> snippet from ccpapi log :
0000015537: 10.86.141.221: Feb 04 2013 10:23:28.639 -0500: %CCBU_INFRASTRUCTURE-6-REQUEST_START: %[ip.orig=10.86.141.221][method_name=GET][parameter_name={ time=[1359991408593], filterStatus= }][port.orig=46355][resource_name=/campaign/Test_Camp/results]: Request start
0000000637: 10.86.141.221: Feb 04 2013 10:23:28.643 -0500: %CCBU_____CCP-DS-API-6-CCP_DS_API_MESSAGE: SolandraDS.getByCampaign query: campaignStatus_106162_s:IN AND de.type:SocialContact AND sc.socialContactStatus

unread) [from:null, limit:51]
0000000638: 10.86.141.221: Feb 04 2013 10:23:28.658 -0500: %CCBU_____CCP-DS-API-6-CCP_DS_API_MESSAGE: Stored new cache entry com.cisco.ccbu.ccp.ds.cassandra.api.CampaignQueryCache$CacheEntry@42ec93[campaignId=106162,params=com.cisco.ccbu.ccp.ds.beans.CampaignQueryParams@1181a7d[limit=51,fromIndex=<null>,campaignStatus=IN,baseTimestamp=<null>,timestamp=<null>,filterStatus=,filterTag=<null>,socialContact=<null>,socialContactId=<null>,solrSearchQuery=<null>,includeContactWithContactId=false],lastPublished=Wed Oct 31 20:11:32 EDT 2012,firstPublished=Mon Aug 06 04:34:27 EDT 2012]
0000004023: 10.86.141.221: Feb 04 2013 10:23:28.770 -0500: %CCBU_________CCPAPI-6-CAMPAIGN_RESULTS_FOUND: %[query params=com.cisco.ccbu.ccp.ds.beans.CampaignQueryParams@1cb70bf[limit=51,fromIndex=<null>,campaignStatus=IN,baseTimestamp=<null>,timestamp=<null>,filterStatus=,filterTag=<null>,socialContact=<null>,socialContactId=<null>,solrSearchQuery=<null>,includeContactWithContactId=false]]: Found and returning campaign results for query
0000015538: 10.86.141.221: Feb 04 2013 10:23:28.795 -0500: %CCBU_INFRASTRUCTURE-6-REQUEST_END: %[PARAM_TIME_ELAPSED=155]: Request complete
0000015539: 10.86.141.221: Feb 04 2013 10:23:29.111 -0500: %CCBU_INFRASTRUCTURE-6-REQUEST_START: %[ip.orig=10.86.141.221][method_name=GET][parameter_name={ time=[1359991409065], filterStatus=, postId=[B94F54821000013A000070360A568DDD] }][port.orig=46355][resource_name=/campaign/Test_Camp/count]: Request start
0000015540: 10.86.141.221: Feb 04 2013 10:23:29.123 -0500: %CCBU_INFRASTRUCTURE-6-REQUEST_END: %[PARAM_TIME_ELAPSED=11]: Request complete
From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Monday, February 04, 2013 6:54 AM
To: cdicuser@developer.cisco.com
Subject: New Message from Koushal Pandit in Cisco SocialMiner - Technical Discussion: Xml data Result
Koushal Pandit has created a new message in the forum "Technical Discussion": -------------------------------------------------------------- So I am trying to populate the database with posts from the feed, the function requires xml data from the feed. So I use the following for the data :
http://<server-name>/ccp-webapp/ccp/campaign/CampaignName/results<http://%3cserver-name%3e/ccp-webapp/ccp/campaign/CampaignName/results>
but it is missing out certain posts/comments. Although all the post data is available in Social Miner but the results page doesn't show them. Is it the correct link for the xml data of the feed? Any reason why it's not showing all the data?
--
To respond to this post, please click the following link: http://developer.cisco.com/web/socialminer/forums/-/message_boards/view_message/11514985 or simply reply to this email.