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

As Designed Search Phrases "Text Contains" should be "Text equals"

Discussion in 'Resolved Bug Reports' started by Mr Lucky, Aug 7, 2016.

  1. Mr Lucky

    Mr Lucky Well-Known Member

    If you search phrases for words contained in a phrase, there are no results unless you use the exact phrase.

    In that case it should ask for "Text equals" not "Text Contains".

    Text Contains explicitly means the text contains, and does not mean it has to be the exact text.

    This kind of filter rule is very common, those terms mean very different things and I believe xenforo should follow standard methods
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    It works as it describes. It does allow you to search for phrases "containing" and it does not require a full match.

    upload_2016-8-7_12-51-17.png

    This produces search results containing any phrases that contain "*onver*", as in, conversation:

    upload_2016-8-7_12-52-2.png

    If you're seeing a different behaviour, is it something specific you're searching for? Or maybe there's an add-on involved? Try again with all add-ons disabled.
     
  3. Mike

    Mike XenForo Developer Staff Member

    I think he might be meaning that if you search for "word1 word2", it only matches if they're next to each other (phrase search), rather than anywhere in the document.

    I do believe that "contains" is an accurate description, as any match will contain exactly what you entered, though I can take the point that a search engine handles this differently unless you explicitly use quotes.. I don't believe that "equals" is an accurate description, because that implies that the phrase text must contain nothing but the entered text.
     
  4. Mr Lucky

    Mr Lucky Well-Known Member

    Yes. I am not talking about partial words.

    OK I agree , that is true because it will find a single word or part of a word.

    BUT, it is still wrong in that if I search for: content have at least then I expect to find the phrase this_content_must_have_at_least_x_tags

    Because it does contain those words. The fact that I didn't use all the words is the issue here.

    The word contain by itself is very misleading.

    For example, this is the way Easyfind will search for a phrase:

    search.jpg


    Will do.
     
  5. Chris D

    Chris D XenForo Developer Staff Member

    Clearly there was a misunderstanding about what this was reporting, so disabling add-ons won't be necessary.

    From the point of view of searching for a string within phrase text, it's working as designed. Clearly there was a misunderstanding of how you thought it worked, so that's really the only issue here.

    First time honestly I've come across anyone finding issue with this, or referring to it as "very misleading". Points noted, though.
     
  6. Mr Lucky

    Mr Lucky Well-Known Member

    I admit I do tend to take things literally so I thought contains would cover those other scenarios.

    So I may be the only person who thinks it is a bug :)
     
  7. Mike

    Mike XenForo Developer Staff Member

    I'm going to call this as designed. I believe both approaches could be consider "contains" and I haven't heard of any other questions regarding this. If needed, we could add a clarification but I don't think we'd change how it works.
     

Share This Page