I am currently using the following code to search within Tridion. It is fetching the Items (Components and Pages) based on the input.
Question: In rich text field we have Design,Source and Preview tabs. The below code is searching for content present in Design tab only. I need the Source tab content also
to be considered while performing search.
CoreServiceSession client = new CoreServiceSession();
SessionAwareCoreServiceClient csClient = client.GetClient();
var find = new SearchQueryData
{
Description = "Universe"
ItemTypes = new ItemType[] { ItemType.Page, ItemType.Component }
);
IdentifiableObjectData[] foundItems = csClient.GetSearchResults(find);
Did you try with FullTextQuery
As FullTextQuery can impact on your CMS performance, you may want it to restrict to particular schema components field only.