Skip to content

Instantly share code, notes, and snippets.

@josep2
Created January 1, 2017 22:11
Show Gist options
  • Save josep2/a4c7f01747c6d909f9af06b39866ccc5 to your computer and use it in GitHub Desktop.
Save josep2/a4c7f01747c6d909f9af06b39866ccc5 to your computer and use it in GitHub Desktop.
import com.couchbase.client.java.search._
import com.couchbase.spark.connection.CouchbaseConnection
import com.couchbase.spark._
val fullTextSearch = SearchQuery.match("term"); // Enable the search query to look to match specifically on a term
val result = sparkSession.sparkContext.couchbaseQuery(SearchQuery("my_search_term", fullTextSearch))
.collect()
.someMethod() ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment