Uses of Class
org.apache.solr.search.SolrIndexSearcher
-
Packages that use SolrIndexSearcher Package Description org.apache.solr.core Core classes implementing Solr internals and the management ofSolrCoresorg.apache.solr.handler Concrete implementations ofSolrRequestHandlerorg.apache.solr.handler.component SearchComponentimplementations for use inSearchHandlerorg.apache.solr.highlight SolrHighlighterAPI and related implementations and utilitiesorg.apache.solr.query Solr Queriesorg.apache.solr.request APIs and classes for dealing with Solr requestsorg.apache.solr.response API and implementations ofQueryResponseWriterfor formatting Solr request responsesorg.apache.solr.schema IndexSchemaandFieldTypeimplementations for powering schema.xmlorg.apache.solr.search APIs and classes for parsing and processing search requestsorg.apache.solr.search.facet APIs and classes for the JSON Facet API.org.apache.solr.search.grouping APIs and classes for implementing result groupingorg.apache.solr.search.grouping.distributed.command Internal classes used to implement distributed result groupingorg.apache.solr.search.grouping.distributed.shardresultserializer Internal classes used to implement distributed result groupingorg.apache.solr.search.grouping.endresulttransformer APIs and classes for transforming result grouping results into the appropriate response formatorg.apache.solr.search.join Classes related to joins.org.apache.solr.search.stats APIs and Classes implementing the Stats component used for document frequency calculations.org.apache.solr.spelling APIs and classes used by theSpellCheckComponentorg.apache.solr.spelling.suggest APIs and classes used by theSpellCheckComponentorg.apache.solr.update APIs and classes for managing index updatesorg.apache.solr.util Common utility classes used throughout Solr -
-
Uses of SolrIndexSearcher in org.apache.solr.core
Methods in org.apache.solr.core that return types with arguments of type SolrIndexSearcher Modifier and Type Method Description RefCounted<SolrIndexSearcher>SolrCore. getNewestSearcher(boolean openNew)Return the newest normalRefCounted<SolrIndexSearcher> with the reference count incremented.RefCounted<SolrIndexSearcher>SolrCore. getRealtimeSearcher()Gets the latest real-time searcher w/o forcing open a new searcher if one already exists.RefCounted<SolrIndexSearcher>SolrCore. getRegisteredSearcher()Returns the current registered searcher with its reference count incremented, or null if none are registered.RefCounted<SolrIndexSearcher>SolrCore. getSearcher()Return a registeredRefCounted<SolrIndexSearcher> with the reference count incremented.RefCounted<SolrIndexSearcher>SolrCore. getSearcher(boolean forceNew, boolean returnSearcher, Future<Void>[] waitSearcher)RefCounted<SolrIndexSearcher>SolrCore. getSearcher(boolean forceNew, boolean returnSearcher, Future<Void>[] waitSearcher, boolean updateHandlerReopens)Get aSolrIndexSearcheror start the process of creating a new one.RefCounted<SolrIndexSearcher>SolrCore. openNewSearcher(boolean updateHandlerReopens, boolean realtime)Opens a new searcher and returns a RefCounted<SolrIndexSearcher> with its reference incremented.Methods in org.apache.solr.core with parameters of type SolrIndexSearcher Modifier and Type Method Description protected org.apache.solr.common.util.NamedList<Object>AbstractSolrEventListener. addEventParms(SolrIndexSearcher currentSearcher, org.apache.solr.common.util.NamedList<Object> nlst)Add theEventParams.EVENTwith either theEventParams.NEW_SEARCHERorEventParams.FIRST_SEARCHERvalues depending on the value of currentSearcher.IndexFingerprintSolrCore. getIndexFingerprint(SolrIndexSearcher searcher, org.apache.lucene.index.LeafReaderContext ctx, long maxVersion)Computes fingerprint of a segment and caches it only if all the version in segment are included in the fingerprint.voidAbstractSolrEventListener. newSearcher(SolrIndexSearcher newSearcher, SolrIndexSearcher currentSearcher)voidDelegatingEventListener. newSearcher(SolrIndexSearcher newSearcher, SolrIndexSearcher currentSearcher)voidQuerySenderListener. newSearcher(SolrIndexSearcher newSearcher, SolrIndexSearcher currentSearcher)voidSolrEventListener. newSearcher(SolrIndexSearcher newSearcher, SolrIndexSearcher currentSearcher)The searchers passed here are only guaranteed to be valid for the duration of this method call, so care should be taken not to spawn threads or asynchronous tasks with references to these searchers.Method parameters in org.apache.solr.core with type arguments of type SolrIndexSearcher Modifier and Type Method Description <R> RSolrCore. withSearcher(IOFunction<SolrIndexSearcher,R> lambda)Executes the lambda with theSolrIndexSearcher. -
Uses of SolrIndexSearcher in org.apache.solr.handler
Constructors in org.apache.solr.handler with parameters of type SolrIndexSearcher Constructor Description MoreLikeThisHelper(org.apache.solr.common.params.SolrParams params, SolrIndexSearcher searcher) -
Uses of SolrIndexSearcher in org.apache.solr.handler.component
Methods in org.apache.solr.handler.component that return SolrIndexSearcher Modifier and Type Method Description SolrIndexSearcherStatsField. getSearcher()The searcher that should be used for processing local statsMethods in org.apache.solr.handler.component with parameters of type SolrIndexSearcher Modifier and Type Method Description protected voidQueryComponent. doFieldSortValues(ResponseBuilder rb, SolrIndexSearcher searcher)static com.carrotsearch.hppc.IntIntHashMapQueryElevationComponent. getBoostDocs(SolrIndexSearcher indexSearcher, Set<org.apache.lucene.util.BytesRef> boosted, Map<Object,Object> context)Resolves a set of boosted docs by uniqueKey to a map of docIds mapped to a priority value > 0.voidIterativeMergeStrategy. handleMergeFields(ResponseBuilder rb, SolrIndexSearcher searcher)voidMergeStrategy. handleMergeFields(ResponseBuilder rb, SolrIndexSearcher searcher)Implement handleMergeFields(ResponseBuilder rb, SolrIndexSearch searcher) if your merge strategy needs more complex data then the sort fields provide.static voidPhrasesIdentificationComponent.Phrase. populateStats(List<PhrasesIdentificationComponent.Phrase> phrases, Collection<String> fieldNames, SolrIndexSearcher searcher)Populates the phrases with stats from the local index for the specified fieldsprotected voidResponseLogComponent. processIds(ResponseBuilder rb, DocList dl, IndexSchema schema, SolrIndexSearcher searcher)protected voidResponseLogComponent. processScores(ResponseBuilder rb, DocList dl, IndexSchema schema, SolrIndexSearcher searcher)Constructors in org.apache.solr.handler.component with parameters of type SolrIndexSearcher Constructor Description FieldFacetStats(SolrIndexSearcher searcher, SchemaField facet_sf, StatsField statsField) -
Uses of SolrIndexSearcher in org.apache.solr.highlight
Methods in org.apache.solr.highlight with parameters of type SolrIndexSearcher Modifier and Type Method Description protected String[]UnifiedSolrHighlighter. getUniqueKeys(SolrIndexSearcher searcher, int[] docIDs)Retrieves the unique keys for the topdocs to key the results -
Uses of SolrIndexSearcher in org.apache.solr.query
Methods in org.apache.solr.query with parameters of type SolrIndexSearcher Modifier and Type Method Description DocSetSolrRangeQuery. createDocSet(SolrIndexSearcher searcher) -
Uses of SolrIndexSearcher in org.apache.solr.request
Fields in org.apache.solr.request declared as SolrIndexSearcher Modifier and Type Field Description protected SolrIndexSearcherSimpleFacets. searcherSearcher to use for all calculationsFields in org.apache.solr.request with type parameters of type SolrIndexSearcher Modifier and Type Field Description protected RefCounted<SolrIndexSearcher>SolrQueryRequestBase. searcherHolderMethods in org.apache.solr.request that return SolrIndexSearcher Modifier and Type Method Description SolrIndexSearcherDelegatingSolrQueryRequest. getSearcher()SolrIndexSearcherSolrQueryRequest. getSearcher()The index searcher associated with this requestSolrIndexSearcherSolrQueryRequestBase. getSearcher()Methods in org.apache.solr.request with parameters of type SolrIndexSearcher Modifier and Type Method Description static org.apache.solr.common.util.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 org.apache.solr.common.util.NamedList<Integer>DocValuesFacets. getCounts(SolrIndexSearcher searcher, DocSet docs, String fieldName, int offset, int limit, int mincount, boolean missing, String sort, String prefix, Predicate<org.apache.lucene.util.BytesRef> termFilter, FacetDebugInfo fdebug)static StatsValuesDocValuesStats. getCounts(SolrIndexSearcher searcher, StatsField statsField, DocSet docs, String[] facet)org.apache.solr.common.util.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 likeSimpleFacets.getFacetTermEnumCounts(SolrIndexSearcher, DocSet, String, int, int, int, boolean, String, String, Predicate, boolean)but takes a substring directly for the contains check rather than aPredicateinstance.org.apache.solr.common.util.NamedList<Integer>SimpleFacets. getFacetTermEnumCounts(SolrIndexSearcher searcher, DocSet docs, String field, int offset, int limit, int mincount, boolean missing, String sort, String prefix, Predicate<org.apache.lucene.util.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.static intSimpleFacets. 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.org.apache.solr.common.util.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<org.apache.lucene.util.BytesRef> termFilter)Constructors in org.apache.solr.request with parameters of type SolrIndexSearcher Constructor Description IntervalFacets(SchemaField schemaField, SolrIndexSearcher searcher, DocSet docs, String[] intervals, org.apache.solr.common.params.SolrParams params)Constructor that accepts un-parsed intervals using "interval faceting" syntax.IntervalFacets(SchemaField schemaField, SolrIndexSearcher searcher, DocSet docs, IntervalFacets.FacetInterval[] intervals)Constructor that accepts an already constructed array ofIntervalFacets.FacetIntervalobjects. -
Uses of SolrIndexSearcher in org.apache.solr.response
Methods in org.apache.solr.response that return SolrIndexSearcher Modifier and Type Method Description SolrIndexSearcherBasicResultContext. getSearcher()abstract SolrIndexSearcherResultContext. getSearcher()Constructors in org.apache.solr.response with parameters of type SolrIndexSearcher Constructor Description BasicResultContext(DocList docList, ReturnFields returnFields, SolrIndexSearcher searcher, org.apache.lucene.search.Query query, SolrQueryRequest req) -
Uses of SolrIndexSearcher in org.apache.solr.schema
Methods in org.apache.solr.schema with parameters of type SolrIndexSearcher Modifier and Type Method Description voidExternalFileFieldReloader. newSearcher(SolrIndexSearcher newSearcher, SolrIndexSearcher currentSearcher) -
Uses of SolrIndexSearcher in org.apache.solr.search
Methods in org.apache.solr.search that return SolrIndexSearcher Modifier and Type Method Description SolrIndexSearcherQueryContext. searcher()Methods in org.apache.solr.search with parameters of type SolrIndexSearcher Modifier and Type Method Description DocSetDocSetProducer. createDocSet(SolrIndexSearcher searcher)static DocSetDocSetUtil. createDocSet(SolrIndexSearcher searcher, org.apache.lucene.index.Term term)static DocSetDocSetUtil. createDocSet(SolrIndexSearcher searcher, org.apache.lucene.search.Query query, DocSet filter)static DocSetDocSetUtil. createDocSetGeneric(SolrIndexSearcher searcher, org.apache.lucene.search.Query query)static DocSetDocSetUtil. 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 DocSetDocSetUtil. getDocSet(DocSet docs, SolrIndexSearcher searcher)This variant of getDocSet maps all sets with size numDocs to searcher.getLiveDocs.static org.apache.lucene.index.LeafReaderCollapsingQParserPlugin. getTopFieldCacheReader(SolrIndexSearcher searcher, String collapseField)This forces the use of the top level field cache for String fields.default voidSolrCache. initialSearcher(SolrIndexSearcher initialSearcher)A hook for caches that would like to perform some initialization for the first registered searcher.<K,V>
booleanCacheRegenerator. regenerateItem(SolrIndexSearcher newSearcher, SolrCache<K,V> newCache, SolrCache<K,V> oldCache, K oldKey, V oldVal)Regenerate an old cache item and insert it intonewCache<K,V>
booleanNoOpRegenerator. regenerateItem(SolrIndexSearcher newSearcher, SolrCache<K,V> newCache, SolrCache<K,V> oldCache, K oldKey, V oldVal)voidCaffeineCache. warm(SolrIndexSearcher searcher, SolrCache<K,V> old)voidSolrCache. warm(SolrIndexSearcher searcher, SolrCache<K,V> old)Warm this cache associated withsearcherusing theoldcache object.voidSolrIndexSearcher. warm(SolrIndexSearcher old)Warm this searcher based on an old one (primarily for auto-cache warming).Constructors in org.apache.solr.search with parameters of type SolrIndexSearcher Constructor Description DocValuesIteratorCache(SolrIndexSearcher searcher)Construct an instance used to optimize random-order DocValues iterator access for the specified searcher.DocValuesIteratorCache(SolrIndexSearcher searcher, boolean cache)Construct an instance used to optimize random-order DocValues iterator access for the specified searcher.Grouping(SolrIndexSearcher searcher, QueryResult qr, QueryCommand cmd, boolean cacheSecondPassSearch, int maxDocsPercentageToCache, boolean main) -
Uses of SolrIndexSearcher in org.apache.solr.search.facet
Methods in org.apache.solr.search.facet that return SolrIndexSearcher Modifier and Type Method Description SolrIndexSearcherFacetContext. getSearcher()Methods in org.apache.solr.search.facet with parameters of type SolrIndexSearcher Modifier and Type Method Description static UnInvertedFieldUnInvertedField. checkUnInvertedField(String field, SolrIndexSearcher searcher)static org.apache.lucene.index.SortedDocValuesFieldUtil. getSortedDocValues(SolrIndexSearcher searcher, String field)Simpler method that creates a request context and looks up the field for youstatic UnInvertedFieldUnInvertedField. getUnInvertedField(String field, SolrIndexSearcher searcher)Constructors in org.apache.solr.search.facet with parameters of type SolrIndexSearcher Constructor Description UnInvertedField(String field, SolrIndexSearcher searcher) -
Uses of SolrIndexSearcher in org.apache.solr.search.grouping
Methods in org.apache.solr.search.grouping with parameters of type SolrIndexSearcher Modifier and Type Method Description CommandHandler.BuilderCommandHandler.Builder. setSearcher(SolrIndexSearcher searcher) -
Uses of SolrIndexSearcher in org.apache.solr.search.grouping.distributed.command
Methods in org.apache.solr.search.grouping.distributed.command with parameters of type SolrIndexSearcher Modifier and Type Method Description QueryCommand.BuilderQueryCommand.Builder. setDocSet(SolrIndexSearcher searcher)Sets the docSet based on the createdDocSet -
Uses of SolrIndexSearcher in org.apache.solr.search.grouping.distributed.shardresultserializer
Constructors in org.apache.solr.search.grouping.distributed.shardresultserializer with parameters of type SolrIndexSearcher Constructor Description SearchGroupsResultTransformer(SolrIndexSearcher searcher) -
Uses of SolrIndexSearcher in org.apache.solr.search.grouping.endresulttransformer
Constructors in org.apache.solr.search.grouping.endresulttransformer with parameters of type SolrIndexSearcher Constructor Description GroupedEndResultTransformer(SolrIndexSearcher searcher) -
Uses of SolrIndexSearcher in org.apache.solr.search.join
Constructors in org.apache.solr.search.join with parameters of type SolrIndexSearcher Constructor Description GraphQueryWeight(SolrIndexSearcher searcher, float boost) -
Uses of SolrIndexSearcher in org.apache.solr.search.stats
Methods in org.apache.solr.search.stats with parameters of type SolrIndexSearcher Modifier and Type Method Description org.apache.lucene.search.CollectionStatisticsExactStatsCache.ExactStatsSource. collectionStatistics(SolrIndexSearcher localSearcher, String field)org.apache.lucene.search.CollectionStatisticsLocalStatsSource. collectionStatistics(SolrIndexSearcher localSearcher, String field)abstract org.apache.lucene.search.CollectionStatisticsStatsSource. collectionStatistics(SolrIndexSearcher localSearcher, String field)protected voidExactStatsCache. doReturnLocalStats(ResponseBuilder rb, SolrIndexSearcher searcher)protected voidLocalStatsCache. doReturnLocalStats(ResponseBuilder rb, SolrIndexSearcher searcher)protected abstract voidStatsCache. doReturnLocalStats(ResponseBuilder rb, SolrIndexSearcher searcher)voidStatsCache. returnLocalStats(ResponseBuilder rb, SolrIndexSearcher searcher)Prepare a local (from the local shard) response to a "retrieve stats" shard request.org.apache.lucene.search.TermStatisticsExactStatsCache.ExactStatsSource. termStatistics(SolrIndexSearcher localSearcher, org.apache.lucene.index.Term term, int docFreq, long totalTermFreq)org.apache.lucene.search.TermStatisticsLocalStatsSource. termStatistics(SolrIndexSearcher localSearcher, org.apache.lucene.index.Term term, int docFreq, long totalTermFreq)abstract org.apache.lucene.search.TermStatisticsStatsSource. termStatistics(SolrIndexSearcher localSearcher, org.apache.lucene.index.Term term, int docFreq, long totalTermFreq) -
Uses of SolrIndexSearcher in org.apache.solr.spelling
Methods in org.apache.solr.spelling with parameters of type SolrIndexSearcher Modifier and Type Method Description voidConjunctionSolrSpellChecker. build(SolrCore core, SolrIndexSearcher searcher)voidDirectSolrSpellChecker. build(SolrCore core, SolrIndexSearcher searcher)voidFileBasedSpellChecker. build(SolrCore core, SolrIndexSearcher searcher)voidIndexBasedSpellChecker. build(SolrCore core, SolrIndexSearcher searcher)abstract voidSolrSpellChecker. build(SolrCore core, SolrIndexSearcher searcher)(re)Builds the spelling index.voidWordBreakSolrSpellChecker. build(SolrCore core, SolrIndexSearcher searcher)voidAbstractLuceneSpellChecker. reload(SolrCore core, SolrIndexSearcher searcher)voidConjunctionSolrSpellChecker. reload(SolrCore core, SolrIndexSearcher searcher)voidDirectSolrSpellChecker. reload(SolrCore core, SolrIndexSearcher searcher)voidIndexBasedSpellChecker. reload(SolrCore core, SolrIndexSearcher searcher)abstract voidSolrSpellChecker. reload(SolrCore core, SolrIndexSearcher searcher)Reloads the index.voidWordBreakSolrSpellChecker. reload(SolrCore core, SolrIndexSearcher searcher) -
Uses of SolrIndexSearcher in org.apache.solr.spelling.suggest
Methods in org.apache.solr.spelling.suggest with parameters of type SolrIndexSearcher Modifier and Type Method Description voidSolrSuggester. build(SolrCore core, SolrIndexSearcher searcher)Build the underlying Lucene SuggestervoidSuggester. build(SolrCore core, SolrIndexSearcher searcher)abstract org.apache.lucene.search.spell.DictionaryDictionaryFactory. create(SolrCore core, SolrIndexSearcher searcher)Create a Dictionary using options incoreand optionally usessearcher, in case of index based dictionariesorg.apache.lucene.search.spell.DictionaryDocumentDictionaryFactory. create(SolrCore core, SolrIndexSearcher searcher)org.apache.lucene.search.spell.DictionaryDocumentExpressionDictionaryFactory. create(SolrCore core, SolrIndexSearcher searcher)org.apache.lucene.search.spell.DictionaryFileDictionaryFactory. create(SolrCore core, SolrIndexSearcher searcher)org.apache.lucene.search.spell.DictionaryHighFrequencyDictionaryFactory. create(SolrCore core, SolrIndexSearcher searcher)voidSuggester. reload(SolrCore core, SolrIndexSearcher searcher) -
Uses of SolrIndexSearcher in org.apache.solr.update
Methods in org.apache.solr.update with parameters of type SolrIndexSearcher Modifier and Type Method Description static IndexFingerprintIndexFingerprint. getFingerprint(SolrIndexSearcher searcher, org.apache.lucene.index.LeafReaderContext ctx, Long maxVersion) -
Uses of SolrIndexSearcher in org.apache.solr.util
Methods in org.apache.solr.util with parameters of type SolrIndexSearcher Modifier and Type Method Description static org.apache.solr.common.util.NamedList<org.apache.lucene.search.Explanation>SolrPluginUtils. getExplanations(org.apache.lucene.search.Query query, DocList docs, SolrIndexSearcher searcher, IndexSchema schema)Generates an NamedList of Explanations for each item in a list of docs.static intSolrPluginUtils. numDocs(SolrIndexSearcher s, org.apache.lucene.search.Query q, org.apache.lucene.search.Query f)SolrIndexSearch.numDocs(Query,Query) freaks out if the filtering query is null, so we use this workarround.
-