Extended Search

bugs:173
Author: Your Name (Your Backtracker Handle, use ::::)

Introduction


Introduction of idea

Implementation Notes

  • Some notes

  • search on the word
  • search on the current branch and its descendants (as the page WackoWiki represent a tree structure)
  • search with the selection (such as "+ window-windows" to find a page containing floor window but does not contain the word windows)
  • search highlighting
  • more suggestions

Database Changes

  • Required database changes to wacko_XXX_table

Configuration

  • $_var indicates something

Data used
Basic

  1. page title
  2. page name (tag)
  3. page name (if got different menu name)
  4. page description (if set manually)
  5. page keywords (if set manually)
  6. PAGE CONTENT
  7. anchor text from the links linking to this page form other pages in our system
  8. taggings (not yet implemeted)

Relevance

  1. time
  2. revisions
  3. user
  4. some magic factors
  5. page language
  6. watchers
  7. links
  8. backlinks
  9. views
  10. authors
  11. categories
  12. size
  13. files

Filter

  1. exclude system (owner) pages
  2. include comments
  3. include files
  4. lang
  5. cluster

Results [pages, comments, files]

  1. title
  2. tag 
  3. categories
  4. body
  5. last editor
  6. owner
  7. last modified
  8. created
  9. page / comment
  10. cluster
  11. user / system page
  12. attached / linked files (count)
  13. language
  14. comments (count)
  15. categories
  16. revisions (count)

Preview (teaser)


Implementation Log

Other Changes

Related Links

  1. https://archive.org/search.php?query=Ward Cunningham – example for faceted search
  2. http://www.uxmatters.com/mt/ar[..]d-search-filters.php
  3. https://ux.stackexchange.com/q[..]ing-links-vs-checkbo

Future Ideas

  1. Faceted navigation index tables
    1. One table contains a list of the object facets and the other contains facts about the objects.
    2. 
      <?php
      /**
       * Populates the object_facts table with data from the objects table
       */
      function populate_object_facts()
      {
        
      //empty object_facts table
        
      $this->sql_query ("TRUNCATE objects_facts");  
       
        
      //fetch all object data
        
      $result $this->load_all ("SELECT * FROM objects");
       
          
      //loop through table columns
          
      foreach ($result as $key => $value)
          {
            
      //create facts for all object fields except 'id' and 'name'
            
      if ($key != "id" && $key != "name")
            {
              
      $sql "INSERT INTO objects_facts VALUES (" $row['id'] . ",$facet_id,'$key','$value');";
              
      $this->sql_query ($sql);
              
      $facet_id++;

              echo 
      "Added fact: (".$row['id'].", $facet_id$key$value) <br/>";
            }
          }
      }

Feedback

  • Please provide feedback

Show Files (2 files)