Querying, Indexing, and Full-text Search in Redis

Поділитися
Вставка
  • Опубліковано 11 гру 2024

КОМЕНТАРІ • 22

  • @yoyo26-34
    @yoyo26-34 3 роки тому +1

    very interesting, but wondering how adding synonyms for full text search. EG, "FSD" for full stack developper, WF for wine fair, Xmas for christmas,and so on?

  • @saikrishna-ji2bk
    @saikrishna-ji2bk 2 роки тому +1

    lots of questions around redis search integrating with spring boot is there a clear documentation around how to create index, add data to index from spring and reading the data?

    • @Redisinc
      @Redisinc  2 роки тому

      Here's a good start from our Dev Advocate Brian Sam-Bodden. It's part of a larger course on integrating the newest features of Redis into Spring. Hope this helps!
      developer.redis.com/develop/java/redis-and-spring-course/lesson_7/

    • @saikrishna-ji2bk
      @saikrishna-ji2bk 2 роки тому

      ​@@Redisinc Docker redisSearch is crashing
      I have a Pojo
      public class User{
      @id
      private UUID id;
      private String username;
      private String email;
      }
      Also have a repository:
      public interface UserRepository extends CrudRepository{
      }
      I also creates searchIndex for it
      CreateOptions options = CreateOptions.builder().prefix(String.format("%s:", User.class.getName())).build();
      Field username = Field.text("username").build();
      Field username = Field.text("email").build();
      commands.create("users-idx", options,username,email);
      Question:
      When I am trying to insert into the search index using userRepository.save(user);
      I was able to inset, but when I am trying to query the searchIndex docker image is crashing and it's terminating the connection.
      query like commands.search("users-idx","venkat*");
      who container is geting crashed.
      Could you please let me know the way to insert into search index if possible. Thanks.

  • @baotrietle3570
    @baotrietle3570 5 місяців тому

    Does this feature can run on AWS Redis ?

  • @mrrishiraj88
    @mrrishiraj88 3 роки тому +2

    Great!
    Thanks.

  • @jayshreeshinde9826
    @jayshreeshinde9826 2 роки тому

    How to find list of unique value for particular index in redis

  • @haidernaqvi87
    @haidernaqvi87 Рік тому

    I want to filter result for EntityId IN (1,4,5,6)
    Or
    Not in (2,3) ? So far this type of query only works for array with contains or notcontain. Any suggestions?

    • @blaxmas
      @blaxmas Рік тому

      For NOT IN you do -@EntityId:(2|3)

  • @susiebaka3388
    @susiebaka3388 11 місяців тому +1

    does this require redis stack? it's not clear

    • @Redisinc
      @Redisinc  11 місяців тому +1

      This video was released before Redis Stack was launched. This video assumes you have the redisearch module loaded on top of the standard Redis at the time (6.2.* if I remember correctly.) Nowadays I would just run Redis Stack. AND store the data as JSON, but that's just my opinoin :) - Justin

    • @susiebaka3388
      @susiebaka3388 11 місяців тому

      @@Redisinc thanks for the quick response! I am on a base 7.2 instance without any add-ons / modules and can't change that right now. Do you have any recommendations about how I should name my keys or organize my data to make it compatible with search?

  • @JamesHarbal
    @JamesHarbal 3 роки тому +2

    If every user hash uses the same field names, aren't you wasting memory usage on copies of those field names for every single user?

    • @HughGRection
      @HughGRection 3 роки тому +2

      The assumption "every user hash uses the same field names" is an extremely dangerous one imo

  • @123amsterdan456
    @123amsterdan456 2 роки тому

    What is the best way to keep my RediSearch database up to date with my primary database when changes happen?

    • @Redisinc
      @Redisinc  2 роки тому +1

      We'll need a bit more detail to help answer this. Care to join us on Discord so we can help? discord.gg/redis

    • @123amsterdan456
      @123amsterdan456 2 роки тому

      @@Redisinc Thanks! Explained a bit more my situation there

    • @xhantimda860
      @xhantimda860 2 роки тому +2

      Change Data Capture

  • @respise
    @respise 3 роки тому +7

    This is all interesting, but who uses Redis like this? In what universe would someone need to create object fields as hash keys instead of using id as a key and store the value as a json?

  • @chswin
    @chswin 2 роки тому

    Just love doing add-hoc queries using Unix timestamp? You guys should fix that…

    • @thelastninja4825
      @thelastninja4825 2 роки тому

      there is nothing to fix , you have zero clue huh ?