We are using Sitefinity 6.1
We have a custom module, Recipe. Recipe has a sub content type, RecipePage. I have a search index created that indexes only RecipePages. There are 2 pages in the site that display the RecipePage content.
When I am editing Recipe Pages in the content module, and I click on "Pages where items like this are published": I see both "/Recipe" and "/New/Recipe" with priorities 1 and 2 respectively. When I create a search page using the Recipe Index I created, I only see the results like "/Recipe/<name-of-recipe>". My expectation is that I will see both "/Recipe/<name-of-recipe>" and "/New/Recipe/<name-of-recipe>". Said another way, I am only see half the results I am expecting to see. If I then go and switch the priorities making /New/Recipe the top priority page where Recipe items are published, I get the reverse result seeing only "/New/Recipe/<name-of-recipe>" instead of seeing both "/Recipe/<name-of-recipe>" and "/New/Recipe/<name-of-recipe>". How can I get the search index to index all pages where the content items are displayed?
Thank you for responding! I understand how the search index works a little better now, and I think I can be more clear on the problem that I am trying to solve.
I would like to be able to extend the functionality of the Search Results widget. As you pointed out: "the search results will display the url to the page where the item opens by default". The functionality I would like to add is the ability to set which page displays the content items. Is it possible to extend the functionality of the built in search results widget? If so, what method or methods should I override to determine what URL's to use?
Thank you Sabrie, that was very helpful and exactly what I was looking for. The only minor problem I have is:
When RecipePages are returned in the search results, the main link to the recipe has the PageNumber as the text of the link instead of the Recipe's Title.
For example, assume we have a Recipe called "Chicken Noodle Soup" and it has 4 pages. If the fourth page is in the search results, as a title it will have "4" instead of "Chicken Noodle Soup".
Is it possible to reference the base content type's title instead?