-
Notifications
You must be signed in to change notification settings - Fork 9
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
NRediSearch create index on hash prefix #2
Comments
I am having this exact question. I store objects of multiple classes so to say, and I need this "prefix" thing for Redisearch to work as expected. |
the PREFIX API is exposed in the NuGet version 2.2.11, via the
IndexDefinition type
…On Mon, 15 Mar 2021 at 10:19, Satoshi ***@***.***> wrote:
I am having this exact question. I store objects of multiple classes so to
say, and I need this "prefix" thing for Redisearch to work as expected.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/StackExchange/StackExchange.Redis/issues/1683#issuecomment-799299910>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAEHMBQCTJ2MIFLGIKLVSLTDXNJVANCNFSM4XKI2ZMA>
.
--
Regards,
Marc
|
I read this thread and also found it out, thank you! StackExchange/StackExchange.Redis#1544 But how can I specify prefixes when adding documents? A object of the When you add a document you also need to specify the prefix so I think we need the |
If you are using AddDocumentAsync for example you can specify the docId parameter with the prefix, for example: movie:11002 |
Hi team,
Is there any way to create an index with prefix in the library NRediSearch like below?
FT.CREATE idx:movie ON hash PREFIX 1 "movie:" SCHEMA title TEXT SORTABLE release_year
Example was used from this source
Regards,
L
The text was updated successfully, but these errors were encountered: