diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index dca14e2..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,84 +0,0 @@ -# Java Maven CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-java/ for more details -# -version: 2.1 -commands: - early_return_for_forked_pull_requests: - description: >- - If this build is from a fork, stop executing the current job and return success. - This is useful to avoid steps that will fail due to missing credentials. - steps: - - run: - name: Early return if this build is from a forked PR - command: | - if [ -n "$CIRCLE_PR_NUMBER" ]; then - echo "Nothing to do for forked PRs, so marking this step successful" - circleci step halt - fi -jobs: - build: # test with redisearch:latest - docker: - - image: circleci/openjdk:8-jdk-browsers - - image: redislabs/redisearch:edge - - steps: - - checkout - - - restore_cache: - key: jredisearch-{{ checksum "pom.xml" }} - - - run: mvn dependency:go-offline - - - save_cache: - paths: - - ~/.m2 - key: jredisearch-{{ checksum "pom.xml" }} - - - run: mvn integration-test -# - run: mvn cobertura:cobertura - - early_return_for_forked_pull_requests - - run: bash <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/master/codecov) -t ${CODECOV_TOKEN} - - run: mvn -s .circleci.settings.xml -DskipTests -Dgpg.skip deploy - - build_nightly: # test nightly with redisearch:edge - docker: - - image: circleci/openjdk:8-jdk-browsers - - image: redislabs/redisearch:edge - - steps: - - checkout - - - restore_cache: - key: jredisearch-{{ checksum "pom.xml" }} - - - run: mvn dependency:go-offline - - - save_cache: - paths: - - ~/.m2 - key: jredisearch-{{ checksum "pom.xml" }} - - - run: mvn integration-test - - #no need for codecov on nightly - -workflows: - version: 2 - commit: - jobs: - - build: - context: - - common - nightly: - triggers: - - schedule: - cron: "0 0 * * *" - filters: - branches: - only: - - master - jobs: - - build_nightly: - context: - - common diff --git a/README.md b/README.md index 30708f1..0fdb494 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ [![license](https://img.shields.io/github/license/RedisLabs/JRediSearch.svg)](https://github.com/RediSearch/JRediSearch/blob/master/LICENSE) -[![CircleCI](https://circleci.com/gh/RediSearch/JRediSearch/tree/master.svg?style=svg)](https://circleci.com/gh/RediSearch/JRediSearch/tree/master) [![GitHub issues](https://img.shields.io/github/release/RedisLabs/JRediSearch.svg)](https://github.com/RedisLabs/JRediSearch/releases/latest) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.redislabs/jredisearch/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.redislabs/jredisearch) [![Javadocs](https://www.javadoc.io/badge/com.redislabs/jredisearch.svg)](https://www.javadoc.io/doc/com.redislabs/jredisearch) @@ -17,11 +16,11 @@ A Java Client Library for [RediSearch](https://oss.redislabs.com/redisearch/) As of [jedis 4.0.0](https://github.com/redis/jedis) this library is deprecated. It's features have been merged into jedis. Please either install it [from maven](https://mvnrepository.com/artifact/redis.clients/jedis) or [the repo](https://github.com/redis/jedis). -## Overview +## Overview + +This project contains a Java library abstracting the API of the RediSearch Redis module, that implements a powerful +in-memory Secondary Index, Query Engine and Full-Text Search engine inside Redis. -This project contains a Java library abstracting the API of the RediSearch Redis module, that implements a powerful -in-memory Secondary Index, Query Engine and Full-Text Search engine inside Redis. - ## Installing JRediSearch is available using the maven central snapshot repository and via official @@ -116,7 +115,7 @@ IndexDefinition def = new IndexDefinition() client.createIndex(sc, Client.IndexOptions.defaultOptions().setDefinition(def)); ``` - + Adding documents to the index: ```java @@ -154,12 +153,12 @@ AggregationBuilder r = new AggregationBuilder("hello") .groupBy("@state", Reducers.avg("@k").as("avgprice")) .filter("@avgprice>=2") .sortBy(10, SortedField.asc("@state")); - + AggregationResult res = client.aggregate(r); ``` --- - + ### Also supported: * Geo filtering