SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem where a SharePoint 2010 keyword search executed from the UI, and a keyword search executed using Object Model returns two different set of results.

I want to know whether the OOTB search pads some extra filter conditions to the search query causing the differences in search results

Is there any way to check this?

Is there any way to 'profile' the search queries like you would profile a SQL query so that we can understand the differences in the query results?

share|improve this question
yes, possible, see my answer below. – Ashish Patel Jul 20 '11 at 3:13

You can see a little by checking the URL:


Even though is it not like profiling a SQL query it might make some things (like unwanted refinements) visible.

share|improve this answer

Yes, it is possible. Check Know CAML Queries executed by SharePoint server–CAML Profiling

INstead of Monitoring category you would have to watch "query" category under "SharePoint Server Search" area (or SharePoint Foundation Search if you are using SharePoint Foundation)

I tried it and it gives me results like:

Keywords:{task} Terms:{task} Props:{}
Keywords:{ site:"http://nbtest:5908/sites/var" } Terms:{} Props:{site:"http://nbtest:5908/sites/var" }
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.