Class ManagedSynonymFilterFactory
- java.lang.Object
-
- org.apache.lucene.analysis.AbstractAnalysisFactory
-
- org.apache.lucene.analysis.TokenFilterFactory
-
- org.apache.solr.rest.schema.analysis.BaseManagedTokenFilterFactory
-
- org.apache.solr.rest.schema.analysis.ManagedSynonymFilterFactory
-
- All Implemented Interfaces:
org.apache.lucene.util.ResourceLoaderAware
,ManagedResourceObserver
@Deprecated public class ManagedSynonymFilterFactory extends BaseManagedTokenFilterFactory
Deprecated.UseManagedSynonymGraphFilterFactory
instead, but be sure to also useFlattenGraphFilterFactory
at index time (not at search time) as well.TokenFilterFactory and ManagedResource implementation for doing CRUD on synonyms using the REST API.- Since:
- 4.8.0
- SPI Name (case-insensitive: if the name is 'htmlStrip', 'htmlstrip' can be used when looking up the service).
- "managedSynonym"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ManagedSynonymFilterFactory.SynonymManager
Deprecated.ManagedResource implementation for synonyms, which are so specialized that it makes sense to implement this class as an inner class as it has little application outside the SynonymFilterFactory use cases.
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.lucene.analysis.synonym.SynonymFilterFactory
delegate
Deprecated.static String
IGNORE_CASE_INIT_ARG
Deprecated.static String
NAME
Deprecated.SPI namestatic String
SYNONYM_MAPPINGS
Deprecated.-
Fields inherited from class org.apache.solr.rest.schema.analysis.BaseManagedTokenFilterFactory
handle
-
-
Constructor Summary
Constructors Constructor Description ManagedSynonymFilterFactory()
Deprecated.Default ctor for compatibility with SPIManagedSynonymFilterFactory(Map<String,String> args)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.lucene.analysis.TokenStream
create(org.apache.lucene.analysis.TokenStream input)
Deprecated.protected Class<? extends ManagedResource>
getManagedResourceImplClass()
Deprecated.Let the concrete analysis component determine the ManagedResource implementation.String
getResourceId()
Deprecated.Let the concrete analysis component decide the path it wishes to be managed at.void
onManagedResourceInitialized(NamedList<?> initArgs, ManagedResource res)
Deprecated.Called once, during core initialization, to initialize any analysis components that depend on the data managed by this resource.-
Methods inherited from class org.apache.solr.rest.schema.analysis.BaseManagedTokenFilterFactory
inform
-
Methods inherited from class org.apache.lucene.analysis.TokenFilterFactory
availableTokenFilters, findSPIName, forName, lookupClass, normalize, reloadTokenFilters
-
Methods inherited from class org.apache.lucene.analysis.AbstractAnalysisFactory
defaultCtorException, get, get, get, get, get, getBoolean, getChar, getClassArg, getFloat, getInt, getLines, getLuceneMatchVersion, getOriginalArgs, getPattern, getSet, getSnowballWordSet, getWordSet, isExplicitLuceneMatchVersion, require, require, require, requireBoolean, requireChar, requireFloat, requireInt, setExplicitLuceneMatchVersion, splitAt, splitFileNames
-
-
-
-
Field Detail
-
NAME
public static final String NAME
Deprecated.SPI name- See Also:
- Constant Field Values
-
SYNONYM_MAPPINGS
public static final String SYNONYM_MAPPINGS
Deprecated.- See Also:
- Constant Field Values
-
IGNORE_CASE_INIT_ARG
public static final String IGNORE_CASE_INIT_ARG
Deprecated.- See Also:
- Constant Field Values
-
delegate
protected org.apache.lucene.analysis.synonym.SynonymFilterFactory delegate
Deprecated.
-
-
Method Detail
-
getResourceId
public String getResourceId()
Deprecated.Description copied from class:BaseManagedTokenFilterFactory
Let the concrete analysis component decide the path it wishes to be managed at.- Specified by:
getResourceId
in classBaseManagedTokenFilterFactory
-
getManagedResourceImplClass
protected Class<? extends ManagedResource> getManagedResourceImplClass()
Deprecated.Description copied from class:BaseManagedTokenFilterFactory
Let the concrete analysis component determine the ManagedResource implementation. As there can be many instances of the same analysis component in a schema, this class should not presume to create ManagedResource. For instance, there may be 10 instances of the ManagedStopFilterFactory that use the same set of English stop words and we don't want 10 copies of the ManagedWordSetResource in the same core.- Specified by:
getManagedResourceImplClass
in classBaseManagedTokenFilterFactory
-
onManagedResourceInitialized
public void onManagedResourceInitialized(NamedList<?> initArgs, ManagedResource res) throws SolrException
Deprecated.Called once, during core initialization, to initialize any analysis components that depend on the data managed by this resource. It is important that the analysis component is only initialized once during core initialization so that text analysis is consistent, especially in a distributed environment, as we don't want one server applying a different set of stop words than other servers.- Throws:
SolrException
-
create
public org.apache.lucene.analysis.TokenStream create(org.apache.lucene.analysis.TokenStream input)
Deprecated.- Specified by:
create
in classorg.apache.lucene.analysis.TokenFilterFactory
-
-