Class SearchParameters
java.lang.Object
io.fluxzero.sdk.modeling.SearchParameters
- All Implemented Interfaces:
Substitutable<SearchParameters>
Represents configuration options extracted from the
@Searchable annotation on a domain type. These
parameters determine how the entity should be indexed and queried within the DocumentStore and related search
infrastructure.
Instances of this class are typically created during reflective analysis of annotated classes and cached for repeated lookups. They encapsulate metadata relevant to how documents are indexed, timestamped, and grouped within collections.
Fields:
searchable– whether the type's ordinary search representation is enabled. For Models this controls exposure through unrestricted typed search.collection– name of the logical collection under which documents are grouped; if not specified, ordinary documents use the simple class name and Models use their resolved logical name.timestampPath– expression to extract the primary timestamp (start time) from the object.endPath– expression to extract the end timestamp (for ranged entities) from the object.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SearchParametersDefault instance withsearchable=true, and no collection/timestamp configuration. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchParametersResolves the effective search configuration for a model or searchable document type.Replaces placeholders in the properties of the current resource with resolved values from application properties and returns a new instance of typeT.
-
Field Details
-
defaultSearchParameters
Default instance withsearchable=true, and no collection/timestamp configuration.
-
-
Constructor Details
-
SearchParameters
public SearchParameters()
-
-
Method Details
-
forType
Resolves the effective search configuration for a model or searchable document type.Models own their direct-document projection through
Model.document(); other document types continue to useSearchable. An unspecified collection resolves to the simple name for an ordinary document and the resolved logical name for a Model. -
substituteProperties
Description copied from interface:SubstitutableReplaces placeholders in the properties of the current resource with resolved values from application properties and returns a new instance of typeT.- Specified by:
substitutePropertiesin interfaceSubstitutable<SearchParameters>- Returns:
- a new instance of the resource with substituted properties.
-