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

XF 1.4 Search for a prefix across multiple subforums

Discussion in 'XenForo Questions and Support' started by ForestForTrees, Jan 6, 2015.

  1. ForestForTrees

    ForestForTrees Well-Known Member

    Is it possible to search for a prefix across multiple nodes? For example, if I had a "new" prefix in both the general discussion subforum and the off topic subforum, is there a single URL that would show me all threads with that prefix across both subforums? (or, alternatively, all subforums?)

    erich37 likes this.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    ForestForTrees likes this.
  3. ForestForTrees

    ForestForTrees Well-Known Member

    Thanks for the quick response, Brogan!

    When I tried using that link, it asked me for a query term or the name of a member. However, I don't want to limit the search to posts containing a specific word or by a specific member. I want all posts with the prefix.

    I was thinking of something more like the following, but not restricted to node 25:
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Use * for the search term.
    ForestForTrees likes this.
  5. ForestForTrees

    ForestForTrees Well-Known Member

    Wow, that is amazing. Is the '*' an official feature/can I expect it to be reliable across upgrades?
  6. Brogan

    Brogan XenForo Moderator Staff Member

    Using * is more or less universal as a wildcard.
  7. ForestForTrees

    ForestForTrees Well-Known Member

    Yup, from DOS to PCRE. Is it an officially supported function in XenForo?
  8. ForestForTrees

    ForestForTrees Well-Known Member

    This is strange. When I tried searching for "*" on my own forum, I got an error: "The search could not be completed because the search keywords were too short, too long, or too common."

    I'm not sure why it would work on XF.com, but not on my forum. I looked for an option to allow this, but couldn't find any. Thoughts?
  9. Brogan

    Brogan XenForo Moderator Staff Member

    I suspect you are using standard MySQL search, rather than enhanced search.
    ForestForTrees likes this.
  10. ForestForTrees

    ForestForTrees Well-Known Member

    Indeed I am. Thanks Brogan.

    The question now becomes, "is it possible to search for a prefix across multiple subforums when enhanced search isn't installed?"

    I'll assume that the answer is no. This is just another reason why having a tagging system in addition to a prefix system would be very helpful on some forums.

    Thanks again for the help.
  11. Stuart Wright

    Stuart Wright Well-Known Member

    @Brogan I want to create a link which does a search for all threads with a particular prefix.
    I used the advanced search with the wildcard and got this as the URL:
    Now the 7712341 element is, I'm assuming, a session search?
    So if I try and create a link using the above URL it will break when the session ends?
    Is there a way to create a permanent link?
  12. DieselMinded

    DieselMinded Well-Known Member

    i too want to be able to do this

Share This Page