title: not found value index error on elastic4s
body: <p>im trying to index some data to elastic search by using the   <a href="https://github.com/sksamuel/elastic4s" rel="nofollow">elastic4s</a> API</p>
  
  <p>but im getting compile error  <code>not found: value index</code></p>
  
  <p>this is the code , later on i will map the js object fields  to the elastic search fields , 
  <strong>but for now i just want to index a test case</strong> </p>
  
  <pre><code>import com.sksamuel.elastic4s._
  def indexComment(commentList: List[JsObject]) {
  val client = ElasticClient.local
  for (comment &lt;- commentList) {
     val id = comment.\("id").as[String]   
     client.execute {
       index into "posts/test" id id.toString() fields (
        "name" -&gt; "London",
        "country" -&gt; "United Kingdom",
        "continent" -&gt; "Europe",
        "status" -&gt; "Awesome")
      }
  
     }
  
     }
  
    }
  </code></pre>
  
  <p>and this is the SBT file </p>
  
  <p><code>
      libraryDependencies ++= Seq(
        jdbc,
       anorm,
       cache,
      "org.webjars" %% "webjars-play" % "2.2.1",
    "org.webjars" % "bootstrap" % "3.1.0",
    "org.webjars" % "jquery" % "2.1.0-1",
    "com.sksamuel.elastic4s" %% "elastic4s" % "1.0.0.0"<br>
  )
  </code></p>
  
  <p>and this is the complete error </p>
  
  <p><code>[error] /home/mik/programing/posts/app/helper/Helper.scala:27: not found: value index
  [error]          index into "posts/test" id id.toString() fields (
  [error]          ^
  [error] one error found
  [error] (compile:compile) Compilation failed
  [error] Total time: 2 s, completed Feb 15, 2014 1:34:54 PM
  </code></p>
  
  <p>did i miss something in the installation process ?? </p>
  
  <p>or it`s something else ??</p>
  
  <p>thanks miki</p>