Skip to content

A restful web application for real-time typeahead and autocomplete

License

Notifications You must be signed in to change notification settings

nilnilnil/cleo-primer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cleo-primer

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.

Homepage

Find out more about Cleo at http://sna-projects.com/cleo.

License

Apache Public License (APL) 2.0

Artifacts

cleo-primer.war

Maven

groupId: com.sna-projects.cleo

artifactId: cleo-primer

version: 1.0

Build the war

mvn clean package

Launch WebApp

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.

Post a list of new elements

./scripts/post-element-list.sh dat/nasdaq-company-list.xml

Post a new element

./scripts/post-element.sh dat/nasdaq-google.xml dat/nasdaq-intel.xml

Search

Visit the URL below to try out cleo-primer.

http://localhost:8080/cleo-primer

http://localhost:8080/cleo-primer/rest/elements/search?query=goo

Eclipse

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

Contribute

For help please see the discussion group. Bugs and feature requests can be filed here.

About

A restful web application for real-time typeahead and autocomplete

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published