locked
Sharepoint 2013 Search - Query Transformation - Result Source - Result Page RRS feed

  • Question

  • Hey there,

    Problem: I want a Sharepoint Result Page only to show Results from a specific Content Source with a specific Url.

    Idea: Query Transformation for Result Web Part. This looks like eg.

    {searchTerms} ContentSource="Local Sharepoint Sites" AND Path:Customer

    But when I write it like this, no results are shown. I set the Path Property as Searchable and Queryable in the Search Schema Managed Propertys at the Search Administration. First Part works fine, but the second one deliveres no results.

    Question: How do I have to write the Query Transformation?

    I also tried to set up a Content Source with only the specific sites, but I get no results for this Sharepoint Sites Content Source.

    Thursday, June 13, 2013 1:29 PM

Answers

  • Hi,

    The Path property takes a query on this form:

    Path:"http://server/site/library/"

    Adding as much as you need for the path part up until library/folder. I have used this recently myself in a migrated solution with content types and it works just fine.

    Thanks,
    Mikael Svenson


    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

    • Proposed as answer by Amir at eWave Sunday, June 16, 2013 10:19 AM
    • Marked as answer by Qiao Wei Saturday, June 22, 2013 10:20 AM
    Saturday, June 15, 2013 7:33 PM
  • Thanks for your help, i did not try it with the path variable. Instead I used a a seperate content source. This works for but not with ContentSource="MyContentSource" but with ContentSource:Content.

    Don't no why the equals doesnt work but with the contains : it works.

    But I ran into a Problem with the Server Name Mappings, that the Edit or View Library Link shows the Crawled Source, but I think this Bug is already discussed.

    • Marked as answer by Qiao Wei Saturday, June 22, 2013 10:20 AM
    Friday, June 21, 2013 9:27 AM

All replies

  • Hi,

    The Path property takes a query on this form:

    Path:"http://server/site/library/"

    Adding as much as you need for the path part up until library/folder. I have used this recently myself in a migrated solution with content types and it works just fine.

    Thanks,
    Mikael Svenson


    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

    • Proposed as answer by Amir at eWave Sunday, June 16, 2013 10:19 AM
    • Marked as answer by Qiao Wei Saturday, June 22, 2013 10:20 AM
    Saturday, June 15, 2013 7:33 PM
  • Thanks for your help, i did not try it with the path variable. Instead I used a a seperate content source. This works for but not with ContentSource="MyContentSource" but with ContentSource:Content.

    Don't no why the equals doesnt work but with the contains : it works.

    But I ran into a Problem with the Server Name Mappings, that the Edit or View Library Link shows the Crawled Source, but I think this Bug is already discussed.

    • Marked as answer by Qiao Wei Saturday, June 22, 2013 10:20 AM
    Friday, June 21, 2013 9:27 AM
  • Hi,

    Glad you sorted it out. The correct delimiter is : not =, so you should always use this for property queries.

    Thanks,
    Mikael Svenson


    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

    Friday, June 21, 2013 11:19 AM