.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How can I prioritise search results to show where document metadata has a hit first and then where t

Posted By:      Posted Date: August 26, 2010    Points: 0   Category :SharePoint

When my users run a search against a site with a bunch of document libraries they will often search for terms that are in the title of the doc, if they do know the title they will put that in. What I would like to do is have the results ordered such that if any hits are on the document metadata (eg Title) then they are presented first and any results that are from hits on the content of the documents are presented later.

So, if they get the title spot on in their search query that document will appear first .... if they don't get it right then the likelyhood is that the title is something like what they entered so similar titled docs are presented first and then those with matching content ....

How can I achieve this?


View Complete Post

More Related Resource Links

Search Results Customization - Display Document LibraryTitle Instead of Document Metadata Title

I am running a pretty basic SharePoint 2010 setup that is being used as an intranet for my organization.  This also includes service up internal documents to our users.  Currently, our documents are displayed on various pages using the CQWP and are organized by title as dictated by the document library title.  As part of the search capabilities of this site, I have implemented a basic search page to return results on the documents from this list.  The problem I am running into is that the search results are displaying results based on the metadata title of the actual document instead of the assigned document library title. My questions are this: How do I change the search results so they display based on the document library title? How do I view what columns are currently being crawled by the search capabilities? Thanks in advance for any help you might be able to provide!

Search results doesn't show Word document Title Properties


The search result doesn't show the Word document's Title properties.

For example a Office 2007 Word document has Title properties as "Dell, Template (MN 520287) Test Method", the first word in the document is "Opearation".

The Search result shows the search result with the first word of the document as the search result as

The test sample plan is an general inspection for a normal inspection with a … http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100 … Authors: James Wolf Date: 9/29/2010 Size: 169KB
http://mycorp.company.com/Document Library/MN-0330.00 bala (MN 520287) Test Method.docx

instead of

Dell, Template (MN 520287) Test Method
The test sample plan is an general inspection for a normal inspection with a … http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100 … Authors: James Wolf Date: 9/29/2010 Size: 169KB
http://mycorp.company.com/Document Library/MN-0330.00 bala (WN 11100) Test Method.docx 

Why does the Search Results show the wrong Title?

All my documents have the Title property set, yet when I perform a search, the result result is displaying the first word it finds in the documnet as the Title? For example I have many documents all with unique Titles, yet each of the results show "PROFILE" as the Title of the document because it is the first word in the document..... PROFILE end and the middle tier of the application using C#, ASP.NET, WCF and SQL Server backend. … and facial recognition technologies using C#.NET for Microsoft .NET framework 1.1 and 2.0. … Authors: Brian Shome Date: 8/12/2010 Size: 111KB PROFILE The application was developed using ASP.NET 2.0, C#.NET and SQL Server 2005 served as the … to the end user. He used VS.NET 1.1, C#.NET 1.1 with Microsoft SQL Server 2000 and Oracle … Authors: John Doe, Jxibbons Date: 8/12/2010 Size: 117KB PROFILE The technologies used for the application are C# 2.0, ASP.Net 2.0 and SQL Server 2000. … developed this application using ASP.Net and C# and the backend comprised of both Oracle and … Authors: Paul Scot, Gen Gotti Date: 8/12/2010 Size: 110KB

Make Document Content Types visible in search results

How do I make the document content type show in the search results? so when I search for something I get back the content type along with the usual title, summary, urls, size etc. thx    

Search results are not displaying the results related to a particular document library


While using the search box in a site, the search results are not displaying the results related to a particular document library.

What is the reason for this? How can this be solved?

filter search results to specific document library


Hi all.  I have a sharepoint 2007 subsite, which is a small part of a large corporate sharepoint 2007 system.  I only have admin rights on my chunk.

I would like to limit a search to a specific document library within my subsite, and further would like the search results to return additional non-standard meta-data from this library.

Is this something that I can do without creating a new search scope? 

documents didn't show up in search results


Hi all,

i'm facing the following problem with a moss 2007 server:

lets say i have a document library with about 20 xlsx and xls files. All are named similiar like "YZ travelexpensereport ...".

When i search for "the exact phrase" "YZ travelexpensereport" the search results only give me one result instead of all the other files.

When i use the "all of these words"-search i still find the same file -beside some other files. But still the other 19 documents didn't show off in the search results. It's always the same file that show off.

I checked the crawl logs and all of the 20 files were crawled successfully.

Now to the funny part: when i search any of the other 19 documents with the full filename i can find it - which seems logical since it is crawled successfully.

Any ideas are appreciated !

WSS 3.0 - How can I get a document ID in Search Results.aspx page.



Does anyone know how I can get the ID of a document in the SearchResults.aspx page?

I have got javascript code in this page to update the link of the icon to edit the document as opposed to viewing it (Need Document ID though).

There must be a way to do this using server side code??????

Your help would be most welcome.




Search in SharePoint 2010 does not show results for all users other than the timer service account


