One of the most common features that we can see in today's e-commerce websites is an AutoSuggest feature, which provides users with a list of available content. Let's see how we can create this feature using Solr.Todo
this, we'll use the following steps.
Let's create a new core in Solr and call it musicStore
. After we have created the core, we'll create a new schema.xml
. It will contain the following fields:
<!-- Unique Id --> <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false"/> <!-- Song name --> <field name="songName" type="string" indexed="true" stored="true" required="true" multiValued="false"/> <!-- Artist name --> <field name="artistName" type="string" indexed="true" stored="true" required="true" multiValued="false"/> <!-- Album Artist --> <field name="albumArtist" type="string" indexed="true" stored="true" required="false" multiValued="false"/> <!-- Album...