public class LuceneQueryExpander extends AbstractSdxObject
SdxObject.ConfigurationNode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME_SUFFIX |
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized
DEFAULT_ENCODING
Constructor and Description |
---|
LuceneQueryExpander() |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.search.Query |
expandQuery(Query query,
int[] relations,
int depth,
java.lang.String[] langs) |
org.apache.lucene.search.Query |
expandQuery(Query query,
java.lang.String fieldName,
int[] relations,
int depth,
java.lang.String[] langs) |
protected java.lang.String |
getClassNameSuffix()
Sub classes should element this method to return their class name suffix for SAX output
|
protected boolean |
initToSax()
Init the LinkedHashMap _xmlizable_objects with the objects in order to describ them in XML
|
protected void |
initVolatileObjectsToSax()
Init the LinkedHashMap _xmlizable_volatile_objects with the objects in order to describ them in XML
Some objects need to be refresh each time a toSAX is called
|
protected org.apache.lucene.search.Query |
rebuildQuery(org.apache.lucene.search.Query origQuery,
java.lang.String field,
int[] relations,
int depth,
java.lang.String[] langs)
TODO: this method is too big and dirty.
|
void |
setUp(SDXThesaurus lt) |
configure, configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, toSAX, verifyConfigurationResources
public static final java.lang.String CLASS_NAME_SUFFIX
public void setUp(SDXThesaurus lt)
public org.apache.lucene.search.Query expandQuery(Query query, int[] relations, int depth, java.lang.String[] langs) throws SDXException
SDXException
public org.apache.lucene.search.Query expandQuery(Query query, java.lang.String fieldName, int[] relations, int depth, java.lang.String[] langs) throws SDXException
SDXException
protected org.apache.lucene.search.Query rebuildQuery(org.apache.lucene.search.Query origQuery, java.lang.String field, int[] relations, int depth, java.lang.String[] langs) throws SDXException
origQuery
- field
- relations
- depth
- langs
- SDXException
protected java.lang.String getClassNameSuffix()
AbstractSdxObject
getClassNameSuffix
in class AbstractSdxObject
protected boolean initToSax()
AbstractSdxObject
initToSax
in class AbstractSdxObject
protected void initVolatileObjectsToSax()
initVolatileObjectsToSax
in class AbstractSdxObject
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.