Created
January 1, 2017 22:11
-
-
Save josep2/a4c7f01747c6d909f9af06b39866ccc5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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