Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Dave Nielsen
    @dnielsen
    @cabhijith Yes, still active. Or you can post your question to our Google Group: https://groups.google.com/forum/?nomobile=true#!forum/redisearch
    Guy Korland
    @gkorland
    @cabhijith can you please extend a bit? what are you trying to achieve?
    djbokkeman
    @djbokkeman
    Hi there! Not sure if this is the right place. But im trying to achieve a multiple groupby and count in aggregation. I would like to have a list with both values and count. But Im a little lost.
    Meir Shpilraien (Spielrein)
    @MeirShpilraien
    Hey @djbokkeman can you explain exactly what you need? You want to groupby by two fields or you want to count each of the two fields separately?
    djbokkeman
    @djbokkeman
    Yes I think that's what I want to accomplish. I actually want to build up a complete filter navigation as a result. For example, when you use google shopping and enter a search term like "programming" on the left hand you will have the filters. Here you can filter for example on Genre, Seller, Color and price. I would also like to retrieve filters with a search result and a count of each filter item. Ideally this would be done by requesting all filter items in one call.
    djbokkeman
    @djbokkeman
    I was wondering If it would be possible to reduces this to a single call.
    Meir Shpilraien (Spielrein)
    @MeirShpilraien
    I am afraid you will need multiple aggregate queries for this
    Meir Shpilraien (Spielrein)
    @MeirShpilraien
    You can try combining RediSearch and RedisGears (https://oss.redislabs.com/redisgears/) to achieve it, if you want to try it let me know and I can guide you through it.
    djbokkeman
    @djbokkeman
    Hi @MeirShpilraien thanks for your suggestion, it looks real nice and we will take a look at it!
    Adam
    @cheeseandcereal
    Is the process for upgrading from redisearch 1.4 to 1.6 as simple as just updating redisearch itself? Or do any of the underlying rdb/aof files need to be changed/migrated?
    Guy Korland
    @gkorland
    1.4 to 1.6 upgrade is fully backward compatibale , no need to change the the files.
    btssbt
    @btssbt
    hi
    why show this:There has been a critical error on your website. Please check your site admin email inbox for instructions.
    Redis server is running and RediSearch module is loaded! But your index not exist. This mean your site never been indexed or for some reasons, the index have been deleted. Please go to settings page and re-index your website.
    when i click in the setting pages.
    Guy Korland
    @gkorland
    where do you see this error?
    Sasasu
    @Sasasu
    hi all, how to disable participle in TAG field (also and other field) when using FT.SEARCH.
    image.png
    Meir Shpilraien (Spielrein)
    @MeirShpilraien
    @Sasasu can you share the FT.INFO reply on the index? Are you sure those are TAG fields?
    John Jerald De Chavez
    @jjdechavez029_gitlab
    Hello everyone, I'm new on redisearch with nodejs. I have concern that I got issue on sample from the repo
    TypeError: redredisearch.createSearch is not a function
    Guy Korland
    @gkorland
    Can you please add a code snippet? including the import part
    John Jerald De Chavez
    @jjdechavez029_gitlab
    John Jerald De Chavez
    @jjdechavez029_gitlab
    const redis = require("redis");
    const redisearch = require("redredisearch");
    
    const client = redis.createClient({ port: 6379, host: "127.0.0.1" });
    const redredisearch = redisearch.setClient(client);
    
    app.use(express.json());
    
    app.get("/pets", (req, res) => {
      redredisearch.createSearch("pets", {}, function (err, search) {
        if (err) throw err;
    
        let strs = [];
        strs.push("Tobi wants four dollars");
        strs.push("Tobi only wants $4");
        strs.push("Loki is really fat");
    
        strs.forEach(function (str, i) {
          search.index(str, i);
        });
    
        search.query("Tobi dollars").end(function (err, ids) {
          if (err) throw err;
          console.log('Search results for "%s":', query);
          ids.forEach(function (id) {
            console.log("  - %s", strs[id]);
          });
        });
      });
      return res.json({ message: "OK" });
    });
    Guy Korland
    @gkorland
    Should be:
    redisearch.createSearch("pets", {}, function (err, search) {
    John Jerald De Chavez
    @jjdechavez029_gitlab
    still not working
    I'm curios whenever I disconnect on my local redis with redisearch module. all keys are gone after reconnecting on it
    Guy Korland
    @gkorland

    still not working

    Can you share a full project (github or gist)?

    I'm curios whenever I disconnect on my local redis with redisearch module. all keys are gone after reconnecting on it

    Do you restart Redis? Do you have persistent set?

    John Jerald De Chavez
    @jjdechavez029_gitlab
    No, I just terminate the server local. whenever I go off with my computer
    I don't have either persistent set
    Ohh, is this persistent you are talking about? I think I need to read more about redis
    https://redis.io/topics/persistence

    still not working

    Can you share a full project (github or gist)?

    https://gist.github.com/jjdechavez/8afbb9fd55a359f6d180b749db07d1c8

    Guy Korland
    @gkorland
    We have a new Discord channel https://discord.gg/xTbqgTB