Forum Discussion

Sathish_Sathiya's avatar
8 months ago

Enterprise Search Discovery Path for Property Item

In the Enterprise Search configuration, we have a native_file property for the Part item type, which is linked to the File item type. I want to configure the Enterprise Search discovery path for this property. However, it seems that the discovery path can only be configured for relationships, not for property items. How can I achieve this?

1 Reply

  • Former Member's avatar
    Former Member

    In Enterprise Search configuration, if the native_file property of the Part item type is linked to the File item type, but discovery paths are only configurable for relationships, you have a few options to achieve the desired configuration. Since Enterprise Search allows configuring the discovery path for relationships but not for direct properties, the best approach is to replace or supplement the native_file property with a relationship between Part and File.

    • Create a Relationship Between Part and File

      • Instead of (or in addition to) using native_file as a property, define a relationship between Part and File.
      • For example, create a relationship like PartHasFile that links Part to File.
    • Configure the Discovery Path for the Relationship

      • In the Enterprise Search Configuration, configure the discovery path to traverse from Part to File through this new relationship.
      • This way, the search engine will properly index the File item type for the corresponding Part.
    • Keep the native_file Property (If Necessary)

      • If the native_file property is still needed for other functionalities, keep it.
      • Ensure that the relationship is kept in sync with this property using a business rule or workflow.

    If modifying the schema by adding a relationship is not an option Slice Master, another possible workaround is using a computed property that dynamically retrieves the linked File based on the native_file property.

    Steps to Implement a Computed Property

    1. Define a computed property on the Part item that retrieves the linked File item.
    2. Ensure that Enterprise Search indexes this computed property.
    3. Configure Enterprise Search to use the computed property instead of a relationship.