I have setup a new SharePoint 2010 setup. Created Search Service application and configured. Confirmed that the crawl went fine without any error for both Local site and a file share. In the Search application i confirmed that the All Site scope shows 3890 items.

ISSUE: If any of the user [including site collection administrator] browses the site and try to search something it does NOT show result [No error either it says We did not find any results for .....]. All Site scopes does not show 3890 items but only 28.

But if the timer service account [system account] logs in the site and does the search it works fine.With this account loggd in if i check the All Site scopes i do see 3890 items.

This does seems to be some thing to do with the permission, but i am not able to get hint where the mistake is.

I have done the follow till now.

> I checked the application association is correct
> Created a new web application and confirmed that the issue exists there as well
> Checked ULS log but dont see any error related to this.
> No relavent event id in Application event viewer

Please help

Regards Ram

Have search results display the filename of a word doc, instead of the Title Metadata


Im currently implementing a campus wide search service, based on MOSS 2007. It obviously indexes a lot of Word documents.

If the word document has no value in its 'Title' metadata (properties of the document) then the filename is displayed in the search results page, and if a title value is present then this is shown instead. However, whoever created our word templates put the value SU_REPORT into the title value of the template and so ALL of our documents now have this in (yes stupid i know!) Nobody every changes these, so we have a lot of docs that when displayed in the search results show a meaningless name of SU_REPORT

So my question is, can  i modify the behaviour of search so that if the title is blank OR the title = "SU_report" then the filename is displayed instead?

I'm guessing that this is done either via the XSLT to control the display in the Core Results WebPart, or maybe it can be done at the metadata level by disconnecting the title property (i'd rather not do this because it is very occasionally useful!)

Any advice greatfully receieved

James Watts

Search in MOSS2007 does not show any results only for my user for 5 days already


Hi, everyone,

Search works properly for another user, who is also administrator. And I am trying to figure out this mystery: I was added to the SharePoint team site a week ago, so far 5 days I am an administrator. Crawler should update at least on a daily basis, as far as I understand. Unfortunately, I am not an enterprise administrator, so I need to list possible causes of an issue and forward them to her, if it is her responsibility. The issue persists with all browsers and was experienced on different computers.

Any advice for further digging will be highly appreciated.

Best, Ivan

How to display a count of search results with keywords in a label?


Sorry for a basic post here; I am very new to VB!

I am currently building a search page, which includes a textbox and two drop-down lists, a search button, and a datagrid. If results are found and displayed, I would like a label to display:

(e.g.) "24 results found for 'blue sky clouds' "

...where the integer represents the results count, and the keywords and/or drop-down list selections are included in the string.

If no results are found I would like the label to display:

(e.g.) "No results were found that match your selection. Please try again"

I would also like the label to be invisible until a search occurs.

Thanks in advance!

SharePoint Security: Trim SharePoint Search Results for Better Security


SharePoint search may return too much information, causing data security problems. Learn how to use the custom security trimmer to ensure users see only the documents they have permission to view.

Ashley Elenjickal, Pooja Harjani

MSDN Magazine July 2010

Office Development: Manage Metadata with Document Information Panels


Here the author uses Document Information Panels in the Microsoft 2007 Office system to manipulate metadata from Office docs for better discovery and management.

Ashish Ghoda

MSDN Magazine April 2008

Full text search in a Word document



  I´m currently programming a web search application in ASP.Net and having problem with full text searching. My requirements are:

1. Save a byte array from SQL server to word document as a temp file in a server side?

2. How to highlight the string I am currently searching in the Word document and return to the user the sentence with the highlighted string (like on Bing or any other search engines)? Is it possible to fullfill this requirement with full-text search integrated in SQL Server 2008?

Thanks in advance,




Search result show unauthorized Files Share


Hi All,

I configured a FileShare content source, the crawl about this source works very fine, but when a end user perform a search on it ,he can show into the search result files that are no access on the file server, but when he click on it of  course he received an access is denied.

How I can filter the search result about FileShare content source to see only files with authorized access?

Thank you for your help,





No Results matching your search were found. WSS 3.0


I've got one sharepoint 3.0 site, which is a hostNamedSiteCollection which won't return any results when we search it - searching the entire site or a single list both produce the same "no results matching your search were found".
The site uses Windows Authentication.  We have no Alternate Access Mappings set up. It is regular HTTP
I've added test content to other sites housed in the same Web Application and searched - that new data is appearing in the results.
I did a backup using STSADM and restored the site to my dev server (as both a hostNamedSiteCollection & a regular site collection) - searches return results just fine.
I deleted the site from the prod server and restored it (into a different content database even!) from a backup  I made with STSADM - no results are returned.
I restored the site to the same web application as a Standard site (http://webapp/sites/sitename) (NOT a host named site collection) and results ARE returned.

I've looked at the trace logs & application logs on the server, but can't find any errors that I can tell might be related..

This is the only site I've ever seen have this problem.  We have plenty of other hostNamedSiteCollections and search is working fine on them.


ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend