Support » Plugin: RediSearch » RediSearch module not loaded!

  • Resolved Osni Passos

    (@osni-passos)


    I’ve tried to activate the plugin but get this message: “RediSearch module not loaded!”

    I already use the redis server with a cache plugin and install the redissearch module. ( sudo apt-get install redis-redisearch )

    And I’ve tried to configure de URL’s in Redis server configurations.

    Any tips?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Use the steps from here to install -> https://redislabs.com/blog/getting-started-with-redisearch-2-0/

    Only like this worked for me to install and make it work with redis cache.

    Make sure you have in your wp-config file the defines for redis cache.

    • This reply was modified 2 years, 8 months ago by AlphaPrime.
    Thread Starter Osni Passos

    (@osni-passos)

    Thanks Alpha,

    I’ve installed the module and tested with command line, it worked. But I don’t have connection with the plugin:

    I’ve tried this in wp-config:
    define(‘WP_REDIS_HOST’, ‘127.0.0.1’); #Is localhost
    define(‘WP_REDIS_PORT’, ‘6379’); #Stardart port
    define(‘WP_REDIS_PASSWORD’, ”); #I think I don’t have password (I have other redis app without password and working
    define(‘WP_REDIS_INDEX_NAME’, ‘Psicosol’); #I Simple put the name of the site, is that correct?
    define(‘WP_REDIS_SCHEME’, ‘tcp’);`

    And tried to put in the Redis server configurations in plugin page.

    I don’t think is configuration problem because when is put wrong configuration the message change for: “Something went wrong while conencting to Redis Server! go to settings”

    • This reply was modified 2 years, 8 months ago by Osni Passos.
    • This reply was modified 2 years, 8 months ago by Osni Passos.
    • This reply was modified 2 years, 8 months ago by Osni Passos.
    • This reply was modified 2 years, 8 months ago by Osni Passos.
    Plugin Author foadyousefi

    (@foadyousefi)

    Hi @osni-passos,
    Which version of Redis and RediSearch do you have? The new versions of this plugin only work with RediSearch 2.0 and above.

    While you are testing via the command line, it works regardless of the RediSearch module version. But since versions 2.0 and 1.0 are totally different, I have to check only for the presence of 2.0.

    Something like this:

    127.0.0.1:6379> module list
    1) 1) "name"
       2) "search"
       3) "ver"
       4) (integer) 999999

    As for configuration, you don’t need to have configurations in both wp-config.php and plugin settings page. Only one is neccesary.

    Thread Starter Osni Passos

    (@osni-passos)

    Thanks for response foadyousefi! You Discovered the problem.

    Redis: 4.0.9

    I used the apt-get to install redis: sudo apt-get install redis-redisearch
    Is the version 1.0.8-1

    The version 2.0 work with Redis 4.0.9? Where I find the 2.0 in apt-get?

    Plugin Author foadyousefi

    (@foadyousefi)

    I’m happy the issue was this easy to spot.

    I think RediSearch 2.0 is only working with Redis 6.0 and above.

    To install Redis server follow: https://redis.io/topics/quickstart
    and RediSearch: https://oss.redislabs.com/redisearch/Quick_Start/

    I’m not sure if they are available in apt repository.

    Thread Starter Osni Passos

    (@osni-passos)

    Perfect! I’ll look forward on this.

    • This reply was modified 2 years, 7 months ago by Osni Passos.

    Hi! I’ve also the redisearch.so compiled from source, but I don’t know how to load it into redis. If I call it from command line like this:

    redis-server –loadmodule /path/to/module/src/redisearch.so

    it works fine, but not as a service. How can I put the module to be loaded with the redis service?

    Thread Starter Osni Passos

    (@osni-passos)

    @fidoboy it’s the redis 6.0?

    Yes, it’s

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘RediSearch module not loaded!’ is closed to new replies.