Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-2565

Comment on: "manual/tutorial/return-text-queries-using-only-text-index.txt"

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • 01112017-cleanup
    • None
    • manual

    Description

      This asc and desc key, what you described, doesn't work for us! The documentation is bad.

      We tried :

      db.product.ensureIndex({
          keyword : "text", // string ~100 characters separated by space
          sku : -1, //integer32
      })

      and for text search :

      db.product.runCommand("text",{
              search: "chindren toys",
              project : {sku : 1, _id : 0}
      })

      it returns the documents order on disc written (ASC), NOT in - the expected - DESC order by "sku" field.

      Thanks for reply

      Attachments

        Activity

          People

            gianfranco Gianfranco Palumbo
            xgen-internal-docs Docs Collector User (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10 years, 4 weeks ago