Skip to content
Snippets Groups Projects
Commit 79a9d2b4 authored by jsclose's avatar jsclose
Browse files

server runs, just need to return results

parent 4ebb2ecd
No related branches found
No related tags found
1 merge request!9Website
No preview for this file type
......@@ -188,8 +188,10 @@ void *Talk( void *p )
if ( potentialSearch.compare(0,7, "/search") == 0)
{
std::cout << "---Making a search GET---" << std::endl;
potentialSearch = potentialSearch.erase(0, 8);
//TODO remove %20 from multi word strings
std::cout << potentialSearch << std::endl;
std::cout << "Returning results" << std::endl;
......
......@@ -11,7 +11,8 @@ $(function () {
function get_request(){
$query = $("#query").val();
console.log("Making a query");
console.log("Making a query: ");
console.log($query);
$.ajax({
url: "/search",
......
......@@ -10,7 +10,7 @@
<div class="container">
<h1> C++ lue Search Engine </h1>
<div class="row">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment