Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-3839

IMongoQueryable<T> support for OrderBy a SortDefinition<T>(TextSearch)

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Unknown Unknown
    • None
    • None
    • Linq
    • None

    Description

      All,

      Currently the FilterDefinition<T> support for IMongoQueryable<T> works great via the Inject extension method.

      We really should also have the ability to order by a SortDefinition<T> as well.  I realize the Expression<Func<T, TKey>> parameter the typical OrderBy takes likely won't work as you're not actually sorting by a concrete field in the case of a MetaTextScore so my guess is an override would be needed but the ability to order our text searches from IMongoQueryable would be greatly appreciated.

      The closest thing I found to this was on CSHARP-2566 there was a comment by Richard Collette about projecting the MetaTextScore.  Since version 4.4 supports ordering by the score without having to also project it this is less of a concern to me.

      Regards,
      Brian

      Attachments

        Activity

          People

            Unassigned Unassigned
            buvy@assurely.com Brian Buvinghausen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: