Skip to content

Instantly share code, notes, and snippets.

@molekilla
Created March 27, 2012 21:39
Show Gist options
  • Save molekilla/2220581 to your computer and use it in GitHub Desktop.
Save molekilla/2220581 to your computer and use it in GitHub Desktop.
Escuelita de Scala - Parte 4 - Modelo de servicios
package services
import play.api.libs.json._
import org.elasticsearch.action.index._
import org.elasticsearch.common.settings._
import org.elasticsearch.client.transport._
import org.elasticsearch.common.transport.InetSocketTransportAddress
import org.elasticsearch.action.search._
import org.elasticsearch.index.query._
import org.elasticsearch.search.sort._
import org.elasticsearch.common.xcontent._
import org.elasticsearch.search._
import org.elasticsearch.node.{Node,NodeBuilder}
import org.elasticsearch.index.query.FilterBuilders._
import org.elasticsearch.index.query._
import org.elasticsearch.search.facet._
abstract trait SearchUtil {
protected def search(query:String, pagePosition:Int, isExact:Boolean):JsValue
protected def typeahead(query:String):Seq[JsValue]
protected def relationships(query:String, directores:Seq[String]):JsValue
}
trait SearchService extends SearchUtil {
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment