| Package | Description |
|---|---|
| org.opencms.search |
Implements the main full text search and indexing functions available in OpenCms.
|
| org.opencms.search.documents |
Handles indexing different sorts of document and resource type from the OpenCms VFS for the full text search.
|
| org.opencms.search.fields |
These classes control the mapping of the OpenCms content to the Lucene search fields.
|
| org.opencms.search.solr |
The package contains the Solr search integration.
|
| Modifier and Type | Method and Description |
|---|---|
CmsSearchIndex |
CmsSearchParameters.getSearchIndex()
Returns the search index to search in or null if not set before
(
). |
| Modifier and Type | Method and Description |
|---|---|
void |
CmsSearchParameters.setSearchIndex(CmsSearchIndex index)
Sets the search index to use for the search.
|
| Constructor and Description |
|---|
CmsLuceneIndexWriter(org.apache.lucene.index.IndexWriter indexWriter,
CmsSearchIndex index)
Creates a new index writer based on the provided standard Lucene IndexWriter for the
provided OpenCms search index instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
I_CmsTermHighlighter.getExcerpt(org.apache.lucene.document.Document doc,
CmsSearchIndex index,
CmsSearchParameters params,
org.apache.lucene.search.Query query,
org.apache.lucene.analysis.Analyzer analyzer)
Returns an excerpt of the given document related based on the given index and query.
|
java.lang.String |
CmsTermHighlighterHtml.getExcerpt(org.apache.lucene.document.Document doc,
CmsSearchIndex index,
CmsSearchParameters params,
org.apache.lucene.search.Query query,
org.apache.lucene.analysis.Analyzer analyzer) |
| Modifier and Type | Method and Description |
|---|---|
void |
CmsSearchFieldConfiguration.setIndex(CmsSearchIndex index)
Sets the index.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CmsSolrIndex
Implements the search within an Solr index.
|