I am using sitecore content search API to get the general link field from sitecore index. Below is my model
public class GrantItem : BaseSearchItem
{
[IndexField("grant_name")]
public string GrantName { get; set; }
[IndexField("grant_description")]
public string GrantDescription { get; set; }
[IndexField("grant_categories_sm")]
public CategoryItem[] GrantCategories { get; set; }
[IndexField("grant_status_s")]
public CategoryItem GrantStatus { get; set; }
[IndexField("grant_application_type_sm")]
[TypeConverter(typeof(IndexFieldIDValueConverter))]
public IEnumerable<ID> ApplicationType { get; set; }
[IndexField("grant_url")]
public string GrantURL { get; set; }
}
When I am using sitecore content search API. I am getting the following xml in the GrantURL.
<link linktype=\"external\" url=\"http://www.google.com.au\" anchor=\"\"
target=\"\" />
Is there any default converter in sitecore to map this to a Link field or do I need to parse it manually or create a custom converter ?