Hot answers tagged

10

Create a list view and set the filter; where date time column is not empty (see below)


5

When you RunWithElevatedPrivileges the executed code runs with Elevated Privileges, and under other Account, usually Application Pool user. If you need to pass user account to the method, insert into a variable before calling the delegate. string userId = Context.CurrentWeb.RootWeb.CurrentUser; (This code is j ...


4

Because you define the web object in the elevated mode, you'll impersonate as a system account. This means you'll always get the same person... Maybe you can store the user before you run the elevated code from SPContext.Current.Web.CurrentUser and use this user inside the elevated code (or in your case properties.Web.CurrentUser) I'm not sure this will work ...


4

You would maybe need to understand how search works prior to developing your own in the 1st place - a fast track video, check here http://www.youtube.com/watch?v=EJIhgL2zRwI. Also there quite a lot of videos on TechNet around search for developers. So, for your case you would need a Search scope (it could be a site collection level) which targets either ...


3

you can use SharePoint web service to do that. Corey Roth have a tutorial about using SharePoint search web service. MSDN also have article to use web service for enterprise search in http://msdn.microsoft.com/en-us/library/ms543175%28v=office.12%29.aspx


3

Different products (if you can call Shared Folder as such). Basically SharePoint Workspace is the new Groove (in Office 2007). The Windows Process is still named Groove if you peek in your processes. Groove Workspaces allow secure collaboration workspaces between partners, with the condition of both have SharePoint workspace running. Otherwise, Shared ...


3

I am not sure whats best but you can use SPQuery (only for reading) as well to get Data out of sharepoint, however if you want someone to look at your code and improve it then I would suggest you try this question on http://codereview.stackexchange.com/ hope it helped ;) Just realized your not disposing your SharePoint objects in code, I would recommend ...


2

Yup, via a FeatureReceiver, call PublishingSite.SetAvailablePageLayouts() http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.publishing.publishingweb.setavailablepagelayouts.aspx


2

The only way for content to be returned by a query is for it to be indexed. The only way for content to be indexed is for it to have been crawled. Hourly incremental crawls are common. If you're concerned about performance you can crawl a WFE that isn't used by end users. If you have so much data that the crawl does introduce a performance issue, you should ...


2

This is NOT possible with Managed Property keyword queries. The only wildcard capability that Sharepoint Search Server 2010 supports is "Stemming". Stemming expects the characters to be matched by the characters at the start of a string in the index. e.g. Item contains Title string "TestMe" You're query can be : Title:"Tes" and that would pick up the ...


2

You can use Refinements to find all the possible values for Managed Properties. Refinements will also include the counts for each Managed Property. Look here for more details on how to configure: http://msdn.microsoft.com/en-us/library/ff394639%28v=office.14%29.aspx


2

I would do the following: priorize the incremental crawl with "high" priorize the new content source with "low" limit the requests to the new site in crawler impact rules start the crawl on friday night and pause it on monday - repeat until you have the main chunk indexed (use powershell to automate) With this the impact should not be that hard.


2

You can check the Fast Search Server Version by In Control Panel, under Programs and Features, click "Microsoft FAST Search Server 2010 for SharePoint" and you will see the version number here as well.Also click on View installed updates to see all installed updates. Fast search server is seprate product then the Sharepoint, So SharePoint patches/Hotfix ...


1

The FAST commandlets are only available on a server which has FS4SP installed. And they are installed during the installation of FS4SP. There's even a management shell which preloads the snap-in.


1

You need to create a new crawler rule with default crawler account if it already has read permission on external websites, if not then you can specify a new crawler rule with a crawler account that has at least read permission on external content your crawler will crawl. Since you getting Access denied error seems like your crawler account doesn't have ...


1

I explored web in order to solve this issue but it seems it is not possible to crawl an external website using SharePoint search that has STS based authentication and don't have Windows authentication enabled. Here are few references: "If you are using claims-based authentication, make sure that that Windows authentication is enabled on any Web applications ...


1

You are reading the user info from an elevated SPWeb istance, so the reported user will be the one used by the application pool - this is why you are getting the "System" user name. Just use properties.Web.CurrentUser. That should give you the non-elevated SPWeb object and thus the real current user.


1

An application page can run pretty much any code you like, in C# or VB (and probably F# too, since it's .NET). I'd suggest you start looking at the documentation for SqlClient. You can find many, many tutorials for using these classes on Google.


1

its not a good practice to directly interface between SharePoint and SQL server, you can look at an alternate option of web services which directly talks to SQL server and later integrate it on the application page


1

I dont know if this is what your looking for but from what i understand you want to do the following? SPWeb web = SPContext.Current.Web; SPList list = web.Lists["MyList"]; SPListItem item = list.Items[0]; item["Title"] = TextBox_Title.Text; item["Name"] = TextBox_Name.Text; item["Address"] = TextBox_Address.Text; item["Age"] = ...


1

Take a look at this post: http://social.technet.microsoft.com/Forums/en-US/sharepointsearch/thread/2c01a3a5-4232-4287-9a14-6e39991bed50 And check if the vti_searchversion property is being updated when you call SPListItem.SystemUpdate(). If not, then it shouldn't be re-crawled as the modified date does not change when using SystemUpdate().


1

If your SharePoint site is using FBA, you can use authentication.asmx webservice to get the authentication cookie. If your site is using Windows, you can directly assign defaultcredentials of logged in user like : proxy.Credentials = System.Net.CredentialCache.DefaultCredentials;


1

If you do a KQL query with title:or* you will see the results you are asking for. You do not need to put the leading wildcard as it does that automatically.


1

Your best approach is to get titles on those weird formats into a separate managed property. Then you can do word searches on that property in FQL with less chance of the query bombing. It's all about term expansion in the search engine core and how many terms would match and how big(slow) will the end query be. The other approach is to create a full text ...


1

Another approach is to create a BCS connector back to your lists. Create the relationship in your external content type. There are attributes on the Association that control what results are returned when a child item is crawled and returned in search. I have used this approach to search child items and return the parent record. As Max indicates you can ...


1

This isn't really possible without having multiple farms each with a separate Search Service Instance. I would suggest you basically split out your 1.5TB of content into a separate farm with a dedicated Search instance. You can even use HOSTS entries on the crawl servers so they have their own local dedicated WFE servers for the crawl process to iterate ...


1

If you want to explore how rank is evaluated for a query check out http://powersearching.wordpress.com/2013/01/25/explain-rank-in-sharepoint-2013-search/ which explains how to access the ExplainRank.aspx page located in the 15 hive.


1

The way you specify a non standard source for your search is by setting the Location property. The DefaultSearchProvider can't be set as it's just a convenience property to easily get the DefaultSearchProvider of the current contexts search application. But the only thing the DefaultSearchProvider property is used for is setting the Location if not ...


1

I have solved this problem: Below is the source of the Javascript attach it with code. src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js" write this all code in the javasrcipt tag $(document).ready(function() { // add change handler $("input[title='Test Value']").change(function() { MasterSelectChange(); ...


1



Only top voted, non community-wiki answers of a minimum length are eligible