Package | Description |
---|---|
org.apache.solr.handler.component |
SearchComponent implementations for
use in SearchHandler |
org.apache.solr.query |
Solr Queries
|
org.apache.solr.request |
APIs and classes for dealing with Solr requests
|
org.apache.solr.search |
APIs and classes for parsing and processing search requests
|
org.apache.solr.search.facet |
APIs and classes for the JSON Facet API.
|
org.apache.solr.search.grouping.collector |
Grouping related
Collector s |
org.apache.solr.search.grouping.distributed.command |
Internal classes used to implement distributed result grouping
|
org.apache.solr.search.join |
Classes related to joins.
|
Modifier and Type | Method and Description |
---|---|
DocSet |
StatsField.computeBaseDocSet()
Computes a base
DocSet for the current request to be used
when computing global stats for the local index. |
Modifier and Type | Method and Description |
---|---|
protected void |
PivotFacetProcessor.addPivotQueriesAndRanges(NamedList<Object> pivot,
SolrParams params,
DocSet docs,
List<FacetComponent.FacetBase> facetQueries,
List<RangeFacetRequest> facetRanges)
Add facet.queries and facet.ranges to the pivot response if needed
|
StatsValues |
StatsField.computeLocalStatsValues(DocSet base)
|
static NamedList<Object> |
SpatialHeatmapFacets.getHeatmapForField(String fieldKey,
String fieldName,
ResponseBuilder rb,
SolrParams params,
DocSet docSet)
Called by
SimpleFacets to compute heatmap facets. |
protected SimpleFacets |
FacetComponent.newSimpleFacets(SolrQueryRequest req,
DocSet docSet,
SolrParams params,
ResponseBuilder rb) |
protected int |
RangeFacetProcessor.rangeCount(DocSet subset,
RangeFacetRequest rfr,
RangeFacetRequest.FacetRange fr)
Macro for getting the numDocs of range over docs
|
Constructor and Description |
---|
PivotFacetProcessor(SolrQueryRequest req,
DocSet docs,
SolrParams params,
ResponseBuilder rb) |
RangeFacetProcessor(SolrQueryRequest req,
DocSet docs,
SolrParams params,
ResponseBuilder rb) |
Modifier and Type | Method and Description |
---|---|
DocSet |
SolrRangeQuery.createDocSet(SolrIndexSearcher searcher) |
Modifier and Type | Field and Description |
---|---|
DocSet |
SimpleFacets.ParsedParams.docs |
protected DocSet |
SimpleFacets.docsOrig
The main set of documents all facet counts should be relative to
|
Modifier and Type | Method and Description |
---|---|
protected DocSet |
SimpleFacets.computeDocSet(DocSet baseDocSet,
List<String> excludeTagList) |
DocSet |
SimpleFacets.getDocsOrig() |
Modifier and Type | Method and Description |
---|---|
protected DocSet |
SimpleFacets.computeDocSet(DocSet baseDocSet,
List<String> excludeTagList) |
static NamedList<Integer> |
DocValuesFacets.getCounts(SolrIndexSearcher searcher,
DocSet docs,
String fieldName,
int offset,
int limit,
int mincount,
boolean missing,
String sort,
String prefix,
Predicate<BytesRef> termFilter,
FacetDebugInfo fdebug) |
static NamedList<Integer> |
DocValuesFacets.getCounts(SolrIndexSearcher searcher,
DocSet docs,
String fieldName,
int offset,
int limit,
int mincount,
boolean missing,
String sort,
String prefix,
String contains,
boolean ignoreCase,
FacetDebugInfo fdebug) |
static StatsValues |
DocValuesStats.getCounts(SolrIndexSearcher searcher,
StatsField statsField,
DocSet docs,
String[] facet) |
NamedList<Integer> |
SimpleFacets.getFacetTermEnumCounts(SolrIndexSearcher searcher,
DocSet docs,
String field,
int offset,
int limit,
int mincount,
boolean missing,
String sort,
String prefix,
Predicate<BytesRef> termFilter,
boolean intersectsCheck)
Returns a list of terms in the specified field along with the
corresponding count of documents in the set that match that constraint.
|
NamedList<Integer> |
SimpleFacets.getFacetTermEnumCounts(SolrIndexSearcher searcher,
DocSet docs,
String field,
int offset,
int limit,
int mincount,
boolean missing,
String sort,
String prefix,
String contains,
boolean ignoreCase,
boolean intersectsCheck)
Works like
SimpleFacets.getFacetTermEnumCounts(SolrIndexSearcher, DocSet, String, int, int, int, boolean, String, String, Predicate, boolean)
but takes a substring directly for the contains check rather than a Predicate instance. |
static int |
SimpleFacets.getFieldMissingCount(SolrIndexSearcher searcher,
DocSet docs,
String fieldName)
Returns a count of the documents in the set which do not have any
terms for for the specified field.
|
NamedList<Integer> |
SimpleFacets.getGroupedCounts(SolrIndexSearcher searcher,
DocSet base,
String field,
boolean multiToken,
int offset,
int limit,
int mincount,
boolean missing,
String sort,
String prefix,
Predicate<BytesRef> termFilter) |
int |
SimpleFacets.getGroupedFacetQueryCount(Query facetQuery,
DocSet docSet)
Returns a grouped facet count for the facet query
|
SimpleFacets.ParsedParams |
SimpleFacets.ParsedParams.withDocs(DocSet docs) |
Constructor and Description |
---|
IntervalFacets(SchemaField schemaField,
SolrIndexSearcher searcher,
DocSet docs,
IntervalFacets.FacetInterval[] intervals)
Constructor that accepts an already constructed array of
IntervalFacets.FacetInterval objects. |
IntervalFacets(SchemaField schemaField,
SolrIndexSearcher searcher,
DocSet docs,
String[] intervals,
SolrParams params)
Constructor that accepts un-parsed intervals using "interval faceting" syntax.
|
ParsedParams(SolrParams localParams,
SolrParams params,
SolrParams required,
String facetValue,
DocSet docs,
String key,
List<String> tags,
int threads) |
SimpleFacets(SolrQueryRequest req,
DocSet docs,
SolrParams params) |
SimpleFacets(SolrQueryRequest req,
DocSet docs,
SolrParams params,
ResponseBuilder rb) |
Modifier and Type | Interface and Description |
---|---|
interface |
DocList
DocList represents the result of a query: an ordered list of document ids with optional score. |
Modifier and Type | Class and Description |
---|---|
class |
BitDocSet
BitDocSet represents an unordered set of Lucene Document Ids
using a BitSet. |
class |
DocSlice
DocSlice implements DocList as an array of docids and optional scores. |
class |
HashDocSet
HashDocSet represents an unordered set of Lucene Document Ids
using a primitive int hash table. |
class |
SortedIntDocSet
SortedIntDocSet represents a sorted set of Lucene Document Ids. |
Modifier and Type | Field and Description |
---|---|
DocSet |
SolrIndexSearcher.ProcessedFilter.answer |
DocSet |
DocListAndSet.docSet |
static DocSet |
DocSet.EMPTY |
Modifier and Type | Method and Description |
---|---|
DocSet |
SortedIntDocSet.andNot(DocSet other) |
DocSet |
DocSet.andNot(DocSet other)
Returns the documents in this set that are not in the other set.
|
DocSet |
BitDocSet.andNot(DocSet other) |
DocSet |
HashDocSet.andNot(DocSet other) |
DocSet |
DocSetBuilder.build(FixedBitSet filter) |
DocSet |
DocSetBuilder.buildUniqueInOrder(FixedBitSet filter)
Only use this if you know there were no duplicates and that docs were collected in-order!
|
DocSet |
DocSet.clone() |
DocSet |
DocSetProducer.createDocSet(SolrIndexSearcher searcher) |
static DocSet |
DocSetUtil.createDocSet(SolrIndexSearcher searcher,
Query query,
DocSet filter) |
static DocSet |
DocSetUtil.createDocSet(SolrIndexSearcher searcher,
Term term) |
static DocSet |
DocSetUtil.createDocSetGeneric(SolrIndexSearcher searcher,
Query query) |
DocSet |
QueryResult.getDocSet() |
DocSet |
DocSetCollector.getDocSet() |
static DocSet |
DocSetUtil.getDocSet(DocSetCollector collector,
SolrIndexSearcher searcher)
This variant of getDocSet will attempt to do some deduplication
on certain DocSets such as DocSets that match numDocs.
|
static DocSet |
DocSetUtil.getDocSet(DocSet docs,
SolrIndexSearcher searcher)
This variant of getDocSet maps all sets with size numDocs to searcher.getLiveDocs.
|
DocSet |
SolrIndexSearcher.getDocSet(List<Query> queries)
Returns the set of document ids matching all queries.
|
DocSet |
SolrIndexSearcher.getDocSet(Query query)
Returns the set of document ids matching a query.
|
DocSet |
SolrIndexSearcher.getDocSet(Query query,
DocSet filter)
Returns the set of document ids matching both the query and the filter.
|
DocSet |
SolrIndexSearcher.getDocSet(SolrIndexSearcher.DocsEnumState deState) |
protected DocSet |
SolrIndexSearcher.getDocSetNC(Query query,
DocSet filter) |
DocSet |
QueryCommand.getFilter() |
DocSet |
SortedIntDocSet.intersection(DocSet other) |
DocSet |
DocSet.intersection(DocSet other)
Returns the intersection of this set with another set.
|
DocSet |
HashDocSet.intersection(DocSet other) |
DocSet |
DocSlice.intersection(DocSet other) |
static DocSet |
DocSetUtil.toSmallSet(BitDocSet bitSet) |
DocSet |
DocSet.union(DocSet other)
Returns the union of this set with another set.
|
DocSet |
BitDocSet.union(DocSet other) |
DocSet |
HashDocSet.union(DocSet other) |
Modifier and Type | Method and Description |
---|---|
SolrCache<Query,DocSet> |
SolrIndexSearcher.getFilterCache() |
Modifier and Type | Method and Description |
---|---|
void |
SortedIntDocSet.addAllTo(DocSet target) |
void |
DocSet.addAllTo(DocSet target)
Adds all the docs from this set to the target set.
|
void |
BitDocSet.addAllTo(DocSet target) |
DocSet |
SortedIntDocSet.andNot(DocSet other) |
DocSet |
DocSet.andNot(DocSet other)
Returns the documents in this set that are not in the other set.
|
DocSet |
BitDocSet.andNot(DocSet other) |
DocSet |
HashDocSet.andNot(DocSet other) |
int |
DocSet.andNotSize(DocSet other)
Returns the number of documents in this set that are not in the other set.
|
int |
BitDocSet.andNotSize(DocSet other) |
void |
SolrIndexSearcher.cacheDocSet(Query query,
DocSet optionalAnswer,
boolean mustCache)
Compute and cache the DocSet that matches a query.
|
static void |
DocSetUtil.collectSortedDocSet(DocSet docs,
IndexReader reader,
Collector collector) |
static DocSet |
DocSetUtil.createDocSet(SolrIndexSearcher searcher,
Query query,
DocSet filter) |
static boolean |
DocSetUtil.equals(DocSet a,
DocSet b)
Iterates DocSets to test for equality - slow and for testing purposes only.
|
DocList |
SolrIndexSearcher.getDocList(Query query,
DocSet filter,
Sort lsort,
int offset,
int len)
Returns documents matching both
query and filter and sorted by sort . |
DocListAndSet |
SolrIndexSearcher.getDocListAndSet(Query query,
DocSet filter,
Sort lsort,
int offset,
int len)
Returns documents matching both
query and filter and sorted by sort . |
DocListAndSet |
SolrIndexSearcher.getDocListAndSet(Query query,
DocSet filter,
Sort lsort,
int offset,
int len,
int flags)
Returns documents matching both
query and filter and sorted by sort . |
static DocSet |
DocSetUtil.getDocSet(DocSet docs,
SolrIndexSearcher searcher)
This variant of getDocSet maps all sets with size numDocs to searcher.getLiveDocs.
|
DocSet |
SolrIndexSearcher.getDocSet(Query query,
DocSet filter)
Returns the set of document ids matching both the query and the filter.
|
protected DocSet |
SolrIndexSearcher.getDocSetNC(Query query,
DocSet filter) |
SolrIndexSearcher.ProcessedFilter |
SolrIndexSearcher.getProcessedFilter(DocSet setFilter,
List<Query> queries) |
DocSet |
SortedIntDocSet.intersection(DocSet other) |
DocSet |
DocSet.intersection(DocSet other)
Returns the intersection of this set with another set.
|
DocSet |
HashDocSet.intersection(DocSet other) |
DocSet |
DocSlice.intersection(DocSet other) |
int |
SortedIntDocSet.intersectionSize(DocSet other) |
int |
DocSet.intersectionSize(DocSet other)
Returns the number of documents of the intersection of this set with another set.
|
int |
BitDocSet.intersectionSize(DocSet other) |
int |
HashDocSet.intersectionSize(DocSet other) |
int |
DocSlice.intersectionSize(DocSet other) |
boolean |
SortedIntDocSet.intersects(DocSet other) |
boolean |
DocSet.intersects(DocSet other)
Returns true if these sets have any elements in common
|
boolean |
BitDocSet.intersects(DocSet other) |
boolean |
HashDocSet.intersects(DocSet other) |
boolean |
DocSlice.intersects(DocSet other) |
boolean |
SolrIndexSearcher.intersects(DocSet a,
SolrIndexSearcher.DocsEnumState deState) |
int |
SolrIndexSearcher.numDocs(DocSet a,
SolrIndexSearcher.DocsEnumState deState) |
int |
SolrIndexSearcher.numDocs(Query a,
DocSet b)
Returns the number of documents that match both
a and b . |
void |
QueryResult.setDocSet(DocSet set) |
QueryCommand |
QueryCommand.setFilter(DocSet filter) |
void |
SolrIndexSearcher.setLiveDocs(DocSet docs) |
DocSet |
DocSet.union(DocSet other)
Returns the union of this set with another set.
|
DocSet |
BitDocSet.union(DocSet other) |
DocSet |
HashDocSet.union(DocSet other) |
int |
DocSet.unionSize(DocSet other)
Returns the number of documents of the union of this set with another set.
|
int |
BitDocSet.unionSize(DocSet other) |
Modifier and Type | Method and Description |
---|---|
static DocSet |
BlockJoin.toChildren(DocSet parentInput,
BitDocSet parentList,
DocSet acceptDocs,
QueryContext qcontext)
acceptDocs will normally be used to avoid deleted documents from being generated as part of the answer DocSet (just use *:*)
although it can be used to further constrain the generated documents.
|
static DocSet |
BlockJoin.toParents(DocSet childInput,
BitDocSet parentList,
QueryContext qcontext)
childInput may also contain parents (i.e.
|
Modifier and Type | Method and Description |
---|---|
int |
SlotAcc.collect(DocSet docs,
int slot,
IntFunction<SlotAcc.SlotContext> slotContext)
Bulk collection of all documents in a slot.
|
Object |
FacetRequest.process(SolrQueryRequest req,
DocSet domain)
Process this facet request against the given domain of docs.
|
protected void |
FacetProcessor.processStats(SimpleOrderedMap<Object> bucket,
Query bucketQ,
DocSet docs,
int docCount) |
static DocSet |
BlockJoin.toChildren(DocSet parentInput,
BitDocSet parentList,
DocSet acceptDocs,
QueryContext qcontext)
acceptDocs will normally be used to avoid deleted documents from being generated as part of the answer DocSet (just use *:*)
although it can be used to further constrain the generated documents.
|
static DocSet |
BlockJoin.toParents(DocSet childInput,
BitDocSet parentList,
QueryContext qcontext)
childInput may also contain parents (i.e.
|
Constructor and Description |
---|
FilterCollector(DocSet filter,
Collector delegate) |
Modifier and Type | Method and Description |
---|---|
QueryCommand.Builder |
QueryCommand.Builder.setDocSet(DocSet docSet) |
Constructor and Description |
---|
GraphPointsCollector(SchemaField collectField,
DocSet skipSet,
DocSet leafNodes) |
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.