Skip to content

Add support for JSON type Index #129

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

Closed
gkorland opened this issue Jun 1, 2021 · 0 comments · Fixed by #130 or #135
Closed

Add support for JSON type Index #129

gkorland opened this issue Jun 1, 2021 · 0 comments · Fixed by #130 or #135
Assignees

Comments

@gkorland
Copy link
Contributor

gkorland commented Jun 1, 2021

Two more features were added specific to JSON:

On FT.CREATE:

  • ON JSON

  • identifier AS Attribute
    e.g.
    FT.CREATE idx ON JSON PREFIX 1 doc: SCHEMA $.product.label AS label TEXT SORTABLE $.product.stock AS stock NUMERIC SORTABLE

On FT.SEARCH:

  • RETURN {jsonPath} AS {property}
    e.g.
    FT.SEARCH products * RETURN 2 $.product.label AS label $.reviews.content AS reviews
@gkorland gkorland changed the title Add support for JSON type Add support for JSON type Index Jun 1, 2021
@AvitalFineRedis AvitalFineRedis linked a pull request Jun 13, 2021 that will close this issue
@gkorland gkorland reopened this Jun 28, 2021
@AvitalFineRedis AvitalFineRedis linked a pull request Jul 28, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants