Coder Social home page Coder Social logo

redisearch / spring-redisearch Goto Github PK

View Code? Open in Web Editor NEW
34.0 3.0 9.0 216 KB

Provides support for RediSearch in Spring

Home Page: https://redisearch.io

License: Apache License 2.0

Java 100.00%
redis redis-client spring spring-redisearch redisearch

spring-redisearch's Introduction

Spring RediSearch

License Latest Forums Discord

โš ๏ธ
Spring RediSearch has been merged into multi-module client LettuceMod. Updates will now happen in LettuceMod.

Spring RediSearch provides access to RediSearch from Spring applications

Usage

Add Spring RediSearch to your application dependencies, e.g. with Maven:

<dependency>
    <groupId>com.redislabs</groupId>
    <artifactId>spring-redisearch</artifactId>
    <version>x.y.z</version>
</dependency>

Inject and use RediSearchClient or StatefulRediSearchConnection:

public class Example {

    @Autowired
    StatefulRediSearchConnection<String, String> connection;

    public void testSearch() {
        connection.sync().search("music", "Lalo Schifrin");
    }

}

spring-redisearch's People

Contributors

gkorland avatar jruaux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

spring-redisearch's Issues

Sentinel configuration not implements?

Hello im Aleksey
Im start using this library and not found how it configure sentinel connection with LettuSearch ?

From your configuration

@bean(destroyMethod = "shutdown")
RediSearchClient client(ClientResources clientResources) {
RedisURI redisURI = RedisURI.create(redisProperties.getHost(), redisProperties.getPort());
if (redisProperties.getPassword() != null) {
redisURI.setPassword(redisProperties.getPassword());
}
Duration timeout = redisProperties.getTimeout();
if (timeout != null) {
redisURI.setTimeout(timeout);
}
return RediSearchClient.create(clientResources, redisURI);
}

Its work only with standalone configuration or im not understand something?)
How i can connect this?

Also im using spring-boot-starter-data-redis
And im need configure RediSearchClient for send query to RediSearch
My RedisProperties can be different one moment its standalone and another sentinel

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.