cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to set values to indexed property for which there is no fieldvalueprovider

Former Member
0 Likes
304

I want to know the way values are set to fields which doesn't have value provider assigned to it. For e.g. :

;$solrIndexedType; manufacturerName ;text ; ; ; ; ;true;true; ; ;$solrIndexedType; priceValue ;double ; ;true; ; ; ; ;productPriceValueProvider

As shown above, want to know , how the value for manufacturerName is set without a value provider.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

First it tries to take a DefaultFieldValueProvider from the IndexedType, if not set then it uses the provider set on the defaultValueProviderSelectionStrategy - defaultFieldValueProviderId (its a required bean attribute). ootb it is modelPropertyFieldValueProvider which means it will use a value of the model's attribute with the same name as IndexedProperty.