Uses of Class
org.apache.solr.client.solrj.request.SolrQuery
Packages that use SolrQuery
Package
Description
Convenience classes for dealing with various types of Solr requests.
-
Uses of SolrQuery in org.apache.solr.client.solrj.request
Methods in org.apache.solr.client.solrj.request that return SolrQueryModifier and TypeMethodDescriptionSolrQuery.addDateRangeFacet(String field, Date start, Date end, String gap) Add a numeric range facet.SolrQuery.addFacetField(String... fields) Add field(s) for facet computation.SolrQuery.addFacetPivotField(String... fields) Add field(s) for pivot computation.SolrQuery.addFacetQuery(String f) add a faceting querySolrQuery.addFilterQuery(String... fq) SolrQuery.addHighlightField(String f) add highlight fieldSolrQuery.addIntervalFacets(String field, String[] intervals) Add Interval Faceting on a field.SolrQuery.addMoreLikeThisField(String field) Add field for MoreLikeThis.SolrQuery.addNumericRangeFacet(String field, Number start, Number end, Number gap) Add a numeric range facet.SolrQuery.addOrUpdateSort(String field, SolrQuery.ORDER order) Updates or adds a single sort clause to the query.SolrQuery.addOrUpdateSort(SolrQuery.SortClause sortClause) Updates or adds a single sort field specification to the current sort information.SolrQuery.addSort(String field, SolrQuery.ORDER order) Adds a single sort clause to the end of the current sort information.SolrQuery.addSort(SolrQuery.SortClause sortClause) Adds a single sort clause to the end of the query.SolrQuery.addTermsField(String field) SolrQuery.clearSorts()Clears current sort information.SolrQuery.getCopy()get a deep copy of this object *SolrQuery.removeSort(String itemName) Removes a single sort field from the current sort information.SolrQuery.removeSort(SolrQuery.SortClause sortClause) Removes a single sort field from the current sort information.SolrQuery.setCpuAllowed(Integer milliseconds) Set the maximum CPU time allowed for this query.SolrQuery.setFacet(boolean b) enable/disable faceting.SolrQuery.setFacetLimit(int lim) set the facet limitSolrQuery.setFacetMinCount(int cnt) set facet minimum countSolrQuery.setFacetMissing(Boolean v) Sets facet missing boolean flagSolrQuery.setFacetPrefix(String prefix) SolrQuery.setFacetPrefix(String field, String prefix) SolrQuery.setFacetSort(String sort) set facet sortSolrQuery.setFilterQueries(String... fq) SolrQuery.setHighlight(boolean b) SolrQuery.setHighlightFragsize(int num) SolrQuery.setHighlightRequireFieldMatch(boolean flag) SolrQuery.setHighlightSimplePost(String f) SolrQuery.setHighlightSimplePre(String f) SolrQuery.setHighlightSnippets(int num) SolrQuery.setIncludeScore(boolean includeScore) SolrQuery.setMoreLikeThis(boolean b) Enable/Disable MoreLikeThis.SolrQuery.setMoreLikeThisBoost(boolean b) Sets if the query will be boosted by the interesting term relevance.SolrQuery.setMoreLikeThisCount(int count) Sets the number of similar documents to return for each result.SolrQuery.setMoreLikeThisFields(String... fields) SolrQuery.setMoreLikeThisMaxQueryTerms(int maxqt) Sets the maximum number of query terms that will be included in any generated query.SolrQuery.setMoreLikeThisMaxTokensParsed(int maxntp) Sets the maximum number of tokens to parse in each example doc field that is not stored with TermVector support.SolrQuery.setMoreLikeThisMaxWordLen(int maxwl) Sets the maximum word length above which words will be ignored.SolrQuery.setMoreLikeThisMinDocFreq(int mindf) Sets the frequency at which words will be ignored which do not occur in at least this many docs.SolrQuery.setMoreLikeThisMinTermFreq(int mintf) Sets the frequency below which terms will be ignored in the source docSolrQuery.setMoreLikeThisMinWordLen(int minwl) Sets the minimum word length below which words will be ignored.SolrQuery.setMoreLikeThisQF(String qf) Sets the query fields and their boosts using the same format as that used in DisMaxQParserPlugin.SolrQuery.setRequestHandler(String qt) Deprecated.SolrQuery.setShowDebugInfo(boolean showDebugInfo) SolrQuery.setSort(String field, SolrQuery.ORDER order) Replaces the current sort information with a single sort clauseSolrQuery.setSort(SolrQuery.SortClause sortClause) Replaces the current sort information with a single sort clauseSolrQuery.setSorts(List<SolrQuery.SortClause> value) Replaces the current sort information.SolrQuery.setTerms(boolean b) enable/disable terms.SolrQuery.setTermsLimit(int limit) SolrQuery.setTermsLower(String lower) SolrQuery.setTermsLowerInclusive(boolean b) SolrQuery.setTermsMaxCount(int cnt) SolrQuery.setTermsMinCount(int cnt) SolrQuery.setTermsPrefix(String prefix) SolrQuery.setTermsRaw(boolean b) SolrQuery.setTermsRegex(String regex) SolrQuery.setTermsRegexFlag(String flag) SolrQuery.setTermsSortString(String type) SolrQuery.setTermsUpper(String upper) SolrQuery.setTermsUpperInclusive(boolean b) SolrQuery.setTimeAllowed(Integer milliseconds) Set the maximum time allowed for this query.
SolrRequest.setPath(String)