是的,您可以使用
springELValueProvider
与…结合
Spring Expression Language
(SpEL)。
-
如果我们假设你的收藏
myCollection
:
public class ProductModel {
//...
List<String> myCollection;
//...
}
-
然后创建
SolrIndexedProperty
具体如下:
INSERT_UPDATE SolrIndexedProperty ; name[unique=true] ;type(code) ;multiValue[default=false] ;fieldValueProvider ;valueProviderParameter
; myCollection ;string ;true ;springELValueProvider ;myCollection