mirror of
https://github.com/ClaytonWWilson/Listify.git
synced 2026-03-10 18:55:03 +00:00
Use plain table search history
This is easier, clearer, faster for inters, and ultimately not really much less space efficient than trying to store this in a serialized nor unreasonably slow for retrievals. Food for thought: Would this might be well-suited to a nosql database?
This commit is contained in:
@@ -29,10 +29,18 @@ public class ItemSearcher implements CallHandler {
|
||||
ItemSearch searchResultsObject = new ItemSearch(searchResults);
|
||||
System.out.println(searchResultsObject);
|
||||
InvokeRequest invokeRequest = new InvokeRequest();
|
||||
invokeRequest.setFunctionName("SearchHistoryUpdate");
|
||||
invokeRequest.setFunctionName("SearchHistoryPOST");
|
||||
invokeRequest.setPayload("{" +
|
||||
" \"newSearch\": \"" + queryParams.get("id") + "\"," +
|
||||
" \"cognitoID\": \""+ cognitoID + "\"" +
|
||||
" \"body\": {" +
|
||||
" \"searchTerm\": \"" + queryParams.get("id") + "\"" +
|
||||
" }," +
|
||||
" \"params\": {" +
|
||||
" \"querystring\": {" +
|
||||
" }" +
|
||||
" }," +
|
||||
" \"context\": {" +
|
||||
" \"sub\": \"" + cognitoID + "\"" +
|
||||
" }" +
|
||||
"}");
|
||||
invokeRequest.setInvocationType("Event");
|
||||
System.out.println(invokeRequest);
|
||||
|
||||
Reference in New Issue
Block a user