Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eecs398-search
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vcday
eecs398-search
Commits
79a9d2b4
Commit
79a9d2b4
authored
6 years ago
by
jsclose
Browse files
Options
Downloads
Patches
Plain Diff
server runs, just need to return results
parent
4ebb2ecd
No related branches found
Branches containing commit
No related tags found
1 merge request
!9
Website
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
server
+0
-0
0 additions, 0 deletions
server
site/LinuxTinyServer.cpp
+2
-0
2 additions, 0 deletions
site/LinuxTinyServer.cpp
site/get_search.js
+2
-1
2 additions, 1 deletion
site/get_search.js
site/index.html
+1
-1
1 addition, 1 deletion
site/index.html
with
5 additions
and
2 deletions
server
+
0
−
0
View file @
79a9d2b4
No preview for this file type
This diff is collapsed.
Click to expand it.
site/LinuxTinyServer.cpp
+
2
−
0
View file @
79a9d2b4
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
site/get_search.js
+
2
−
1
View file @
79a9d2b4
...
...
@@ -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
"
,
...
...
This diff is collapsed.
Click to expand it.
site/index.html
+
1
−
1
View file @
79a9d2b4
...
...
@@ -10,7 +10,7 @@
<div
class=
"container"
>
<h1>
C++ lue Search Engine
</h1>
<div
class=
"row"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment