Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trie search Class #833

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
386 changes: 386 additions & 0 deletions docs/SearchService.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,386 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSDoc: Class: SearchService</title>

<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

<h1 class="page-title">Class: SearchService</h1>






<section>

<header>

<h2><span class="attribs"><span class="type-signature"></span></span>SearchService<span class="signature">(data)</span><span class="type-signature"></span></h2>

<div class="class-description"><p>SearchService - Responsible for all the search operations</p></div>


</header>

<article>
<div class="container-overview">




<h2>Constructor</h2>



<h4 class="name" id="SearchService"><span class="type-signature"></span>new SearchService<span class="signature">(data)</span><span class="type-signature"></span></h4>






<div class="description">
<p>Instantiate a new SearchService</p>
</div>









<h5>Parameters:</h5>


<table class="params">
<thead>
<tr>

<th>Name</th>


<th>Type</th>





<th class="last">Description</th>
</tr>
</thead>

<tbody>


<tr>

<td class="name"><code>data</code></td>


<td class="type">


<span class="param-type"><a href="global.html#IData">IData</a></span>



</td>





<td class="description last"></td>
</tr>


</tbody>
</table>






<dl class="details">


























<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="common_SearchService_SearchService.js.html">common/SearchService/SearchService.js</a>, <a href="common_SearchService_SearchService.js.html#line7">line 7</a>
</li></ul></dd>







</dl>





















</div>
















<h3 class="subsection-title">Methods</h3>







<h4 class="name" id="search"><span class="type-signature"></span>search<span class="signature">(keyword)</span><span class="type-signature"> &rarr; {<a href="global.html#IData">IData</a>}</span></h4>






<div class="description">
<p>Searches a keyword in the trie, against the set of joint string of all the attributes</p>
</div>









<h5>Parameters:</h5>


<table class="params">
<thead>
<tr>

<th>Name</th>


<th>Type</th>





<th class="last">Description</th>
</tr>
</thead>

<tbody>


<tr>

<td class="name"><code>keyword</code></td>


<td class="type">


<span class="param-type">string</span>



</td>





<td class="description last"></td>
</tr>


</tbody>
</table>






<dl class="details">


























<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="common_SearchService_SearchService.js.html">common/SearchService/SearchService.js</a>, <a href="common_SearchService_SearchService.js.html#line35">line 35</a>
</li></ul></dd>







</dl>















<h5>Returns:</h5>


<div class="param-desc">
<p>result</p>
</div>



<dl>
<dt>
Type
</dt>
<dd>

<span class="param-type"><a href="global.html#IData">IData</a></span>


</dd>
</dl>













</article>

</section>




</div>

<nav>
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="SearchService.html">SearchService</a></li></ul><h3>Global</h3><ul><li><a href="global.html#ErrorHandler">ErrorHandler</a></li><li><a href="global.html#FutureOrPast">FutureOrPast</a></li><li><a href="global.html#HeaderFactory">HeaderFactory</a></li><li><a href="global.html#METHODS">METHODS</a></li><li><a href="global.html#dateTimeFormat">dateTimeFormat</a></li><li><a href="global.html#differenceInMilliseconds">differenceInMilliseconds</a></li><li><a href="global.html#differenceInMinutes">differenceInMinutes</a></li><li><a href="global.html#format">format</a></li><li><a href="global.html#formatInTimeZone">formatInTimeZone</a></li><li><a href="global.html#getAllClasses">getAllClasses</a></li><li><a href="global.html#getCourseContent">getCourseContent</a></li><li><a href="global.html#getCourses">getCourses</a></li><li><a href="global.html#handleGetClasses">handleGetClasses</a></li><li><a href="global.html#handleGetCourseContent">handleGetCourseContent</a></li><li><a href="global.html#handleGetCourses">handleGetCourses</a></li><li><a href="global.html#handleUserData">handleUserData</a></li><li><a href="global.html#isBefore">isBefore</a></li><li><a href="global.html#isBeforeNow">isBeforeNow</a></li><li><a href="global.html#item">item</a></li><li><a href="global.html#makeDateFrom">makeDateFrom</a></li><li><a href="global.html#mapCourseContent">mapCourseContent</a></li><li><a href="global.html#millisecondsUntil">millisecondsUntil</a></li><li><a href="global.html#minutesUntil">minutesUntil</a></li><li><a href="global.html#selectRolesData">selectRolesData</a></li><li><a href="global.html#selectUserId">selectUserId</a></li><li><a href="global.html#sendGoogleUserData">sendGoogleUserData</a></li><li><a href="global.html#sendToken">sendToken</a></li><li><a href="global.html#timeLeftFormat">timeLeftFormat</a></li><li><a href="global.html#useRoles">useRoles</a></li><li><a href="global.html#useSearchQuery">useSearchQuery</a></li></ul>
</nav>

<br class="clear">

<footer>
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.0</a> on Thu Nov 17 2022 15:23:45 GMT+0530 (India Standard Time)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>
Loading