Skip to content

Instantly share code, notes, and snippets.

@mschoch
Last active February 12, 2016 01:05
Show Gist options
  • Save mschoch/c1f01e51d443bb43c48d to your computer and use it in GitHub Desktop.
Save mschoch/c1f01e51d443bb43c48d to your computer and use it in GitHub Desktop.
FTS Query API with links to JSON structures

FTS Query API

POST /api/index/{indexName}/query

The HTTP Request body is an instance of SearchRequest, which can optionally contain a field "ctl" which is an instance of QueryControlParams. All the other related structures are nested within these and are linked below.

Query - Unlike the others so far, Query is a recursive structure. When a Query is expected we first prase it here:

Top-level Query Parsing

This method first "gueses" what type of query it is, then performs JSON Unmarshaling of the type that was guessed. Each type of query has its own set of properties:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment