I have a website using sharepoint search services to query SP index. After migrating to 2013 I started getting this error:


Error: We didn't understand your search terms. Make sure they're using proper syntax.

Here is my Query XML:

<QueryPacket xmlns="urn:Microsoft.Search.Query">
      <QueryText language="en" type="FQL"><![CDATA[string("TEST", mode="and") AND filter(contentsource:equals("MyContnentSource"))]]></QueryText>
    <SupportedFormats Format="urn:Microsoft.Search.Response.Document.Document" />
      <Property name="Rank" />
      <Property name="Title" />
      <Property name="Size" />
      <Property name="Path" />
      <Property name="Description" />
      <Property name="Teaser" />
      <Property name="Write" />

I tried to run the query with type="KQL". It does not complain about anything also does not bring back anything...

what is the fastest way to fix this problem? I would rather not try to change the Query Type...

  • Your query does not look that complex. When you moved to 2013 did you also migrate your managed properties and content sources? What happens when you run the analogous KQL query in a search center? "test ContentSource=MyContentSource" If it fails in the search center it won't work in your code. – Matthew McDermott May 28 '16 at 11:37
  • There are no managed properties to be migrated. This content source is for a non-sharepoint site. could you please tell me how to run an analogous KQL query in search center? – Aslan May 31 '16 at 12:49
  • I did. It's in my comment. "test ContentSource=MyContentSource" – Matthew McDermott May 31 '16 at 18:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.