Building a search engine from scratch using JavaScript and some math.
Clone and install everything.
$ git clone https://github.com/gmittal/tansaku
$ cd tansaku
$ [sudo] npm install
$ node crawl
$ node app "query"
Building a search engine from scratch using JavaScript and some math.
License: MIT License
Lemmatize the words in both the query vector and the document vectors to produce better results.
Implement better word tokenization and text preprocessing for cleaner vectors.
The ultimate ranking tool uses vector cosine similarity, but in order to get those results, the program currently looks through every single document (bad bad bad). Use a function that has a better order of growth. It would be pretty simple to add a search function that has a logarithmic order of growth.
This would improve results drastically. Would have to account for fillers/stop words ("a", "this", "the"), which appear a lot but aren't actually that useful without removing them completely (e.g. "to be or not to be" is a relevant query composed of only stop words).
Would be a nifty feature to have. Peter Norvig has a great article on how to implement it.
Something is getting stored in RAM instead of on the disk during the crawl process.
This keeps happening:
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 end listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 end listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 end listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 pipe listeners added. Use emitter.setMaxListeners() to increase limit
(node:77659) Warning: Possible EventEmitter memory leak detected. 11 end listeners added. Use emitter.setMaxListeners() to increase limit
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.