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

Parameter hint in Query#hint is not index name

    Details

    • Type: Improvement
    • Status: Waiting for Feedback
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • 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:
                Christoph Strobl
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: