-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Prefix when creating an Index using Jredisearch #2249 #166
Comments
// IndexDefinition requires RediSearch 2.0+
IndexDefinition def = new IndexDefinition()
.setPrefixes(new String[] {"item:", "product:"})
.setFilter("@price>100");
client.createIndex(sc, Client.IndexOptions.defaultOptions().setDefinition(def)); You can see the full example in the README https://github.com/RediSearch/JRediSearch/blob/master/README.md |
Hi, |
I need info on dropping Indexes in Redisearch using JRedisearch, please help. I want to delete the existing content of my Indexes and add new data daily. I couldn't find anything for this as client.deleteDocument() methods need docids. So, I am dropping the index using client.dropIndex(true) and recreating it. I am getting the below exception when adding the documents after recreating the index Exception I am guessing documents aren't deleted when dropping the index, I saw a command FT.DROPINDEX DD where DD is for deleting documents. |
@chaitradalawai There is not direct support at this moment. PS: Please put different question in different/new issues. Note: Created #169 |
ref RediSearch/RediSearch#2249 (@chaitradalawai)
I am not sure if this is the right place to ask help regarding Jredisearch, please do guide me if I need to ask in different platform.
I use Jredisearch(com.redislabs:jredisearch:2.0.0) for querying using Redisearch. I want to add a prefix while creating the Index. I am able to add prefix using the below Redisearch command,
FT.CREATE MyIndex ON HASH PREFIX 1 doc: SCHEMA name TEXT
But not able to find options for the same when writing in Java. I use the following code in Java,
client.createIndex(schema, Client.IndexOptions.defaultOptions());
Could you help me on how do we add Prefix when using Jredisearch?
The text was updated successfully, but these errors were encountered: