-
Notifications
You must be signed in to change notification settings - Fork 7
document array indexing #151
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
Conversation
|
Warning Rate limit exceeded@swilly22 has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 1 minutes and 19 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
WalkthroughThe documentation for Cypher indexing has been updated to include boolean and array types as supported data types for single-property indexes on node labels and relationship types. An additional section now describes how FalkorDB indexes array values, including an example of indexing an array property and querying for specific elements within arrays. The documentation clarifies which array element types are indexed and the fallback behavior for unsupported types. No changes were made to code or exported entities. Changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
🧹 Nitpick comments (2)
cypher/indexing.md (2)
56-56: Refine example phrasing and punctuation.
The sentence is missing terminal punctuation and has awkward wording. Consider:- For example: when we want to find Student nodes which have at the grade 92 in their `score_card` array attribute + For example, to find Student nodes with a grade of 92 in their `score_card` array attribute.
73-75: Refine grammar and punctuation in array indexing fallback note.
Improve readability, add necessary commas, and correct "fallback":- At the moment only string, boolean and numeric elements are indexed, any other data type - will not be able to utilize the index, and will cause FalkorDB to fallback on non index scan. + At the moment, only string, boolean, and numeric elements are indexed; any other data type + will not be able to utilize the index and will cause FalkorDB to fall back to a non-index scan.🧰 Tools
🪛 LanguageTool
[uncategorized] ~73-~73: A comma might be missing here.
Context: ...titude: 30, longitude: 32})]})` At the moment only string, boolean and numeric elemen...(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
cypher/indexing.md(2 hunks)
🧰 Additional context used
🪛 LanguageTool
cypher/indexing.md
[uncategorized] ~69-~69: Possible missing comma found.
Context: ...core_card RETURN s" ``` Using the IN predicate we can specify the element we're search...
(AI_HYDRA_LEO_MISSING_COMMA)
[uncategorized] ~73-~73: A comma might be missing here.
Context: ...titude: 30, longitude: 32})]})` At the moment only string, boolean and numeric elemen...
(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)
🪛 markdownlint-cli2 (0.17.2)
cypher/indexing.md
58-58: Fenced code blocks should have a language specified
null
(MD040, fenced-code-language)
🪛 GitHub Actions: spellcheck
cypher/indexing.md
[error] 1-1: Spelling check failed: Misspelled word 'alows' found.
🔇 Additional comments (3)
cypher/indexing.md (3)
5-6: Approve expanded data type support.
The description has been correctly updated to include boolean and array types in the list of indexable data types.
12-13: Approve reiteration of supported types in main content.
Reiterating supported data types (string, boolean, numeric, geospatial, array) in the content section improves readability and reinforces what's supported.
69-71: Approve usage example ofINpredicate and mixed-type arrays.
The documentation clearly demonstrates how to search within array elements using theINpredicate, and the example illustrates support for mixed data types (boolean, string, numeric, geospatial).🧰 Tools
🪛 LanguageTool
[uncategorized] ~69-~69: Possible missing comma found.
Context: ...core_card RETURN s" ``` Using theINpredicate we can specify the element we're search...(AI_HYDRA_LEO_MISSING_COMMA)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
♻️ Duplicate comments (1)
cypher/indexing.md (1)
58-67: Add language specifier to fenced code block
The code fence starting at line 58 currently has no language identifier, triggering MD040. Please specify a language (e.g.,sh) so markdownlint passes.Apply this diff:
- ``` + ```sh🧰 Tools
🪛 markdownlint-cli2 (0.17.2)
58-58: Fenced code blocks should have a language specified
null(MD040, fenced-code-language)
🧹 Nitpick comments (5)
cypher/indexing.md (5)
5-6: Inconsistent pluralization in front matter description
The phrase “relationship type” should be pluralized to “relationship types” in the front matter for clarity and consistency.
12-13: Typo: pluralize “relationship type” in the body
The repeated sentence in the main content also uses “relationship type”—it should read “relationship types.”
54-56: Fix comma splice and awkward phrasing in array section
- The sentence “FalkorDB can index arrays, this allows for a quick lookup of individual array elements.” is a comma splice. Consider splitting into two sentences or using a semicolon, e.g.
“FalkorDB can index arrays; this allows for a quick lookup of individual array elements.”- In the next line, “which have at the grade 92” is awkward. Perhaps use “which have a grade of 92” or “with a grade of 92.”
71-71: Refine punctuation in mixed‐type example
The example uses “e.g.:” which duplicates the colon. It can be cleaner as “e.g., CREATE …” or by rephrasing to remove the extra colon.
73-73: Improve clarity in fallback sentence
The line “At the moment only string, boolean and numeric elements are indexed, any other data type will not be able to utilize the index, and will cause FalkorDB to fallback on non index scan.” can be clearer. For example:At the moment, only string, boolean, and numeric elements are indexed. Any other data type cannot utilize the index and will cause FalkorDB to fall back on a non-index scan.🧰 Tools
🪛 LanguageTool
[uncategorized] ~73-~73: A comma might be missing here.
Context: ...titude: 30, longitude: 32})]})` At the moment only string, boolean and numeric elemen...(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
cypher/indexing.md(2 hunks)
🧰 Additional context used
🪛 LanguageTool
cypher/indexing.md
[uncategorized] ~73-~73: A comma might be missing here.
Context: ...titude: 30, longitude: 32})]})` At the moment only string, boolean and numeric elemen...
(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)
🪛 markdownlint-cli2 (0.17.2)
cypher/indexing.md
58-58: Fenced code blocks should have a language specified
null
(MD040, fenced-code-language)
Summary by CodeRabbit