Uploaded image for project: 'Spring Data MongoDB'
  1. Spring Data MongoDB
  2. DATAMONGO-2365

Parameter hint in Query#hint is not index name

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.0 M3 (Neumann)
    • Component/s: None
    • Labels:

      Description

      As the following code, I expect that hint parameter that passed into withHint method must be index name.

      Query query = new Query().withHint("country_code_1")
      
      

      However, It actually is a json text likes:

      Query query = new Query().withHint("{country_code: 1}")
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cstrobl Christoph Strobl
              Reporter:
              huantt huantt
              Last updater:
              Mark Paluch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: