Java org.apache.solr.client.solrj SolrQuery fields, constructors, methods, implement or subclass

Example usage for Java org.apache.solr.client.solrj SolrQuery fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.solr.client.solrj SolrQuery.

The text is from its open source code.

Subclass

org.apache.solr.client.solrj.SolrQuery has subclasses.
Click this link to see all its subclasses.

Implementation

org.apache.solr.client.solrj.SolrQuery has the following implementations.
Click this link to see all its implementation.

Constructor

SolrQuery()
SolrQuery(String q)
Create a new SolrQuery

Method

ModifiableSolrParamsadd(String name, String... val)
Add the given values to any existing name
voidadd(SolrParams params)
Add all of the params provided in the parameter to this params.
SolrQueryaddDateRangeFacet(String field, Date start, Date end, String gap)
Add a numeric range facet.
SolrQueryaddFacetField(String... fields)
Add field(s) for facet computation.
SolrQueryaddFacetPivotField(String... fields)
Add field(s) for pivot computation.
SolrQueryaddFacetQuery(String f)
add a faceting query
SolrQueryaddField(String field)
SolrQueryaddFilterQuery(String... fq)
voidaddGetFieldStatistics(String... field)
SolrQueryaddHighlightField(String f)
add highlight field
SolrQueryaddNumericRangeFacet(String field, Number start, Number end, Number gap)
Add a numeric range facet.
SolrQueryaddOrUpdateSort(String field, ORDER order)
Updates or adds a single sort clause to the query.
SolrQueryaddSort(String field, ORDER order)
Adds a single sort clause to the end of the current sort information.
SolrQueryaddSort(SortClause sortClause)
Adds a single sort clause to the end of the query.
voidaddStatsFieldFacets(String field, String... facets)
SolrQueryaddTermsField(String field)
SolrQueryclearSorts()
Clears current sort information.
Stringget(String param)
SolrQuerygetCopy()
get a deep copy of this object
String[]getFacetFields()
get the facet fields
intgetFacetLimit()
get current facet limit
String[]getFacetQuery()
get facet queries
StringgetFacetSortString()
get facet sort
StringgetFields()
String[]getFilterQueries()
booleangetHighlight()
String[]getHighlightFields()
get list of highlighted fields
intgetHighlightFragsize()
booleangetHighlightRequireFieldMatch()
StringgetHighlightSimplePost()
StringgetHighlightSimplePre()
intgetHighlightSnippets()
String[]getParams(String param)
StringgetQuery()
StringgetRequestHandler()
IntegergetRows()
StringgetSortField()
Gets the raw sort field, as it will be sent to Solr.
ListgetSorts()
Gets an a list of current sort clauses.
IntegergetStart()
String[]getTermsRegexFlags()
IntegergetTimeAllowed()
Get the maximum time allowed for this query.
String[]remove(String name)
remove a field at the given name
booleanremoveFacetField(String name)
remove a facet field
booleanremoveFilterQuery(String fq)
ModifiableSolrParamsset(String name, String... val)
Replace any existing parameter with the given name.
SolrQuerysetFacet(boolean b)
enable/disable faceting.
SolrQuerysetFacetLimit(int lim)
set the facet limit
SolrQuerysetFacetMinCount(int cnt)
set facet minimum count
SolrQuerysetFacetMissing(Boolean v)
Sets facet missing boolean flag
SolrQuerysetFacetPrefix(String prefix)
SolrQuerysetFacetPrefix(String field, String prefix)
SolrQuerysetFacetSort(String sort)
set facet sort
SolrQuerysetFields(String... fields)
SolrQuerysetFilterQueries(String... fq)
voidsetGetFieldStatistics(boolean v)
voidsetGetFieldStatistics(String field)
SolrQuerysetHighlight(boolean b)
SolrQuerysetHighlightFragsize(int num)
SolrQuerysetHighlightRequireFieldMatch(boolean flag)
SolrQuerysetHighlightSimplePost(String f)
SolrQuerysetHighlightSimplePre(String f)
SolrQuerysetHighlightSnippets(int num)
SolrQuerysetIncludeScore(boolean includeScore)
SolrQuerysetParam(String name, String... values)
SolrQuerysetParam(String name, boolean value)
SolrQuerysetQuery(String query)
SolrQuerysetRequestHandler(String qt)
The Request Handler to use (see the solrconfig.xml), which is stored in the "qt" parameter.
SolrQuerysetRows(Integer rows)
SolrQuerysetShowDebugInfo(boolean showDebugInfo)
SolrQuerysetSort(SortClause sortClause)
Replaces the current sort information with a single sort clause
SolrQuerysetSort(String field, ORDER order)
Replaces the current sort information with a single sort clause
SolrQuerysetSorts(List value)
Replaces the current sort information.
SolrQuerysetStart(Integer start)
SolrQuerysetTerms(boolean b)
enable/disable terms.
SolrQuerysetTermsLimit(int limit)
SolrQuerysetTermsLowerInclusive(boolean b)
SolrQuerysetTermsMaxCount(int cnt)
SolrQuerysetTermsMinCount(int cnt)
SolrQuerysetTermsPrefix(String prefix)
SolrQuerysetTermsRaw(boolean b)
SolrQuerysetTermsRegex(String regex)
SolrQuerysetTermsRegexFlag(String flag)
SolrQuerysetTermsSortString(String type)
SolrQuerysetTermsUpper(String upper)
SolrQuerysetTermsUpperInclusive(boolean b)
SolrQuerysetTimeAllowed(Integer milliseconds)
Set the maximum time allowed for this query.
intsize()