Created
March 27, 2012 21:39
-
-
Save molekilla/2220581 to your computer and use it in GitHub Desktop.
Escuelita de Scala - Parte 4 - Modelo de servicios
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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