/sphinx-java-api

Sphinx searchd client (java api)

Primary LanguagePHP

Sphinx searchd client (java api)

Description

It’s alternative of Sphinx searchd client (java api). Original version could be found at www.sphinxsearch.com

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License. You should have received a copy of the GPL license along with this program; if you did not, you can find it at www.gnu.org

Download

git clone git://github.com/erka/sphinx-java-api.git

Compatibility

This version has full compatibility with jdk 6. If you need compatibility with 1.4 look to tag version-0.9.9-java-1.4

Requirements

Tests need searchd service with “test1” index. Checkout src/test/resources/sphinx_test.sql for the database setup. The indexer and searchd daemon are automatically started for the tests, but indexer and searchd must be in your path. If you don’t have indexer or searchd daemons into your path, you should copy src/test/resources/junit-default.properties to src/test/resources/junit.properties and modify sphinx.searchd and sphinx.indexer values depends on your environment.

*Does not work for windows at this moment*

Building

Maven 2 is used as build tool. Please visit maven.apache.org to get more information about maven.

Clean
mvn clean
Run tests
mvn test
Compile java files
mvn compile
Build jar
mvn clean package
Build jar without test phase
mvn -Dmaven.test.skip=true clean package
Generate reports (findbugs, PMD, PCD, javadoc, code coverage, test report, checkstyle).
mvn clean site

Report could be found at target/site/project-reports.html.

Support