Package lumis.doui.search
Class SearchSource
- java.lang.Object
-
- java.util.Observable
-
- lumis.doui.source.Source<F>
-
- lumis.doui.source.TabularSource<ITabularSourceField>
-
- lumis.doui.search.SearchSource
-
- All Implemented Interfaces:
Comparator<ISourceData>
public class SearchSource extends TabularSource<ITabularSourceField>
Source implementation for Search Results.- Since:
- 4.0.4
- Version:
- $Revision: 21964 $ $Date: 2018-10-04 20:01:33 -0300 (Thu, 04 Oct 2018) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SearchSource.SearchScope
-
Field Summary
Fields Modifier and Type Field Description static String
CATEGORIZATION_FACET_PROPERTY_ENABLE_SEARCH
static String
FIELD_BOOST_CUSTOM_PROPERTY_NAME
static String
SERVICE_FACET_PROPERTY_ENABLE_SEARCH
static String
SERVICE_INSTANCE_FACET_PROPERTY_ENABLE_SEARCH
static String
SERVICE_INSTANCE_PROPERTY_DISABLE_SEARCH
static String
TAG_FACET_PROPERTY_ENABLE_SEARCH
-
Fields inherited from class lumis.doui.source.TabularSource
positionSourceField, primaryKeySourceField, searchableSourceFields, tabularData
-
Fields inherited from class lumis.doui.source.Source
addInterfaceId, administrationInterfaceId, connectionId, detailsInterfaceId, editInterfaceId, fields, fieldsMap, id, introductionSourceField, keywordsSourceField, load, metaDataSourceId, parameters, primaryNameSourceField, readData, SOURCE_READ_DATA_ALWAYS, SOURCE_READ_DATA_NEVER, SOURCE_READ_DATA_ON_DEMAND, sourceContext, sourceDefinitionNode
-
-
Constructor Summary
Constructors Constructor Description SearchSource(Node sourceDefinitionNode, ISourceContext sourceContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TabularData
convertDataToDefinedDataTypes(TabularData originalData)
Converts the given data to another data with the values that should be used according to this source's fields definitions.protected String
getDefaultProviderClass()
Returns data provider class for the source.String
getSearcherEngineId()
Returns the searcher engine for this sourceSearchSource.SearchScope
getSearcherScope()
-
Methods inherited from class lumis.doui.source.TabularSource
applyPostLoadFilters, applyPostLoadPagination, compare, compareField, convertDataToDefinedDataTypes, createSourceField, evaluateMaxRows, getData, getDefaultBigDataPersister, getDefaultSourceSearchContentFillerClassName, getDouiHyperlinkItemParameterField, getFieldClass, getFieldId, getFieldIds, getFieldName, getFieldsDefinitionNode, getHyperlinkDefaultParameters, getIndexerEngineId, getIndexerId, getMaxRows, getPositionField, getPrimaryKeyField, getReindexerTabularDataProcessorClassName, getSearchableFields, getSearcherId, getSortedFieldIds, getSourceSearchContentFillerClassName, getStartAt, hasField, isSearchEnabled, readFieldsIntoFieldsMap, setData, setMaxRows, setStartAt
-
Methods inherited from class lumis.doui.source.Source
addData, createCustomSourceField, createDefaultCompositeFilterInstance, createDefaultFilterInstance, createRenderDataChangedEvent, createSourceFilter, deleteDataByItemIds, deleteDataByItemIds, doAddData, doDeleteDataByItemIds, doUpdateData, getAddInterfaceId, getAdministrationInterfaceId, getBigDataPersister, getDataProvider, getDefinitionNode, getDetailsInterfaceId, getDistinct, getDouiContext, getEditInterfaceId, getField, getFields, getFilter, getFiltersNode, getId, getIntroductionField, getIntroductionImageField, getKeywordsField, getLoad, getMetaDataSourceId, getParameterClass, getParameterValue, getPrimaryNameField, getPublishStartDateField, getReadData, getSourceContainer, getSourceContext, getTransaction, getUpdateDataItemId, isAdministrationInterface, isDetails, isRenderDataChangedNotificationEnabled, load, postAddFieldData, postDeleteFieldData, postProcessSource, postUpdateFieldData, preAddFieldData, preDeleteFieldData, preUpdateFieldData, readData, readData, scheduleIndexData, scheduleIndexData, sendPostAddDataNotification, sendPostDeleteDataNotification, sendPostUpdateDataNotification, sendPreAddDataNotification, sendPreDeleteDataNotification, sendPreUpdateDataNotification, sendRenderDataChangedNotification, sendRenderDataChangedNotification, setLoad, setParameterValue, setParameterValue, setReadData, setRenderDataChangedNotificationEnabled, updateData, valueChanged
-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Field Detail
-
SERVICE_INSTANCE_PROPERTY_DISABLE_SEARCH
public static final String SERVICE_INSTANCE_PROPERTY_DISABLE_SEARCH
- See Also:
- Constant Field Values
-
CATEGORIZATION_FACET_PROPERTY_ENABLE_SEARCH
public static final String CATEGORIZATION_FACET_PROPERTY_ENABLE_SEARCH
-
TAG_FACET_PROPERTY_ENABLE_SEARCH
public static final String TAG_FACET_PROPERTY_ENABLE_SEARCH
-
SERVICE_FACET_PROPERTY_ENABLE_SEARCH
public static final String SERVICE_FACET_PROPERTY_ENABLE_SEARCH
-
SERVICE_INSTANCE_FACET_PROPERTY_ENABLE_SEARCH
public static final String SERVICE_INSTANCE_FACET_PROPERTY_ENABLE_SEARCH
-
FIELD_BOOST_CUSTOM_PROPERTY_NAME
public static final String FIELD_BOOST_CUSTOM_PROPERTY_NAME
-
-
Constructor Detail
-
SearchSource
public SearchSource(Node sourceDefinitionNode, ISourceContext sourceContext) throws PortalException
- Throws:
PortalException
-
-
Method Detail
-
getDefaultProviderClass
protected String getDefaultProviderClass() throws PortalException
Description copied from class:TabularSource
Returns data provider class for the source. Always throws an exceptions since this source does not have a default provider class.- Overrides:
getDefaultProviderClass
in classTabularSource<ITabularSourceField>
- Returns:
- Throws:
PortalException
-
getSearcherEngineId
public String getSearcherEngineId() throws PortalException
Description copied from class:TabularSource
Returns the searcher engine for this source- Overrides:
getSearcherEngineId
in classTabularSource<ITabularSourceField>
- Returns:
- Throws:
PortalException
-
getSearcherScope
public SearchSource.SearchScope getSearcherScope() throws PortalException
- Throws:
PortalException
-
convertDataToDefinedDataTypes
protected TabularData convertDataToDefinedDataTypes(TabularData originalData) throws PortalException
Description copied from class:TabularSource
Converts the given data to another data with the values that should be used according to this source's fields definitions.- Overrides:
convertDataToDefinedDataTypes
in classTabularSource<ITabularSourceField>
- Parameters:
originalData
- the data to be converted.- Returns:
- the converted data.
- Throws:
PortalException
-
-