<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anishka</title>
    <description>The latest articles on DEV Community by Anishka (@anishka0107).</description>
    <link>https://dev.to/anishka0107</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F390825%2Fe899813f-9805-472b-b2cc-6c3fe57050ab.png</url>
      <title>DEV Community: Anishka</title>
      <link>https://dev.to/anishka0107</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anishka0107"/>
    <language>en</language>
    <item>
      <title>Wunner</title>
      <dc:creator>Anishka</dc:creator>
      <pubDate>Wed, 20 May 2020 15:21:24 +0000</pubDate>
      <link>https://dev.to/anishka0107/wunner-54nm</link>
      <guid>https://dev.to/anishka0107/wunner-54nm</guid>
      <description>&lt;h2&gt;
  
  
  Wunner
&lt;/h2&gt;

&lt;p&gt;Wunner is a simple terminal-based web search engine I built to understand the basic working of a search engine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Link to Code
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vWogaON8--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/github-logo-28d89282e0daa1e2496205e2f218a44c755b0dd6536bbadf5ed5a44a7ca54716.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Anishka0107"&gt;
        Anishka0107
      &lt;/a&gt; / &lt;a href="https://github.com/Anishka0107/Wunner"&gt;
        Wunner
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A toy search engine
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h1&gt;
Wunner&lt;/h1&gt;
&lt;p&gt;A toy search engine that searches the web inside your terminal :p&lt;/p&gt;
&lt;h2&gt;
Features&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Implemented in C++14.&lt;/li&gt;
&lt;li&gt;Crawls webpages progressively starting from seed URL(s).&lt;/li&gt;
&lt;li&gt;Parses the documents and the query, trying to generate more appropriate results.&lt;/li&gt;
&lt;li&gt;Builds an index (hash map) for the parsed documents.&lt;/li&gt;
&lt;li&gt;The crawled documents and index are refreshed periodically.&lt;/li&gt;
&lt;li&gt;Autocompletes query using a trie, based on most recently asked queries.&lt;/li&gt;
&lt;li&gt;Maintains two threads, to allow refreshing the index and querying simultaneuosly.&lt;/li&gt;
&lt;li&gt;Generates most relevant results in order ranked on the basis of harmonic mean of PageRank (to get the importance of webpage) and Okapi BM25 (to get query-based result) algorithm ranks.&lt;/li&gt;
&lt;li&gt;Provides query suggestions (only when the input query does not generate any results), on the basis of common incorrect and correct words. Ranks them using n-gram algorithm and edit-distance DP to compare two strings.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
Steps to Run&lt;/h2&gt;
&lt;p&gt;Command to run : &lt;code&gt;wunner_search&lt;/code&gt; (make sure your…&lt;/p&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Anishka0107/Wunner"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  How I built it
&lt;/h2&gt;

&lt;p&gt;It is purely written in C++14. It crawls webpages progressively starting from seed URL(s). Then it pre-processes the documents and builds an index for the parsed documents. The crawled documents and index are refreshed periodically. It autocompletes query using a trie, based on most recently asked queries. It generates the most relevant results in order ranked on the basis of harmonic mean of PageRank (to get the importance of a webpage) and Okapi BM25 (to get query-based results) algorithm ranks. It also provides query suggestions when the input query does not generate any results, on the basis of common incorrect and correct words (ranked using n-gram algorithm and edit-distance).&lt;/p&gt;

&lt;h2&gt;
  
  
  Additional Thoughts / Feelings / Stories
&lt;/h2&gt;

&lt;p&gt;It was fun developing this project as it was built from scratch and allowed me to learn about different data structures and use them practically.&lt;/p&gt;

&lt;p&gt;Final Note: Stay healthy, stay safe!&lt;/p&gt;

</description>
      <category>octograd2020</category>
      <category>devgrad2020</category>
    </item>
  </channel>
</rss>
