I’m going to index our products database in solr but I have one doubt. Our products are described by over 1000 parameters, approximately 20 for each. We have 100 000 products. Parameters are different, some of them are strings, some of them are exact numbers, some of them are numbers but needs to support ranges. So, my question is: should I prepare separate field for each parameter in schema.xml? We want to use these parameters as filters to narrow search results.
Share
Instead of defining all the fields in the schema you can define dynamic fields for each type and use that types in the client side.
For example : For integer type define the following dynamic field.
Then create your integer fields as
fieldName_i.For more information check Solr wiki.