anchor.diff:  --------------------------------------------------
   // CONSOLE
   
  +[[supported-flags-values]]
  +====== Valid values
   The available flags are:
   
  -[cols="<,<",options="header",]
  -|=======================================================================
  -|Flag |Description
  -|`ALL` |Enables all parsing features. This is the default.
  -|`NONE` |Switches off all parsing features.
  -|`AND` |Enables the `+` AND operator.
  -|`OR` |Enables the `\|` OR operator.
  -|`NOT` |Enables the `-` NOT operator.
  -|`PREFIX` |Enables the `*` Prefix operator.
  -|`PHRASE` |Enables the `"` quotes operator used to search for phrases.
  -|`PRECEDENCE` |Enables the `(` and `)` operators to control operator precedence.
  -|`ESCAPE` |Enables `\` as the escape character.
  -|`WHITESPACE` |Enables whitespaces as split characters.
  -|`FUZZY` |Enables the `~N` operator after a word where N is an integer denoting the allowed edit distance for matching (see <<fuzziness>>).
  -|`SLOP` |Enables the `~N` operator after a phrase where N is an integer denoting the slop amount.
  -|`NEAR` |Synonymous to `SLOP`.
  -|=======================================================================
  -
  -[float]
  -==== Synonyms
  +`ALL` (Default)::
  +Enables all optional operators.
  +
  +`AND`::
  +Enables the `+` AND operator.
  +
  +`ESCAPE`::
  +Enables `\` as an escape character.
  +
  +`FUZZY`::
  +Enables the `~N` operator after a word, where `N` is an integer denoting the
  +allowed edit distance for matching. See <<fuzziness>>.
  +
  +`NEAR`::
  +Enables the `~N` operator, after a phrase where `N` is the maximum number of
  +positions allowed between matching tokens. Synonymous to `SLOP`. 
  +
  +`NONE`::
  +Disables all operators.
  +
  +`NOT`::
  +Enables the `-` NOT operator.
  +
  +`OR`::
  +Enables the `\|` OR operator.
  +
  +`PHRASE`::
  +Enables the `"` quotes operator used to search for phrases.
  +
  +`PRECEDENCE`::
  +Enables the `(` and `)` operators to control operator precedence.
  +
  +`PREFIX`::
  +Enables the `*` prefix operator.
  +
  +`SLOP`::
  +Enables the `~N` operator, after a phrase where `N` is maximum number of
  +positions allowed between matching tokens. Synonymous to `NEAR`.
  +
  +`WHITESPACE`::
  +Enables whitespace as split characters.
  +
  +[[simple-query-string-boost]]
  +===== Wildcards and per-field boosts in the `fields` parameter
  +
  +Fields can be specified with wildcards, eg:
  +
  +[source,js]
  +--------------------------------------------------
  +GET /_search
  +{
  +  "query": {
  +    "simple_query_string" : {
  +      "query":    "Will Smith",
  +      "fields": [ "title", "*_name" ] <1>
  +    }
  +  }
  +}
  +--------------------------------------------------
  +// CONSOLE
  +<1> Query the `title`, `first_name` and `last_name` fields.
  +
  +Individual fields can be boosted with the caret (`^`) notation:
  +
  +[source,js]
  +--------------------------------------------------
  +GET /_search
  +{
  +  "query": {
  +    "simple_query_string" : {
  +      "query" : "this is a test",
  +      "fields" : [ "subject^3", "message" ] <1>
  +    }
  +  }
  +}
  +--------------------------------------------------
  +// CONSOLE
  +
  +<1> The `subject` field is three times as important as the `message` field.
  +
  +[[simple-query-string-synonyms]]
  +===== Synonyms
   
   The `simple_query_string` query supports multi-terms synonym expansion with the <<analysis-synonym-graph-tokenfilter,
   synonym_graph>> token filter. When this filter is used, the parser creates a phrase query for each multi-terms synonyms.
  
positive.code: * `~N` after a word signifies edit distance (fuzziness)
  * `~N` after a phrase signifies slop amount
  
  In order to search for any of these special characters, they will need to
  be escaped with `\`.
  
  Be aware that this syntax may have a different behavior depending on the
  `default_operator` value. For example, consider the following query:
  
  [source,js]
  --------------------------------------------------
  
negative.code: --------------------------------------------------
  // CONSOLE
  
  This search is intended to only return documents containing `foo` or `bar` that
  also do **not** contain `baz`. However because of a `default_operator` of `OR`,
  this search actually returns documents that contain `foo` or `bar` and any
  documents that don't contain `baz`. To return documents as intended, change the
  query string to `foo bar +-baz`.
  
  [[supported-flags]]
  ===== Limit operators
  You can use the `flags` parameter to limit the supported operators for the
  simple query string syntax.
  
  To explicitly enable only specific operators, use a `|` separator. For example,
  a `flags` value of `OR|AND|PREFIX` disables all operators except `OR`, `AND`,
  and `PREFIX`.
  
  [source,js]
  --------------------------------------------------
  