Skip to content
This repository

Indexing engine for IndexTank

branch: master

Merge pull request #37 from searchify/maxqueuelength

Adding max_search_queue config file option to limit number of threads waiting to search
latest commit f2354fe9db
Santiago Perez santip authored
Octocat-spinner-32 cojen-2.2.1-sources initial copy December 20, 2011
Octocat-spinner-32 embedded-api full spec on autocomplete json and jsonp March 17, 2012
Octocat-spinner-32 flaptor-util format & import cleanup January 04, 2012
Octocat-spinner-32 gen-java initial copy December 21, 2011
Octocat-spinner-32 lucene-experimental unused files February 25, 2012
Octocat-spinner-32 src Merge pull request #37 from searchify/maxqueuelength April 19, 2012
Octocat-spinner-32 thrift initial copy December 20, 2011
Octocat-spinner-32 LICENSE initial copy December 20, 2011
Octocat-spinner-32 Added link to the service project in README January 20, 2012
Octocat-spinner-32 pom.xml removed sonatype repo January 19, 2012
Octocat-spinner-32 sample-engine-config * set character encoding from configuration January 06, 2012

About IndexTank Engine

This project contains IndexTank ( search engine implementation. Includes features like variables (boosts), categories (facets), faceted search, snippeting, custom scoring functions, suggest, and autocomplete.

For IndexTank's full administrative stack (which makes use of this engine) see


Find out more about at: TBD


Apache Public License (APL) 2.0


  1. indextank-engine-1.0.0.jar <-- core library


groupId: com.flaptor.indextank

artifactId: indextank-engine

version: 1.0.0

Package generation:

Build a single jar containing all dependencies by:

$ mvn compile package assembly:single

This will create a single file in:


Quick start with the standalone REST API

You can try basic indexing and searching

Main class: com.flaptor.indextank.api.Launcher

After running the package generation:

$ java -cp target/indextank-engine-1.0.0-jar-with-dependencies.jar com.flaptor.indextank.api.Launcher

This command starts an API server ( at port 20220. The indexing and searching can be done with any client or for example, via curl:

$ curl -d "{\"docid\":\"post1\", \"fields\":{\"text\":\"I love Fallout\"}}" -v -X PUT http://localhost:20220/v1/indexes/idx/docs

$ curl -d "{\"docid\":\"post2\", \"fields\":{\"text\":\"I love Planescape\"}}" -v -X PUT http://localhost:20220/v1/indexes/idx/docs

$ curl http://localhost:20220/v1/indexes/idx/search?q=love

API Clients (compatible with the embedded API)





Thrift API sample configuration:

Main class: com.flaptor.indextank.index.IndexEngine

VM args:

-XX:+UseConcMarkSweepGC -XX:+UseParNewGC -Xmx600M

Program args:

--facets --rti-size 500 --conf-file sample-engine-config --port 20220 --environment-prefix TEST --recover --dir index --snippets --suggest documents --boosts 3 --index-code dgmqn --functions 0:-age

Sample engine configuration file contents:

"max_variables": 3, 
"functions": {"0": "-age"}, 
"index_code": "dgmqn", 
"allows_facets": true, 
"ram": 600, 
"log_server_host": "index123.localhost", 
"autocomplete": true,
"log_server_port": 15100, 
"autocomplete_type": "documents",
"allows_snippets": true, 
"rti_size": 500, 
"facets_bits": 5, 
"base_port": 20220, 
"log_based_storage": false, 
"xmx": 600


Execute the following command to run:

mvn test

Avoid running tests by adding:

mvn -Dmaven.test.skip=true compile


Set up Eclipse for this project by executing the command below:

mvn eclipse:eclipse

Inside Eclipse, select Preferences > Java > Build Path > Classpath Variables. Define a new classpath variable M2_REPO and assign maven repository.

For more information, check out

Something went wrong with that request. Please try again.