Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple search engine written in Erlang
Erlang
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
doc
lib/eindexer
README
_build.cfg
trigramsS.tab

README

About:

eindexer is an ad-hoc text indexing engine written entirely in Erlang. It was originally designed to index edoc files 
for erlware, but is capable of being used as a general purpose text retrieval engine.

Setup:

Edit eindexer/lib/eindexer/include/eindexer.hrl and set ETSTRIGRAMS to the proper path.

Running:

tristan@kfgyeo:~/Devel/eindexer$ sinan shell
[build] start
[build] Building /home/tristan/Devel/eindexer/lib/eindexer/src/utils.erl
[build] Building /home/tristan/Devel/eindexer/lib/eindexer/src/text_file_indexer.erl
[build] Building /home/tristan/Devel/eindexer/lib/eindexer/src/porter.erl
[build] Building /home/tristan/Devel/eindexer/lib/eindexer/src/conditions.erl
[build] Building /home/tristan/Devel/eindexer/lib/eindexer/src/indexer_trigrams.erl
[build] Building /home/tristan/Devel/eindexer/lib/eindexer/src/edoc_indexer.erl
[build] Building /home/tristan/Devel/eindexer/lib/eindexer/src/eindexer.erl
[build] Building /home/tristan/Devel/eindexer/lib/eindexer/src/eindexer_sup.erl
[build] Building /home/tristan/Devel/eindexer/lib/eindexer/src/eindexer_app.erl
[build] stop
starting shell ...
Erlang (BEAM) emulator version 5.6.5 [source] [smp:2] [async-threads:0] [kernel-poll:false]

Eshell V5.6.5  (abort with ^G)
1> application:start(eindexer).
ok
2> eindexer:index(edocs, "/usr/local/erlware/lib/").
ok
3>
Time to Index: 10 seconds

3> eindexer:run_query("sinan").
[{sinan,{106.45528660977838,"0.16.0.4"}},           
 {faxien,{17.214097626075695,"0.42.1.0"}},          
 {epkg,{17.214097626075695,"0.14.0.1"}},            
 {ewrepo,{2.151762203259462,"0.18.8.0"}},           
 {sinan_web_api,{2.151762203259462,"0.1.0.6"}}]
4>
Something went wrong with that request. Please try again.