|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.query.lucene.PropertiesSynonymProvider
public class PropertiesSynonymProvider
Implements a synonym provider based on a properties file. Each line in the properties file is treated as a synonym definition. Example:
A=B B=CThis synonym provider will return B as a synonym for A and vice versa. The same applies to B and C. However A is not considered a synonym for C, nor C a synonym for A.
| Constructor Summary | |
|---|---|
PropertiesSynonymProvider()
|
|
| Method Summary | |
|---|---|
java.lang.String[] |
getSynonyms(java.lang.String term)
Returns an array of terms that are considered synonyms for the given term. |
void |
initialize(FileSystemResource fsr)
Initializes the synonym provider and passes the file system resource to the synonym provider configuration defined by the configuration value of the synonymProviderConfigPath parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesSynonymProvider()
| Method Detail |
|---|
public void initialize(FileSystemResource fsr)
throws java.io.IOException
synonymProviderConfigPath parameter. The resource may be
null if the configuration parameter is not set.
initialize in interface SynonymProviderfsr - the file system resource to the synonym provider
configuration.
java.io.IOException - if an error occurs while initializing the synonym
provider.public java.lang.String[] getSynonyms(java.lang.String term)
term.
getSynonyms in interface SynonymProviderterm - a search term.
term or an empty
array if no synonyms are known.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||