The search results appear to be returning an error when a phrase is entered containing the word 'in' . RRS feed

  • Question

  • We are searching in the FAST repositry on this web www.nes.scot.nhs.uk using a webservice. If you use any phrase which contains the word 'in' FQL returns an error. Guess 'in' is a keyword in FQL. Any ideas how to fix this problem? thanks

    WebException while getting search results from URL 'http://gateway2.scot.nhs.uk:80/nhs.search.query.svc/?format=xml&cfg=nescorp&q=a+in+b&pn=0&ps=10&pm=fql'
    The remote server returned an error: (400) Bad Request.

    Thursday, January 5, 2012 1:09 PM

All replies

  • Hi, I don't believe 'in' is a reserved word in FQL. There may be something that happens in the translation in the webservice to the actual query being submitted. You should look up a failed query in the query log to see what was actually submitted. Once you have the query, run it directly against the QRServer port (typically 15100) and see what response you get. The following words are listed as reserved within the FQL query language: and, or, any, andnot, rank, near, onear, int, float, double, datetime, max, min, range, phrase, filter, not, string, starts-with, ends-with, equals, count This list may not be 100% complete, e.g. scope is a reserved word as well. Bjørn
    • Proposed as answer by Rob Va - MSFT Thursday, January 12, 2012 9:35 PM
    Friday, January 6, 2012 3:26 PM