Package com.atlassian.confluence.internal.search.v2.lucene
package com.atlassian.confluence.internal.search.v2.lucene
Provides a Lucene-backed implementation of the
SearchManager
. Configuration
of the mappings between Search instances and Lucene queries are done through plugins. Client-code of the v2 search
API should not have to refer to any code in this package or below.
Package Specification
Mapping between Searches and their Lucene-specific implementations are handled through the various Registry
classes. These in turn are backed by the
PluggableLuceneSearchMapperRegistry
, which delegates the mapping
to plugin modules.
- Since:
- 2.8
- See Also:
-
ClassDescriptionExtension of BM25 which shifts the term frequency normalization formula to boost scores of very long documents.Configuration for an
ILuceneConnection
, with the default values as used by Confluence.Creates a LuceneDocument
from the suppliedSearchable
.Deprecated, for removal: This API element is subject to removal in a future version.since 8.7, not supported on OpenSearch.Unwraps Hibernate proxies reflectively, without adding a compile-time dependency on Hibernate itself.A connection to a Lucene index.Provide configuration for the index writers used by implementations of this interface.Adds logging and profiling to lock and unlock methods.This interface will allow to allow transition from atlassian-bonnie.The implementation ofILuceneConnection
that allows concurrent searching/reading and writing/deleting.Thrown when trying to use a closedILuceneConnection
.Thrown when a disaster happens in the underlying Lucene layer.Provides timer for capture metrics for low level Lucene library call.Deprecated.since 7.0.1.Exception thrown when a mapper (LuceneSortMapper
,LuceneQueryMapper
cannot be found.Deprecated.since 7.0.1.When returned from FieldComparatorSource.newComparator, a LuceneMultiTermFieldComparator compares hits so as to determine their sort order when collecting results, using a custom sort comparator that operates on terms that may have multiple values per document.Deprecated.since 7.20 useBooleanQuery.Builder
instead orTermQuery
.LuceneQueryMapper<T extends SearchQuery>A lucene query mapper represents an object that is able to map from a ConfluenceSearchQuery
to a LuceneQuery
.Utility class to help with creating queries.Basic implementation of LanguageChecker which always returns true as Lucene supports allSearchLanguage
optionsClass that is responsible for converting a v2 search abstraction likeSearchQuery
orSearchSort
into the equivalent technology specific object.The Lucene implementation ofSearchQueryTokenizer
.Deprecated.Deprecated.since 5.9.LuceneSortMapper<T extends SearchSort>Deprecated.since 7.0 useSearchSort.expand()
instead.When returned from FieldComparatorSource.newComparator, a LuceneTermFieldComparator compares hits so as to determine their sort order when collecting results, using a custom sort comparator.This class imitates lucene connection, but works for arbitrary subset of indexesImplement this interface to initialise a searcher.Thrown when the search token has expired.Adapts Lucene's logging mechanism,InfoStream
, to SLF4J.