@ThreadSafe public class LuceneProcessingContext extends Object
Modifier | Constructor and Description |
---|---|
protected |
LuceneProcessingContext(QueryContext queryContext,
String repositoryName,
org.hibernate.search.SearchFactory searchFactory,
LuceneSchema schema) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close all of the readers and searchers that are associated with this processing context.
|
QueryContext |
getQueryContext() |
LuceneQueryFactory |
getQueryFactory() |
org.apache.lucene.index.IndexReader |
getReader(String indexName)
Get an IndexReader for the Lucene index with the supplied name.
|
String |
getRepositoryName() |
org.apache.lucene.search.IndexSearcher |
getSearcher(String indexName)
Get an IndexSearcher for the Lucene index with the supplied name.
|
Set<String> |
getWorkspaceNames()
Return the name of each workspace to be queried, or an empty set if all the workspaces should be queried.
|
protected LuceneProcessingContext(QueryContext queryContext, String repositoryName, org.hibernate.search.SearchFactory searchFactory, LuceneSchema schema)
public QueryContext getQueryContext()
public LuceneQueryFactory getQueryFactory()
public Set<String> getWorkspaceNames()
public String getRepositoryName()
public org.apache.lucene.index.IndexReader getReader(String indexName) throws LuceneException
indexName
- the name of the index; may not be nullLuceneException
- if the index manager to which the named index belongs failed to startpublic org.apache.lucene.search.IndexSearcher getSearcher(String indexName) throws LuceneException
indexName
- the name of the index; may not be nullLuceneException
- if the index manager to which the named index belongs failed to startpublic void close()
Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.