Developer forum

Forum » Development » Display Schema extender fields in Queries in PIM

Display Schema extender fields in Queries in PIM

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have had a lot of situations where I would extend the index with new properties for the purpose of filtering but I was also interested in displaying those fields in the Queries, at least in the index mode view.

Is there any way I can accomplish it? If I would set these schema extender fields as "Stored" will they be available for displaying?

Thank you,

Adrian


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi Adrian

No, they cannot be available.

The index contains documents used for searching. The result of a query and filtering is a number of autoids for the products - and then we only list product records.

So if you need that information to be displayed in PIM or in the frontend, you need to add the information into a custom field.

Otherwise you have to open the index, retrieve the Lucene document and read the attribute from it - this can be done in a template, but not in the backend.

BR Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you for the confirmation.
I have expected this answer but I just needed to be 100% sure.

Thank you,
Adrian

 

You must be logged in to post in the forum