.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 do I search for part of a keyword?

Posted By:      Posted Date: September 27, 2010    Points: 0   Category :SharePoint

I am using the sharepoint search and I am not able to search for a part of the keyword.
EX: Word in database - Sample
Search keyword "sam" should return all the documents which have this word in them like "Sample".

But this is not happening. Could you please let me know with some example code for this?

I even saw http://msdn.microsoft.com/en-us/library/ms467796.aspx
for the prefix and nothing much info present.


View Complete Post

More Related Resource Links

MS SQL Server: Search All Tables, Columns & Rows For Data or Keyword Query

If you need to search your entire database for specific data, this query will come in handy.

So when a client needs a custom report or some sort of custom development using Great Plains, most of the time I will have to track down the data in the system by running this query and find the table(s) it is in.

search textbox with search keyword inside?



how to make a search txtbox that includes the search keyword and when the user clicks the search keyword disappears

thanks for the help

Pass the server variable to search core result web part


I'd like to custom the search core result web part to filter results based on the log on user name.

It can easily be done in Dataview web part.

However the search core web part doesn't accept "<parameterbining>" to pass in the server variable [logon_user]. I can't figure out how to use <xsl:param> to get this server variable either.


Any ideas? Thanks a lot!

If you get confused, listen to the music play...

Search Results Web part not showing all results

Hello, I have an issue with the people search results web part not showing all the results that exist for a particular query. The query in question returns 106 results, and it is showing 50 per page, but the paging bar only goes up to page 2, and the results summary says it is showing "x of 100 results". If I manually change the query string to say start=61 instead of start=51 for page 2, it will show me the last 6 people, and the search summary will say "showing 57-106" Why is it not showing me the option for a page 2? When I perform a similar query that returns 140 results, it will show me all three pages correctly. I have tried turning duplicate trimming off but it makes no difference either. Any ideas why this is happening? Thank you

Date format in Search Core Result web part

Hi, I have two Site Columns PublishedDate and GlobalTitle. They have datetime and string type. These site columns are added to the Custom List. I need to show these columns in Search Core Result web part when item is searched. Because of this reason I created them as Site columns and Mapped with crawl property in SSP. After doing full crawl I can access both site columns in Search core Result. GlobalTitle is displayed properly but problem is with PublishedDate. It shows System.DateTime[] only. Can any one help me to show this in any of the date format but not like System.DateTime[]. Many Thanks in advance Chirantan

Adding logic to the Search Core Results web part - Manipulation in code or XSL?

Hi,I need to manipulate the search core results web part, so that:- It will display a check box for each result- It Will have an additional button. When clicking on this button the checked results should be copied to a grid view.Do you have any idea how it can be done?I am not sure what is the correct way to do it – in the client side via the XSL Editor or in the server side with the C# code.Thank you so much for your help,Regards,SP beginner.

People Search Results - Where do property/headings in the core results web part come from?

Hi there, I'm hoping this will be a nice simple thing to fix! We're running SharePoint 2010 Enterprise, using the Enterprise Search. In my User Profiles Service Application, I changed the display name of one of the User Properties. It it the SPS-Responsibility property. The out of the box display name is Ask Me About. The only issue is that in the people search results, the SPS-Responsibilty display name still shows as Ask Me About, not my new display name. This link shows this in a screenshot  I've tried various things such as resetting the index, running full crawls again etc. Could anyone let me know where this text is coming from? Thanks! Al

Search Core Result Web Part

Is it possible to render search results in "Search Core Result" web part with result getting from code accessing Search API rather than using the result set from OOTB?


Keyword Search [me] ?


When performing a Keyword Query - in this instance within a Core Results Web Part Fixed Keyword Query - how to specify the current user?

e.g.  rather than


how can you achieve the equivalent of:


Of course I could create a Web part and inherit the from CoreResultsWebPart, but I'm surprised this isn't possible natively?


keyword search doesn't return any results



Can anybody please help me with the whole issue of keywords definition?

Here is what I've got and do:

Sharepoint 2010 server and FAST Search server for Sharepoint 2010

I create site collection "A" using FAST Search center template

I enable SharePoint Server Enterprise Site Collection Features

In FAST Search Keywords section I define a keyword "M

keyword search - anyone got code or know where I can find it, tips ?


I need to search some records for one or more keywords ( user entered) and then display them in order of matching i.e. at the top all 3 keywords, at the bottom, just one keyword found.

Before I do this.... has anyone done it before ?

I was going to go through each sql record and search for the words, presume that best way ?

Multi-select Refinement Search Web part


Hi Everybody,

i want to create a SharePoint 2010 Search Center with Refinement Panel Web part. but instead of single select keyword, we need to create a multi-select refinement web part. can anybody provide a solution for this ???

Multi-select Refinement Search Web part


Hi Everybody,

i want to create a SharePoint 2010 Search Center with Refinement Panel Web part. but instead of single select keyword, we need to create a multi-select refinement web part. can anybody provide a solution for this ???

Custom Properties in Advanced Search Web Part - a bug??



we are trying to configure the advanced search web part and add some custom properties. Those properties are of type managed metadata.

We saw the following sample:


When try to use the web part, for example by add the property "product" and then search "when [product]="valueA",

we get not only results where the item has a property "product=valueA",

but also any item where in its body (full text) there is "valueA".

This behavior doesn't occur when searching non-custom property (for example "author=keren").

Is that a bug or are we missing something in the customization?

thanks a lot!



keren tsur

Creating a custom search Web Part to Search the Document Libraries only with in a site and its subsi



I am trying to write a code for a custom search which will search only the Document Libraries and Display the results.

I thought of using CAML for this but i am not able to send the search word from a textbox to a CAML query.

this is my code


void ExecuteKeywordQuery(string querytext)



SPSite site = SPContext.Current.Site;


SPWebCollection webs = site.AllWebs;


Advanced Search Web Part in 2010 does not seem to handle scopes properly


I have configured a page in SP2010 with an advanced scope web part.

I have enabled the scope picker from the "advanced search" scope group and adding a new scope to that group in the site collection settings.

The advanced search web part is targetted to a new results page containing the core results web part.

When I perform a search for string test using one of the scopes that I have selected the results page is called as follows.


No results are rendered.

What I don't quite understand is I thought that the querystring should actually be.


Which when entered manually works.

So it sort of seems that the advanced search web part is rendering the wrong querystring!!

The search centre is enterprise template (not fast) and sharepoint server search is configured not fast search.


Search Result web part generate "Scope in your query does not exist."


Dears ;

Could any one help me to sove the problem with search query in Moss 2007

before two days the search was working smoothly but we extend our farm and we add new server to be as indexing server

i modifed the search settings to the

  • application server will be the indexing server and will crawl the contents
  • web front will run the search query service

and i started full crawl

when i tried to search by simple box search it gives me Scope in your query does not exist

and when search by adnced search web part its working fine

and after many investigations i found that my simple search works fine when i desplay the drop down list of scops

e.g http://www.x.com/advanceSearch/results.aspx?k=%cat%86&s=All%20Sites 

but when i hide the drop down list of scops my query which generated is


and i would like to hide the scops drop down list for design target and the search sould work

Could any one tell me where the problem ?


thank you



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