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

Search criterion with exception

Discussion in 'XenForo Questions and Support' started by infis, Oct 6, 2011.

  1. infis

    infis Well-Known Member

    It is possible?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. infis

    infis Well-Known Member

    I want search for example "history" and in search result I don't want see threads with word "like". How I can do it?
    In Google search I can type "history -like". Where "-like" - exception word "like".
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Oh that. The same syntax works in XenForo.

    For example, I was able to find my previous post with this search string:

    Code:
    +criteria +search
    
    But not with this search string:

    Code:
    +criteria -search
    
    The "-" operator is a NOT.

    For reference:

    http://dev.mysql.com/doc/refman/5.5/en/fulltext-boolean.html
     
  5. infis

    infis Well-Known Member

    Hm... Testing:

    1. I want search "history" without "like" (first variant)
    search1.png

    2. I want search "history" without "like" (second variant)
    search2.png

    3. I want search "history" and "like"
    search3.png

    1 and 3 - some result.
     
  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Hmm. I can confirm some unexpected behavior there. I need to look at this closer. Will report back.
     
  7. Brogan

    Brogan XenForo Moderator Staff Member

    The word "like" is being ignored in the search due to it being common.

    Try with different words which are accepted.
     
    Jake Bunce likes this.
  8. infis

    infis Well-Known Member

    Thank you! But it isn't correct. May be it can be necessary to declare it a bug?
     

Share This Page