Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-49343

logical find operators: $or, $and, $not, $nor... return matching field count for sort

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Community Answered
    • Icon: Trivial - P5 Trivial - P5
    • None
    • 4.4.0-rc12
    • None
    • None
    • Query 2020-09-21, Query 2020-10-05

    Description

      I find the text search inadequate at times when splitting the search by word and performing an $or per field with a regex is much more useful.

       

      Would it be possible to add an indicator to each result that counts the number of field matches so that I can sort by relevance within mongodb rather than having to parse through the results after the find()?

       

      Will you, it's a much improved search offering for your product.

      Attachments

        Activity

          People

            kateryna.kamenieva@mongodb.com Katya Kamenieva
            andrewhodel@gmail.com Andrew Hodel
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: