Developer forum

Forum » Development » Index custom field type

Index custom field type

Alexander Tømmerholen
Reply

Hello,

I got some issue when it comes to custom field type and indexing.

The case is that the customer want to sort products based on the last word in a text field. Because of this we have created a custom field type that get the last word in the text field.
Example:
Text field contains: Alexander Tømmerholen
Custom field type contains: Tømmerholen

Everything is good so far but it seems like the index will not store the information that are available in the custom field type field. What can be done to make the index store the data from this field?


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply

Hi Alexander,

 

How are you setting up that field and populating the values? Ultimately it has to be a field in the repository, but there's a number of ways to get there.

 

If you have a notification subscriber AND/OR populating/integrating a custom product field, then it should already be there if you are using the schema extender.

If you are using an index builder extender, you still need to create an index field. It does not have to be Stored. It should be Analyzed (assuming it's really a single term), so it takes care of special characters, uppercase characters and other search friendly "transformations".

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum