Class DslRequest
- java.lang.Object
-
- com.lucidworks.search.dsl.DslBase
-
- com.lucidworks.search.dsl.request.DslCloneable
-
- com.lucidworks.search.dsl.request.DslRequest
-
public class DslRequest extends DslCloneable
Container that holds all parameters for DSL request
-
-
Constructor Summary
Constructors Constructor Description DslRequest(QueryDefinition queryDefinition, Results results, java.util.Map<java.lang.String,java.lang.Object> params, java.util.Map<java.lang.String,java.lang.Object> context, Facets facets)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DslRequest
clone()
java.util.Map<java.lang.String,java.lang.Object>
getContext()
Facets
getFacets()
java.util.Map<java.lang.String,java.lang.Object>
getParams()
QueryDefinition
getQueryDefinition()
Results
getResults()
void
setFacets(Facets facets)
void
setQueryDefinition(QueryDefinition queryDefinition)
-
Methods inherited from class com.lucidworks.search.dsl.request.DslCloneable
clone, deepClone
-
-
-
-
Constructor Detail
-
DslRequest
public DslRequest(QueryDefinition queryDefinition, Results results, java.util.Map<java.lang.String,java.lang.Object> params, java.util.Map<java.lang.String,java.lang.Object> context, Facets facets)
-
-
Method Detail
-
getQueryDefinition
public QueryDefinition getQueryDefinition()
- Returns:
- search query parameters
-
getParams
public java.util.Map<java.lang.String,java.lang.Object> getParams()
- Returns:
- a map that holds request parameters that will be added to the underlying query to search engine
-
setQueryDefinition
public void setQueryDefinition(QueryDefinition queryDefinition)
-
getResults
public Results getResults()
- Returns:
- search result parameters
-
getFacets
public Facets getFacets()
- Returns:
- facets parameters
-
setFacets
public void setFacets(Facets facets)
-
getContext
public java.util.Map<java.lang.String,java.lang.Object> getContext()
- Returns:
- a map that holds additional parameters that are used by some stages or DSL hints
-
clone
public DslRequest clone()
- Specified by:
clone
in classDslCloneable
-
-