I am working on a sharepoint server 2013. and i have a list which contain the following built-in fields:-
- and so on....
now when i search for list items i always get this display template, which shows:- Item Title + Description + URL to Display form, as follow:-
now our customer asked us to do the following modification to the built-in description site column:-
- make it mandatory
- chnage it display name to be "Issue Description"
- change its type from "Rich Text" to "Enhanced Rich Text"..
so i find the best way of doing these modifications is to create a new custom Description field, and hide the built-in description field.
now my concern was if i hide the built-in Description field and i replace it with the new custom description field,,will the search result display template get affected... now based on my test sharepoint was smart enough to start showing the new custom description field instead of the hidden description field inside the search result display template.. so can anyone adivce how sharepoint implement this internally? i mean how it automatically start showing the new custom description field instead of the hidden built-in description field??? i thought at the beginning that the search result display template will start showing empty result inside the Description area.. but the search was smart enough to show the new cusotm description ,, so how did SharePoint implements this ??
I Also did this test, which proves that sharepoint default search result does not depend specifically on the built-in Description field:-
- inside my content type i create a new site column name "Custom Description" beside the built-in "Description" field. and i provide the following values for a test item (which have title= test 54321):-
Description = "this is the Description"
CustomDescription= "this is the Custom Description"
now when i search for the item title , i got this result:-
where sharepoint will not show the Description nor the CustomDescription. i think it is because the values for these fields are not long enough.
- i update the test item where i set the Description = "this is the Description so now it should be shown". i run an incremental search. and here is the result, where sharepoint start showing the Description:-
- now i set the Description back to "this is the Description", and i update the Custom Description = "this is the custom Description so now it should be shown". i run an incremental search. and here is the result, where sharepoint start showing the Custom Description:-
so this proves that sharepoint will either show the Description or the CustomDescritoon based on the content of these fields.. and it will not always depend on the built-in Description field ..... is this correct? and i am still not sure how SP implement these scenarios internally ?