I\'m currently developping a search engine using Solr for an ecommerce website. So I get these two fields in my schema.xml:
Yes add a directive like this in your schema.xml after the field definitions:
assuming that the defaultSearchField is set to text
.
To search for all SKUs beginning with 96 you can search for 96*. Keep in mind though this will return all fields (not just SKUs) that begin with 96. To restrict it to SKUs, you will have to search for sku:96*
.