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?
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?
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/
@@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.
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?
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
@@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?
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?
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?
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?
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/
@@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.
Does this feature can run on AWS Redis ?
Great!
Thanks.
You're welcome!
How to find list of unique value for particular index in redis
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?
For NOT IN you do -@EntityId:(2|3)
does this require redis stack? it's not clear
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
@@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?
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?
The assumption "every user hash uses the same field names" is an extremely dangerous one imo
What is the best way to keep my RediSearch database up to date with my primary database when changes happen?
We'll need a bit more detail to help answer this. Care to join us on Discord so we can help? discord.gg/redis
@@Redisinc Thanks! Explained a bit more my situation there
Change Data Capture
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?
Just love doing add-hoc queries using Unix timestamp? You guys should fix that…
there is nothing to fix , you have zero clue huh ?