Monday, 18 August 2014

SharePoint hosted ,Auto hosted, Provider hosted apps in SharePoint 2013


 App Hosting Options in SharePoint 2013:



  1. SharePoint Hosted Apps:


  • These types of apps are hosted on SharePoint itself. All code runs on SharePoint server.
  • SharePoint-hosted apps for SharePoint are installed on a SharePoint 2013 website, called the host web, and that have their resources hosted on an isolated sub site of a host web, called the app web 
  • No server side code is allowed. Only JavaScript and HTML code can be written for logic and User interface. 
  • Java script library for SharePoint (JSOM) can be used to access SharePoint lists, libraries etc. 
  • SharePoint hosted Apps are always scoped at web level and cannot exchange information with other apps.


 2.   Cloud Hosted Apps:
  • Cloud hosted apps are hosted on other servers such as IIS, windows azure etc. so In cloud hosted apps code runs outside SharePoint ,infrastructure chosen by you(either windows azure or some other server). 
  • We can write server side code in cloud hosted Apps. 
  • Cloud hosted Apps can be of two types:-
 Provider hosted apps:- 

  • In Provider Hosted app we have choice of infrastructure to host our app such as IIS websites, or third party cloud or non-Microsoft technologies as well.
  • Dedicated server/hosting service is needed to host our app, so we have full control over it.
  • Every time user installs an app, each request goes to same site on server which has hosted the app.
  • Developer is responsible for Multitenancy. 

Auto Hosted apps:- 

  • In Auto Hosted, app is hosted on windows azure site automatically. 
  • Multitenancy is provided by default.
  • Every time user installs an app, web (Windows azure web site) and SQL azure components are provisioned automatically which handles load balancing, multi-tenancy tasks.




Thursday, 7 August 2014

Difference between content search web part and content query WebPart

Content Search Web Part is new in SharePoint 2013.

Following are the major differences between Content Search Web Part and Content Query Web Part.

Content Search Web Part
Content Query Web Part
Returns result  from search index of indexed content
Returns result from non-indexed content  as well as indexed content
Returns result from the latest crawl, so if crawling is not done frequently, search result might not be latest
Use content query web part to get fresh and latest result
Since search crawls the major version of content , search result from minor version of content is not returned
Content query web part returns result from minor version of content also
If site is marked as “not to be indexed” by site administrator ,result in content search web part will not appear
Use content query web part to search non- indexed content result
Content search web part can be configured to access data from anywhere within SharePoint
Content query web part can show result from within the site collection