...
The “Color” property will be included in the variant indexed under hawk_child_attributes
.
Convention
Every field that will be equivalent to a variant property shall be prefixed by “Child_” in Hawksearch. Also, it will have the “Is Child Field?” flag set to “ON”
...
Code Block | ||
---|---|---|
| ||
[IncludeInHawksearch]c public virtual string Size { get; set; } |
we have Child_Size
Default Fields
These fields are always included in indexing (can be found here)
Child_DisplayName
Child_Code
Child_Url
Considerations
Variant Indexing is unavailable under this strategy.
AddHawksearchVariantIndexing
will throw aNotSupportedException
if attempted to be used inside chain initialization. Also,VariantsIndexingHandler
andVariantsIncrementalIndexingHandler
pipes will be rendered useless and throw exceptions.Price and inventory indexing options from Web.config will have no effect, because Variant Indexing is unavailable.
Indexing Setup Example: Optimizely Foundation
A full version of the HawksearchInitialization
class used to set up indexing on the Optimizely Foundation solution can be found below:
...