• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
      • Try XenForo Demo
      • New Posts
      • FAQ
      • Calendar
      • Community
        • Groups
        • Albums
        • Member List
      • Forum Actions
        • Mark Forums Read
      • Quick Links
        • Today's Posts
        • Who's Online
      • Sponsor
        • Sponsor a Feature
        • List of Donors
    • Wiki
    • Support
    • What's New?
    • Buy Now
    • Manual
    • 
    • Forum
    • VaultWiki How-Tos
    • VaultWiki Questions
    • Search on multiple categories?

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Results 1 to 3 of 3

    Thread: Search on multiple categories?

    • Thread Tools
      • Show Printable Version
    1. November 5, 2012 #1
      OKCTalk
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      OKCTalk is offline
      Junior Member
      Join Date
      March 25, 2012
      Posts
      12
      Rep Power
      0

      Search on multiple categories?

      I know you can assign multiple categories to any one wiki article but can you create an index and/or search on more than one category?

      For example, I can show a complete index of everything within a category I have labeled OFFICE BUILDINGS but what if I wanted to create a list of OFFICE BUILDINGS that are also in the DOWNTOWN category?

      If the software does not have this functionality is there a way to write a custom script query?


      TIA.
      Reply With Quote Reply With Quote

    2. November 26, 2012 #2
      OKCTalk
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • View Articles
      OKCTalk is offline
      Junior Member
      Join Date
      March 25, 2012
      Posts
      12
      Rep Power
      0
      Bump for answer please.
      Reply With Quote Reply With Quote

    3. November 26, 2012 #3
      pegasus
      • View Profile
      • View Forum Posts
      • View Blog Entries
      • Visit Homepage
      • View Articles
      pegasus is offline
      VaultWiki Team
      Join Date
      March 28, 2004
      Location
      New York, NY
      Posts
      2,959
      Blog Entries
      18
      Rep Power
      688
      VaultWiki doesn't have an automatic function to search on two categories at once. You would need to get the thread IDs of the categories you want to use as category IDs. Then search vault_category for rows that share a threadid and have both categoryid values. For this kind of search, you might join the vault_category table to itself, which makes this kind of search impractical from a coding standpoint and dangerous from a performance standpoint. A safer method would be to recursively get the lists of pages in each category ID and cross reference them during each step until no category IDs are left to check. This increases the number of queries but, if done with efficiency in mind, should funnel down the number of results per query, rather than a same-table join which could attempt to process millions of rows at the same time. However, the first query could still have many thousands of results, and could become problematic on very large wikis.
      - lead developer for VaultWiki
      Reply With Quote Reply With Quote

    Similar Threads

    1. showwiki.php?title=Special:Categories lists no categories
      By Alfa1 in forum VaultWiki Questions
      Replies: 8
      Last Post: December 8, 2010, 9:26 AM
    2. Assign categories to multiple Wiki pages?
      By Kaelon in forum VaultWiki Questions
      Replies: 6
      Last Post: June 30, 2010, 10:58 AM
    3. Special:Categories does not display categories in use
      By tscargo in forum VaultWiki Questions
      Replies: 2
      Last Post: October 19, 2009, 2:14 PM
    4. Multiple categories
      By tscargo in forum VaultWiki Questions
      Replies: 0
      Last Post: July 29, 2009, 4:00 PM
    5. understanding Categories, and sub categories and Namespaces
      By mickknutson in forum VaultWiki Questions
      Replies: 3
      Last Post: May 3, 2009, 7:09 PM

    Bookmarks

    Bookmarks
    • Submit to Digg Digg
    • Submit to del.icio.us del.icio.us
    • Submit to StumbleUpon StumbleUpon
    • Submit to Google Google

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •  
    • BB code is On
    • Smilies are On
    • [IMG] code is Off
    • [VIDEO] code is
    • HTML code is Off

    Forum Rules

    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 6:49 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.