public static class SearchMapReduce.Builder extends MapReduce.Builder<SearchMapReduce.Builder>
phases, timeout
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SearchMapReduce |
build()
Construct a new SearchMapReduce operation.
|
protected SearchMapReduce.Builder |
self() |
SearchMapReduce.Builder |
withIndex(String index)
Set the index to search.
|
SearchMapReduce.Builder |
withQuery(String query)
Set the query to run.
|
timeout, withLinkPhase, withLinkPhase, withMapPhase, withMapPhase, withMapPhase, withMapPhase, withReducePhase, withReducePhase, withReducePhase, withReducePhase
protected SearchMapReduce.Builder self()
self
in class MapReduce.Builder<SearchMapReduce.Builder>
public SearchMapReduce.Builder withIndex(String index)
index
- The index to run the search onpublic SearchMapReduce.Builder withQuery(String query)
query
- The query to runpublic SearchMapReduce build()
Copyright © 2016. All rights reserved.