<slide>
<title>Language-Specific Stemming</title>

<div>
<example inline="3">
t = db.search; t.drop();
t.save( { _id: 1, title: "mi blog", post: "Este es un blog de prueba" } );
t.save( { _id: 2, title: "cuchillos son divertido", post: "Es mi tercer blog stemmed" } );
t.save( { _id: 3, title: "My fourth blog", post: "This stemmed blog is in english" } );
t.createIndex( { title: "text", post: "text" }, *{ default_language: "spanish" }* );
</example>
</div>

<div effect="fade-in-out">
<example inline="3">
*t.runCommand( "text", { search: "blog" } );*
{
  "queryDebugString" : "*blog*||||||",
  *"language" : "spanish",*
  "results" : [
    {
      "score" : 1.75,
      "obj" : { "_id" : 1, "title" : "mi *blog*",
                "post" : "Este es un *blog* de prueba" }
    },
    {
      "score" : 1.4166666666666665,
      "obj" : { "_id" : 3, "title" : "My fourth *blog*",
                "post" : "This stemmed *blog* is in english" }
    },
    {
      "score" : 0.6666666666666666,
      "obj" : { "_id" : 2, "title" : "cuchillos son divertidos",
                "post" : "Es mi tercer *blog* stemmed" }
    }
  ],
</example>
</div>

<div effect="fade-in-out">
<example inline="3">
*t.runCommand( "text", { search: "stem" } );*
</example>
<example inline="3">
{
  "queryDebugString" : "*stem*||||||",
  "language" : *"spanish",*
  "results" : [
    {
      "score" : 0.6666666666666666,
      "obj" : {
        "_id" : 3,
        "title" : "My fourth blog",
        "post" : "This *stemmed* blog is in english"
      }
    }
  ],
</example>
</div>

<div effect="fade-in-out">
<example inline="3">
*t.runCommand( "text", { search: "stemmed" } );*
</example>
<example inline="3">
{
  "queryDebugString" : "*stemm*||||||",
  "language" : "spanish",
  "results" : [
    {
      "score" : 0.6666666666666666,
      "obj" : {
        "_id" : 2,
        "title" : "cuchillos son divertidos",
        "post" : "Es mi tercer blog *stemmed*"
      }
    }
  ],
</example>
</div>

<div effect="fade-in-out">
<example inline="3">
*t.runCommand( "text", {search: "stemmed", language: "english" } );*
</example>
<example inline="3">
{
  "queryDebugString" : "*stem*||||||",
  *"language" : "english",*
  "results" : [
    {
      "score" : 0.6666666666666666,
      "obj" : {
        "_id" : 3,
        "title" : "My fourth blog",
        "post" : "This *stemmed* blog is in english"
      }
    }
  ],

</example>
</div>

</slide>
