My SharePoint 2013 Search Results are being returned with the name of the subsite included in the result title. For example, if a page is called "My Page Title" and the subsite is "My Subsite", the search result title is "My Subsite My Page Title".

What I would like to see is only the page title, eg, "My Page Title"

I've tried using the following metadata fields for title: - ows_Title - "My Subsite My Page Title" - TermTitle - "My Subsite My Page Title" - MetaDataExtractorTitle - "My Subsite My Page Title"

Each of the above returns the same.

Is there a way to return only the page title in the search results?

  • What is the <title> of your pages? Search may be indexing the original pages' TITLE tag and that already has the site name with the page name concatenated. Thus, that field always has both names perhaps? – John Liu Aug 4 '15 at 1:32
  • Thanks it's a good theory but the <title> is set to "My Page Title". – ben Aug 4 '15 at 3:34
  • 1
    Be sure you are looking at the actual Title field and not the title rendered on the page. – Matthew McDermott Aug 4 '15 at 20:15
  • Matthew your comment seems to be at the crux of the issue. I looked and I've noticed that <!--SPM:<asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server"/>--> is returning a page title with both the subsite and title, but <!--MS:<SharePoint:FieldValue id="HeadTitle" FieldName="Title" RunAt="Server">--> returns the expected title only. So there is a Page Title and a Title, which are different, I didn't know. Thanks! I'll keep investigating then mark your comment as answer. Where does Page Title get set? – ben Aug 4 '15 at 23:56
  • Solving the mystery is halfway to solving the problem. Good luck. – John Liu Aug 6 '15 at 1:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.