The cleo-primer package provides a basic RESTful implementation of partial, out-of-order and real-time typeahead services. It is built on Cleo, an open source package from LinkedIn.
Find out more about Cleo at http://sna-projects.com/cleo.
Apache Public License (APL) 2.0
cleo-primer.war
groupId: com.sna-projects.cleo
artifactId: cleo-primer
version: 1.0
mvn clean package
Launch the cleo-primer web application using the next command from the main folder:
MAVEN_OPTS="-Xms1g -Xmx1g" mvn jetty:run -Dcleo.instance.name=Company -Dcleo.instance.type=cleo.primer.GenericTypeaheadInstance -Dcleo.instance.conf=src/main/resources/config/generic-typeahead
You can customize your web application by choosing different values for parameters
cleo.instance.name
, cleo.instance.type
and cleo.instance.conf
. Depending on the size
of your data sets, you may need to specify a different JVM heap size.
./scripts/post-element-list.sh dat/nasdaq-company-list.xml
./scripts/post-element.sh dat/nasdaq-google.xml dat/nasdaq-intel.xml
Visit the URL below to try out cleo-primer.
http://localhost:8080/cleo-primer
http://localhost:8080/cleo-primer/rest/elements/search?query=goo
Set up Eclipse 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 http://maven.apache.org/guides/mini/guide-ide-eclipse.html
For help please see the discussion group. Bugs and feature requests can be filed here.