1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Which Elasticsearch Query Strings in Enhanced Search?

Discussion in 'Enhanced Search Support' started by taylor_smith, Mar 16, 2014.

  1. taylor_smith

    taylor_smith Well-Known Member

    I see that elasticsearch has lots of query string options:


    It also has some simple ones:

    + signifies AND operation
    | signifies OR operation
    - negates a single token
    " wraps a number of tokens to signify a phrase for searching
    * at the end of a term signifies a prefix query
    ( and ) signify precedence
    ~N after a word signifies edit distance (fuzziness)
    ~N after a phrase signifies slop amount

    Which ones work in XenForo Enhanced Search?
  2. Mike

    Mike XenForo Developer Staff Member

    We use our own tokenizing system that doesn't change based on the search system. That said, we use + (default), - and |. Quotes work as does prefix matching. "(...)" doesn't work and I don't think ~# works.
    Rudy likes this.
  3. taylor_smith

    taylor_smith Well-Known Member

    And, or, not and partial word are all the search options? A user is asking and I'd like to reply comprehensively. Thanks, Mike!
  4. Mike

    Mike XenForo Developer Staff Member

    Quoting works as well, but yes that's it.

Share This Page