Skip to content

RDoc-3779 + RDoc-3848 Control order of NULLs in query results#2454

Open
Danielle9897 wants to merge 4 commits into
ravendb:mainfrom
Danielle9897:RDoc-3779-orderOfNullsWhenSorting
Open

RDoc-3779 + RDoc-3848 Control order of NULLs in query results#2454
Danielle9897 wants to merge 4 commits into
ravendb:mainfrom
Danielle9897:RDoc-3779-orderOfNullsWhenSorting

Conversation

@Danielle9897
Copy link
Copy Markdown
Member

@Danielle9897 Danielle9897 commented May 20, 2026

Issue link

https://issues.hibernatingrhinos.com/issue/RDoc-3779/Corax-Configurable-order-of-NULLs-when-sorting
https://issues.hibernatingrhinos.com/issue/RDoc-3848/Corax-Control-order-of-NULLs-directly-in-query
https://issues.hibernatingrhinos.com/issue/RDoc-3858/Sort-query-results-Add-performance-notes-Metadata-example

Additional description

Updated articles:

  • Indexing configuration (docs/server/configuration/indexing-configuration.mdx)
    • Indexing.Querying.Corax.NullFirst
    • Indexing.Querying.Corax.NullsSortMode
  • RQL (docs/querying/rql/what-is-rql.mdx)
    • New syntax for ORDER BY
  • Sort query results (docs/querying/sorting-query-results/content/_sort-query-results-csharp.mdx)
    • New sections:
      • "Control position of null values" + add info in "Chain ordering" (C# only)
      • "Order by metadata" (for RDoc-3858)
      • "Performance notes" (for RDoc-3858)
    • Enhance section:
      • "Force ordering type" (for RDoc-3858)
  • Spatial query article (docs/client-api/session/querying/content/_how-to-make-a-spatial-query-csharp.mdx)
    • New overloads to OrderByDistance & OrderByDistanceDescending + add an example (C# only)

Type of change

  • Content - docs
  • Content - cloud
  • Content - guides
  • Content - start pages/other
  • New docs feature (consider updating /templates or readme)
  • Bug fix
  • Optimization
  • Other

Changes in docs URLs

  • No changes in docs URLs
  • Articles are restructured, URLs will change, mapping is required (update /scripts/redirects.json file, set Documents Moved PR label)

Changes in UX/UI

  • No changes in UX/UI
  • Changes in UX/UI (include screenshots and description)

@Danielle9897 Danielle9897 requested a review from maciejaszyk May 20, 2026 11:49
@Danielle9897 Danielle9897 marked this pull request as draft May 20, 2026 11:50
@Danielle9897 Danielle9897 marked this pull request as ready for review May 20, 2026 14:15
| **latitude** | `float` | The latitude of the point from which the distance is measured |
| **longitude** | `float` | The longitude of the point from which the distance is measured |
| **round_factor** (Optional) | `float` | A distance interval in kilometers.<br/>The distance from the point is rounded up to the nearest interval.<br/>The results within the same interval can be sorted by a secondary order.<br/>If no other order was specified, then by ascending order of document Id. |
| **round_factor** (Optional) | `float` | A distance interval in kilometers.<br/>The distance from the point is rounded up to the nearest interval.<br/>The results within the same interval can be sorted by a secondary order.<br/>If no other ordering was specified, results are ordered by document ID in ascending order. |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

results are ordered by document ID in ascending order.

this is not true. Most likely it will be internal document ID (the order of indexing), however there is no guarantee about it.

</TabItem>
<TabItem value="RQL" label="RQL">
```sql
from "Orders"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

This query doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants