Code Monkey home page Code Monkey logo

findex's Introduction

Search Engine

Search Engine:

  • Boolean Queries: Positional Inverted Index, K-gram Index, Porter2Stemmer Algorithm
    • K-Grams
    • Stemming
    • NEAR/k Queries
    • Wildcard Queries
  • Ranked Queries: Disk Positional Index, K-gram Index on Disk
    • Spelling Check (Suggested Queries): Jaccard Coefficient, Levenshtein Edit Distance

Dependencies:

  • SparkJava w/ Thymeleaf-Template: com.sparkjava:spark-template-thymeleaf:2.7.1
  • Gson: gson-2.8.6.jar
  • libstemmer (porter2stemmer): tartarus snowball-stemmer
  • mapdb (b+tree for on-disk index): org.mapdb

How to run search engine: (2 Ways)

CMD text:

You can run our search engine in the command line by running indexer.java

  1. Open up your favorite text-editor or IDE (project developed on intellij)
  2. download and load all dependencies (noted above)
  3. run indexer.java for a fully functional cmd text application

Web UI: localhost

Another way is to run from your local machine at http://localhost:4567/

  1. Open up text-editor or IDE (project developed on intellij)
  2. download and load all dependencies (noted above)
  3. run WebUI.java
  4. open a chrome window and go to http://localhost:4567/

Building Index:

To build an index, provide a path to your corpus folder.

(if you have already built your index before, and no files have changed within the corpus, then you do not need to build index again) you can check this by seeing if your corpus folder already has an index folder inside with postings.bin and docWeights.bin (there will be other files too, but these are the most important

You must bring your own corpus to index and search from (local file directory needed)

findex's People

Contributors

mattszeto avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.