Posts

Showing posts with the label Sitecore index

Creating Sitecore Index Part - 3

Image
   Introduction: In this post we will try to index Complex Fields like DropLink, DropList and so on. In this Part we will only look at DropLink. The process will remain almost the same From Sitecore Configuration perspective. Only change you might come across is Business logic in Asp.Net MVC. Since these field have reference to another Item (and not simple type) and sometimes create different objects, we cannot add them as Simple Field. We will be creating Computed field for them. Description: As per part-2, we have now successfully added simple fields. let us see how to add Complex field like Droplink. The Idea here is, to create a business logic that simplify the Output value. Droplink holds GUID of the Item that is been selected. We will try to fetch the Item thats is selected in DropLink, then pull the values as JSON to be indexed. Background: We will add Droplink to existing Template (News). fig.1 fig.2   We will add the newly create Field to be part of indexing. let...

Creating Sitecore Index Part - 2

Image
   Introduction: In Part-1 we have only created the Index that is in sync with SOLR. In this part we will try to Index only field we want to Index. Background: Let us see what we have in our Sitecore tree that will be default indexed after our Part-1 Finished. In our Custom index configuration we have given the path to be indexed as news. fig.1 fig.2 As we can see from the image above there will be 6 Items indexed (including News item). let us check our Solr for the same. fig.3 the sample from solr contains information about "Hamirpur news" (check fig.2) ,  1 - Add a Field: In practical scenario, we will not require all the fields to be indexed, thus, we will try to add selected fields only. For our scenario we will try to add "Abstract information" field only. fig.4 we need the "Abstract Information" field Id as shown in the above screen short. We will update the config file of part-1 to only Index the above mentioned Field ID. fig.5 under configuration t...

Creating Sitecore Index - part 1

Image
   Introduction: In this post we will see how we can create Sitcore solr index. Overall just to create index is simple and smooth process. All we need to do is add Folder in SOLR, add Core Index into SOLR, add custom index file into the Content Search folder (Ideally in Include Folder). Restart your app pool for the Sitecore instance. then go to control panel of sitecore. under indexing section select populate Solr managed schema followed by Indexing manager rebuilding the newly created Index. Let us see how it can be done with an example. 1- Create SOLR Custom Folder: Create Folder in Solr As Shown Below. Ideally, Copy the existing Folder and Delete all the redundant Data. As shown below. fig.1 the copied folder will have folders as shown below. fig.2 Delete "core.properties", Delete everything within data folder. 2- Add Index mapping In SOLR: Go to Solr Url. Usually it is https:// DomainName:8983/solr/# In my case since I had installed solr in 8984 port my Url is bit differ...