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

Docs for SERVER-8423: Text search case folding needs utf-8 support

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Engineering Ticket Description:

      e.g. for Russian queries, "Как" currently lowercases to itself, whereas it should lowercase to "как".

      Needed for stopword removal, matching, etc.

      > db.foo.insert({content:"Как дела?"})
      > db.foo.ensureIndex({content:"text"},{default_language:"russian"})
      > db.foo.runCommand("text",{search:"\"как дела\""})
      {
      	"queryDebugString" : "дел||||как дела||",
      	"language" : "russian",
      	"results" : [ ],
      	"stats" : {
      		"nscanned" : 0,
      		"nscannedObjects" : 0,
      		"n" : 0,
      		"nfound" : 0,
      		"timeMicros" : 104
      	},
      	"ok" : 1
      }
      > db.foo.runCommand("text",{search:"\"Как дела\""})
      {
      	"queryDebugString" : "Как|дел||||Как дела||",
      	"language" : "russian",
      	"results" : [
      		{
      			"score" : 1,
      			"obj" : {
      				"_id" : ObjectId("510aa82ddb47733460b47eff"),
      				"content" : "Как дела?"
      			}
      		}
      	],
      	"stats" : {
      		"nscanned" : 1,
      		"nscannedObjects" : 0,
      		"n" : 1,
      		"nfound" : 1,
      		"timeMicros" : 118
      	},
      	"ok" : 1
      }
      > 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              steve.renaker Steve Renaker
              Reporter:
              emily.hall Emily Hall
              Participants:
              Last commenter:
              Kay Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                2 years, 47 weeks, 3 days ago
                Date of 1st Reply: