Query anonymous using Content Search Web Part

I'm using the Content Serach Web Part in a template with public access, trying to query list data. It works fine when logged in, but as an anonymous user I get an error with correlation-id 000000000000-0000-0000-0000-000000000000. I do have anonymous
access to the list data I query. Also I have added ViewFormPages to the AnonymousPermMask property as suggested, but with no luck.
Anyone know how to search anonymous using the Content Serach Web Part, please share! Thanks in advance.

http://social.msdn.microsoft.com/Forums/sharepoint/en-US/09a40222-36a4-472d-a9b8-28436ff3b78d/content-by-search-web-part-not-working-properly-for-anonymous-user?forum=sharepointdevelopment
Please try to break inheritance permission for the anonymous users, and add ‘View Application Pages’ permission for them, it seems that the permission for anonymous users is moved by the lockdown feature, you can use the following PowerShell Script to change
this:
$web = get-spweb "http://yoursiteurl/subweb/subsubweb"
$list = $web.Lists["ListName"]
$list.BreakRoleInheritance($true)
$list.AnonymousPermMask = $list.AnonymousPermMask -bor ([int][Microsoft.SharePoint.SPBasePermissions]::ViewFormPages) #binary or adding the permissions
$list.Update()
More information, How to Make List Items Visible to Anonymous Users (in Search):
http://soerennielsen.wordpress.com/2012/05/29/how-to-make-list-items-visible-to-anonymous-users-in-search/
http://www.mavention.com/blog/anonymous-search-results-cache-sharepoint-2013-public-websites
<a:KeyValueOfstringanyType>
  <a:Key>TryCache</a:Key>
  <a:Value i:type="b:boolean"
xmlns:b="http://www.w3.org/2001/XMLSchema">true</a:Value>
</a:KeyValueOfstringanyType>
http://magenic.com/BlogArchive/SharePoint2013ContentSearchWebPartsCatalogs
http://blog.mastykarz.nl/inconvenient-anonymous-search-results-cache-user-segments/
If this helped you resolve your issue, please mark it Answered

Similar Messages

  • Using Content search web part to retrieve items from another site collection

    I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
    -http://applicationname/teamsite
    -http://applicationname/enterprisewiki
    Now I need to display the latest 10 wiki pages from the enterprise wiki site collection(according to the modified date) inside the team site. So I read that using Content search web part allow for cross-site content query. Currently I added a new content
    search web part , inside my team site, and I click on “change query” button. But I am not sure how I can reference the enterprise wiki site collection's wiki page library and to specify that I need to get the latest 10 wiki pages , inside the following dialog:-
    Basically this setting partially worked for me, I provide the following settings inside the “Build Your Query” dialog:-
    From the “Select a Query” I defined the following:- “items matching content type(system).”
    Restrict by app : “Do not restrict results by app”
    Restrict by content type “Enterprise Wiki Page”.
    This showed all the sites, lists and even pages are based on the “Enterprise Wiki Page” content type. But I am facing these three problems:-
    1. The above setting showed only the sites,lists and pages matching the “Enterprise Wiki Page” content type, that exists on another web application, and not that exists inside the current web application.
    2. To test the web part , I got the following results, But I was not able to add additional info for the items such as created by, modified by ,etc.
    3.  Also there is no way to sort the wiki pages by the modified date, as in the Sorting tab inside the “Build Your query” dialog I cannot find the “modified” inside the Soft by list
    So can anyone advice how to fix these three problems

    Hi,
    1. In "Build Your Query" dialog, we can select "Specify a URL" in
    Restrict by app and enter another site URL.
    2. If you want to add more information for the items, we need customize the display template, the following link for your reference:
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx
    3. In the Sorting tab, we can use "LastModifiedTime" to instead of "Modified".
    Best Regards 
    Dennis Guo
    TechNet Community Support

  • How to retrive latest items from different site collection using content search web part

    I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
    -http://applicationname/teamsite
    -http://applicationname/enterprisewik
    Now I need to display the latest 10 wiki pages that are inside the enterprise wiki site collection (according to the modified date) inside the team site. So I read that using Content search web part allows for cross-site content query.
    So I added a new content search web part , inside my team site, and I click on “change query” button. But I am not sure how I can reference the enterprise wiki site collection's library and to specify that I need to get the latest 10 wiki pages using the
    content search web part's query dialog box? Can anyone advice please ?
    Thanks

    Edit the webpart and click change query in search criteria.  click on switch to advanced mode and enter your path:
    (path:"http://applicationname/teamsite" OR path:"http://applicationname/enterprisewik")
    you can specify sorting by created date and click ok.  in number of items to show, type 10.  this should fulfill your requirement.
    For further reading, here are some links:
    http://office.microsoft.com/en-001/office365-sharepoint-online-enterprise-help/configure-a-content-search-web-part-in-sharepoint-HA104119042.aspx
    http://blogs.technet.com/b/tothesharepoint/archive/2013/04/30/stage-9-configure-the-
    query-in-a-content-search-web-part-on-a-category-page.aspx
    http://blogs.technet.com/b/tothesharepoint/archive/2013/05/23/stage-10-configure-the-query-in-a-content-search-web-part-on-a-catalog-item-page.aspx
    kashif

  • Cannot retrieve data from PublishingPageContentOWSHTML in a Content Search Web Part

    I tried to display the content of a page using Content Search Web Part, the page is stored in a Pages library and the content type is Article Page.  When the data is retrieved in the Content Search Web Part, the page content mapping to PublishingPageContentOWSHTML
    is empty, although other data, such as Title and Page Image, can be retrieved.  It's very strange that I can do this work correctly for another CSWP web part, that page is stored in a Pages library in another subsite.  Both of the CSWP web parts
    are on the same publishing site.
    Could everybody tell me what I was doing wrong?   Thanks you very much in advance.
    Newbie to SharePoint.

    Hi Albert GSC, I had the same problem. I'm starting now with display templates and after including "'SecondaryFileExtension','ContentTypeId'" at the end of the mso:ManagedPropertyMapping section it worked.
    For example, my mso:ManagedPropertyMapping section was (PublishingPageContentOWSHTML returns empty):
    <mso:ManagedPropertyMapping msdt:dt="string">
    'Picture URL'{URL de la imagen}:'PublishingImage;PictureURL;PictureThumbnailURL',
    'Link URL'{Dirección URL del vínculo}:'Path',
    'Line 1':'ArticleStartDateOWSDATE',
    'Line 2':'Title',
    'Line 3':'PublishingPageContentOWSHTML'
    </mso:ManagedPropertyMapping>
    Then I included "'SecondaryFileExtension','ContentTypeId'" (PublishingPageContentOWSHTML returns its value):
    <mso:ManagedPropertyMapping msdt:dt="string">
    'Picture URL'{URL de la imagen}:'PublishingImage;PictureURL;PictureThumbnailURL',
    'Link URL'{Dirección URL del vínculo}:'Path',
    'Line 1':'ArticleStartDateOWSDATE',
    'Line 2':'Title',
    'Line 3':'PublishingPageContentOWSHTML',
    'SecondaryFileExtension','ContentTypeId'
    </mso:ManagedPropertyMapping>
    Still don't understand why but I'm looking for the reason, until then hope it helps

  • Sharepoint 2013 :Content Search Web part Property Filter By Query String - How to use ?

    Hi,
    I would like to filter data that is displayed in content search web part  by using  URL.
    I tried to use Value of a parameter from a URL - Query String.Parameter1
    But have no idea how to use it.
    Can someone help me pleas ?

    duplicate thread
    http://social.msdn.microsoft.com/Forums/en-US/f9fef155-1aa3-43b5-b285-5eae5d036b8d/content-search-webpart-property-filter-by-query-string-how-to-use-?forum=sharepointgeneral
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Content Search web part query

    HI,
    I am struggling to apply filters for one of my query scenario
    1. I have multiple Site Collections http://RootWeb/Sites/Jobs,
    http://RootWeb/Sites/Job1 Etc
        Each site collection has a list with data. One of the column in those lists is Division (Values may be Division 1, Division 2 Etc)
    2. I have another Site Collection http://RootWeb/Sites/Division1
        I am adding a content search web part to display information related to all Job's from Job's list based on Division Site I aam browsing.
    My Issue is I have another application with similar structure.
    How to filter my data so it returnes results data only from my current web app site collection and not another web app site collection?
    kesari suresh

    Hi kesari,
    According to your description, my understanding is that you want to display data only from one site collection in Content Search web part.
    For your issue, you can create a Result Source for the site collection using the query "Path:<URL of the site collection>". The result source only query the date from the site collection. Then you can use the Result Source in the
    Content Search web part, and apply some queries.
    About creating a Result Source, please refer to the link:
    http://technet.microsoft.com/en-us/library/jj683115(v=office.15).aspx
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Use a Content Search Web Part to Display a Picture

    Hello -
    Is there a way to use the Content Search Web Part to display the most recently added picture to a specified application?
    Please let me know if you need additional information to answer this question.
    Thanks,
    Jordan

    Hello Jordan,
    I believe you could do this :
    filetype:jpg OR filetype:png OR  (and so on for all
    images types)
    AND path:"http://yoursite/youlibrary"
    Regards
    Samuel
    Sharepointerie.com

  • Content Search Web Part displaying wrong Results for anonymous Users.

    HI Forum Group,
    I am getting Wrong results for my content search web part. The requirement is to show the News Description for the selected news item.
    I have a catalog site which stores News like 
    News1
    News2
    News3
    as Items. and i have connected this catalog in publishing site which is anonymous. In the publishing site created one page "News.aspx"added search results webpart which shows all the news item. Added one page "Description.aspx" to show
    description to show the selected news item.
    When ever user selects any news from news.aspx page it will redirected to description.aspx with the selected item ID
    The "Description.aspx" the search results page gets the data based on the URL by QueryString parameter as shown below
    The problem is, if i multiple items to open in tabs all the items are showing the data same as the first selected item, though the article ID is different.
    Thanks
    Sithender

    Hi,
    Thank you for your feedback on how you were successful in resolving this issue.
    Your solution will benefit many other users, and we really value having you as a Microsoft customer.
    Have a nice day!
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Using term set as refiner in content search web part does not show all used terms

    When you create a terms set (12 terms with +/- 10-20 child terms) , attach it to a site column and allow multiple values to be selected the search service does not find all used values in the REFINERS tab of the content search web part.
    Example:
    Field ‘Tags’ is the term set which can be refined. We want to do this in the REFINERS tab of the content search web part.
    Tags is containing following fields:
    •Course document
    •Poster
    •ALS
    •Before
    •During
    •CPR/AED I
    In all libraries we used +/- 15 different tags already.
    Example of a tag field in the library:   "Poster;ALS;Belgium"
    The problem is we can’t see all of the used tags in the refiners tab when you open it for the first time.  (You can see Belgium or Cyprus is not in the list of tags.)
    When you select one tag and add it as a refiner, the others eventually do show up. But never all of them together.   It’s like he is only showing the most used (and maybe first selected?) tags first. I also think he might be having some trouble
    with multi value selections in the tag field.
     Does anyone else have the same issue as we do? And is there a solution already?

    Hi Sasha,
    According to your description, my understanding is that all the used terms cannot display in the Refiners in Content Search web part.
    If the results display in the Search Result Preview, then the terms used in these results can be displayed in the Refiners tab.
    I tested the same scenario per your post, and when I first opened it I can view all the terms which were used in the search results listed under owsmetadatafacetinfo.
    I recommend to do a full crawl and then you can view all the terms used in the search results are displayed under owsmetadatafacetinfo.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Content Search web part

    Hi
    Is it possible to filter the CSWP by "Value available in documents".
    We are trying to get all excel document which contains text "C:\Documents and Settings".
    Thanks in advance,
    Hazeq.

    Hi,
    You can add the following query text in the Content Search web part which will show all Excel files with
    phrase "Documents and Settings".
    (FileExtension:xls OR FileExtension:xlsx) (IsDocument:"True" OR contentclass:"STS_ListItem") "Documents and Settings"
    The reason why we cannot use "C:\Documents and Settings" is because by default most punctuation marks will be ignored when the content get indexed by
    Word Breaker. Therefore, there is not a phrase named "C:\Documents and Settings" existed in index file. A workaround is to use "Documents and Settings" phrase.
    Miles LI TechNet Community Support

  • Content Search Web Part Has No Results

    Hello,
    I have been working on a site for a few weeks now and have been trying to make a simple Image Slider. I have found many tutorials and all are helpful -- except I get stuck at the same part every time. I am trying to use a Content Search Web Part in order
    to pull images from a library/list and display them. I go through almost the same instructions every time but my query never shows any results.
    I have went in to 'Change Query' and set the following:
    Select a query: Pictures (System)
    Restrict By App: Specify a URL --> Then changed to mysite/myimagelibrary
    I have tried a few things. I have changed the Result Source to multiple different things, including the default 'Recently Changed Items.' I have also tried to put the images in a list rather than a Picture Library. I have also tried MANY different ways of
    putting in the 'specific URL.'
    I don't know why I can't seem to get results from my query. Any help or suggestions would be appreciated. Thank you.

    Hi,According to your post, my understanding is that you used a Content Search Web part to search images from a library/list , it didn’t display any
    Results.
    Please check which content type you used for these images . Maybe its content type is document rather than picture. Please make sure your images’ content type is picture.
    You can go in to 'Change Query' and set the following:
    Select a query: Items matching a content type(System)
    Restrict by App: Current site
    Restrict by content type: Picture
    As you have mentioned in your description “Specify a URL --> Then changed to mysite/myimagelibrary”.
    Here is a similar issue, you can use as a reference:
    http://social.technet.microsoft.com/forums/sharepoint/en-US/4a683be5-354d-4497-88da-672dd6335358/content-by-search-web-part-shows-no-results
    If the issue still exists, please feel free to let me know.
    Best Regards,
    Lisa Chen

  • Content Search Web Part and Managed Property

    Do I have to have cross-site collection publishing feature turned on for the Content Search Web Part to show a managed property?
    I have a list and a column in that list called Colors. I created a managed property out of the crawled property for Colors column. On a page within the same site-collection, I added a content search web part (displays items from the earlier list) and
    trying to display the managed property for Colors to show up for each of the items. For some reason, Colors value is not being displayed for the items.
    Any ideas?

    Thanks, Peter, appreciated. Here is my problem:
    I created a site column and added it to the list. Added an item that has a value for this site column. System automatically generated a crawled property for the site column and also a managed property. Do I still have to perform step # 5 from above?
    Now when I go into the content search web part and change the query to use this managed property as a refiner, it does not work.
    I will try the debugging as you suggested.
    In the meanwhile, Please let me know if you know of anything wrong I am doing.
    UPDATE: I debugged it using IE Dev. Toolbar and the value for that managed property is being returned as null. What could be going wrong? How can I further troubleshoot this problem?

  • Content Search web part Customization with Tabs

    Hi,
    I'm customizing a Content Search web part. I need to create dynamic tabs on it based on the values of a retrieved specific column. Do you have idea on how to retrieve all the values all at once, so that I can format the tabs itself? Because right now, I
    can only get one list item at a time by using ctx.CurrentItem. Thanks. :)
    Regards,
    Napster

    You can make a REST call with groupby query on the specific column to get distinct values.
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • Latency in upload of content search web part

    Hi,
    We have a customer who use sharepoint which is adjasted to mobile, and it seems that when user access in vpn or mobile  - it takes too much time till web parts are loaded. These are Content Search web parts that display pictures.
    Is there any setting to do so the web part will load even if shows nothing and then execute the query and show the items( pictures)?
    If blob cache is executed  - it solve the latency but then there is another problem: it shows a part of a picture
    keren tsur

    Hi,
    You can add the query parameter in the content search web part as shown in the below screenshot.  "MyParameter1" is the parameter you will be passing from the URL.
    Please mark it answered, if your problem resolved.

  • Office 365 - content search web part

    Hi,
    I have an office 365 site, and in one of the page, i had added 4 Content search web parts each of it having its own custom display templates.
    Now, the problem is when the page is browsed (intermittent) or edited (always), the CSWP's throwing error as 'Sorry, something went wrong'. And I found that, the corresponding .js files are not getting loaded, including the language script, because of which
    we are getting this error.
    Please assist.
    Thanks
    Senthu

    Hi Senthu,
    This error occurs may be due to the display template has not been published as a major version.
    Please go to the Master pages and page layouts in site settings > Display Templates > Content Web Parts > find the html file of the display templates used in your content search web part and then click the triangle and select Publish a Major Version.
    Reference:
    http://blogs.msdn.com/b/kaushalendra/archive/2013/08/16/sorry-something-went-wrong-in-content-by-search-web-part-for-some-users.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for