I had created a web part on MOSS 2007 which displays a organizational chart by searching (Full Text) the user profiles.
To identify the subordinates of a user, I used to search for users with the particular user in Manager property. The query looked like this:
SELECT AccountName, PreferredName, Manager, WorkEmail FROM scope() WHERE ("SCOPE" = 'People') AND Manager = 'domain\parent_user'
But, the same query does not run in SharePoint 2010 as Manager crawled property does not exists.
So, I created a new crawled property and mapped it to People:Manager(Text) now, the Manager property is always empty.
Even a full crawl after clearing the indexes also not helping.
Can anyone please help me in getting manager information in Full Text Search?
Thanks in advance!
Update: I tried mapping the crawled property with ows_Manager(Text) property also, still the same result.
After struggling a little, I got it working!
The new crawled property mapped to People:Manager(text) started giving values in search result by following the below steps:
Check Indexed checkbox in Manager User Profile property edit page
Reset crawl index
Full crawl again
Related
I am having the same problem as this post: social.msdn.com.
I am aware that they have an answer but I can't seem to understand what they mean.
So I have set up a managed property and then added it to my refinement panel using this code:
<Category Title="Loan Category" Description="Use this filter to restrict results by Loan Category" Type="Microsoft.Office.Server.Search.WebControls.ManagedPropertyFilterGenerator" MetadataThreshold="5" NumberOfFiltersToDisplay="4" MaxNumberOfFilters="20" SortBy="Frequency" SortByForMoreFilters="Name" SortDirection="Descending" SortDirectionForMoreFilters="Ascending" ShowMoreLink="True" MappedProperty="LoanCategory" MoreLinkText="show more" LessLinkText="show fewer" />
However when I do a search it displays all kinds of GUIDs for the categories as well as the categories I am looking for. I am pretty sure this did not happen when I just had this set up in test.
The crawled properties that I have mapped to this managed property are as follows:
Loan Category(Text), ows_Loan_x0020_Category(Text), Loan_x0020_Category(Text)
I originally had "ows_taxId_Loan_x0020_Category(Text)" mapped as well however I removed it after reading this might be the issue. Ran a full crawl and still no luck. I have also reset the search index and run a full crawl.
Any advice would be greatly appreciated.
Here is the link that is being generated by the refinement panel:
<a title="Refine By: #96dbf06d-8bf8-4ec5-971b-36e27fba1f62;Loan Sale:Participation and Servicing Agreement;#4ac5410c-79e9-4a9a-99fb-66592342ed16;#51e388cd-62df-4e50-98b4-01af5f776aea;#04ac5410c-79e9-4a9a-99fb-66592342ed16" class="ms-searchref-filterlink" id="ext-gen151" href="/Search/Pages/results.aspx?k=LoanCategory%3AServicing&r=loancategory%3D%22%2396dbf06d%2D8bf8%2D4ec5%2D971b%2D36e27fba1f62%3BLoan%20Sale%3AParticipation%20and%20Servicing%20Agreement%3B%234ac5410c%2D79e9%2D4a9a%2D99fb%2D66592342ed16%3B%2351e388cd%2D62df%2D4e50%2D98b4%2D01af5f776aea%3B%2304ac5410c%2D79e9%2D4a9a%2D99fb%2D66592342ed16%22">
I determined that the GUIDs were showing in my refinement panel because they were in fact the contents of one of the crawled properties that was mapped to my managed property.
In order to determine which one I created a managed property for each of the crawled properties and added them individually. I then did an search index reset from central administration and re-ran a full crawl.
I found the guid in the database which gave me the heads up. In the database go to your search db and look for the table MSSManagedProperties. Your db name may be different.
Select * from [_SearchDB].[dbo].[MSSManagedProperties]
Get the managed property you want and then do a query on PropertyStore database table MSSDocProps based on the Pid.
Select strVal2 FROM [_SearchDB_PropertyStore].[dbo].[MSSDocProps] where Pid = ?
This gives you an idea of what data you are getting for that managed property.
Can anyone who has used the Sitecore SharePoint connector tell me how it chooses the name for the items it creates in the Sitecore tree?
I am able to map fields and sitecore values (such as __Displayname), but not the tree name.
The problem we face is that the data in SharePoint contains invalid characters that should not be allowed in the tree name.
Thanks in advance!
As far as I can see, SharePoint connector chooses Sitecore item name by iterating through the following SharePoint fields in that very order:
Title
LinkFilename
LinkTitle
NameOrTitle
URL
GUID
ID
If the field is not empty, its value is taken as an item name and the iteration stops. So you can find out where the invalid name comes from in your case. If it's NameOrTitle, for instance, then you can try to put a valid name to, let's say, Title and it should be picked by SharePoint connector.
I've never tried this myself, though. That's what I can judge about looking at the code.
Also, the documentation for SharePoint connector for Sitecore 6 is here.
Moved to Server Fault:
Sharepoint managed Properties
I have a custom Content Type inside a list that has over 30 items, and I have added several "managed properties" to the "crawled properties", in the SSP.
All of them work except 1.
The column "Synopsis" is a multiline field with no limit on it's length. It appears as a crawled property "Synopsis", and is mapped to a managed property 'asynop'.
On the 'Advanced Search Page', it is added as a property and searchable, however it only returns a partial result (if at all). I manually created an entry, ran the crawl and was able to search for it. I edited an existing entry, ran the crawl (full and incremental), and it still only returned the manually entered entry.
If I entered the search term in the Search box directly "synopsis:fatigue", then all the correct results appear.
What the is happening? And could it please stop?
This is a known issue and is dependent on what type of search is executed.
See Steve Currans great answer to this post: http://social.technet.microsoft.com/Forums/nl/sharepointsearch/thread/f3f1d778-796e-4321-9c76-a6ede421a42f
I'm creating a new Sharepoint Site Collection and as a subsite I have a Search Center.
After creating a new Content Search (File Share), I can search this using the Dropdown from the Home Page.
Searching "sharepoint" with Scope "All" : returns 4 items
Searching "sharepoint" with Scope "ISOs and Tools" : returns 2 items
Now I'm trying to configure the Search Center to use this search scope. But everytime I make a search, the results are returned as I had selected the scope "All", that means, 4 items!
How can I configure the Search to go on a specific scope?
Thanks in advance!
If you mean that the default search page in the search center always searches the 'all' scope - well, it does!
If you edit the page you should be able to edit the properties of the search box. In those properties you can append to the search query 'Scope:' and the name of your scope. This scope will show up in your results page's search box, though.
Alternatively, create a new results page. In the search core results web part you can set the scope you're using for the results - it is a miscellaneous property.
You'll then need to edit your search center's home page to point the search box there to your new results page, and to do likewise on the new results page itself.
See http://andrewwburns.com/2009/02/20/search-a-single-list-and-dont-use-the-osssearchresultsaspx-page/
Make sure you have reset/recrawled your content through the shared services admin.
Make sure you are restricting your Scope to the proper content source by adding a "ContentSource" rule in the SiteCollection's search settings
Make sure you have updated your scopes in shared services.
I set up a new scope and passed in the URL for a specific document libary that I created that hold 2 word documents.
For some reason when I start a full crawl, it does not see the 2 word documents.
The word documents have meta data and I've created Managed Properties that map the crawled properties.
I am trying to utilize the Advanced Search webpart to be able to search from this scope. When I enter a search term such as the filename of the word document, no results are returned.
Any ideas?
You need to enable the document library to be searchable. Enable it through the document libraries properties.
Edit
See Harnessing Properties in SharePoint Search
To get to the Document Library Advanced Settings page, from within a given library, select the Document Library Settings menu item from the Settings dropdown, and then select the Advanced settings hyperlink under the General Settings header. Somewhere in there, you should see something like the following image. Make sure that the radio button is set to Yes. Source
(source: bamboosolutions.com)
What account is the crawler running as? Maybe that account doesn't have read permission on the list, so it can't index it.
Can you find information from the same documents in other document libraries, when using the default search scope?
Can you find information from this document library using the default search scope?
Are you trying to create a custom search results page, or just scope?
One thing to try is to check the search crawl log to see if there were any errors when it was searching the library.