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

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Community Answered
    • Priority: Trivial - P5
    • None
    • Affects Version/s: 4.4.0-rc12
    • Component/s: None
    • None
    • Query 2020-09-21, Query 2020-10-05
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Katya Kamenieva
            Reporter:
            Andrew Hodel
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: