Skip to content

Instantly share code, notes, and snippets.

@Riveascore
Last active August 29, 2015 14:27
Show Gist options
  • Save Riveascore/213c0006e9b3d1a2a994 to your computer and use it in GitHub Desktop.
Save Riveascore/213c0006e9b3d1a2a994 to your computer and use it in GitHub Desktop.

General Search Ideas

  • Add "distance from location" to location filter on search results page
  • Season replaces "Category" on filters when lookign at sacc site, swap green/yellow for all cases, so season ends up as green

First Iteration (primary and misc only, hold off on system actions) (search box)

vendor/plugins/acts_as_solr

  • figure out common fields between search indices, for INDEXING MODULE
    • Doesn't matter what actual name ruby attribute is, SOLR defines (label/name) as name according to SOLR
    • Most common: name, address, acronym
  • ONLY_ACCESS_USER_ID for search indices security, so you can only access "facilty accounts" that you have access to
  • solr_batch indexing
  • controller to handle searching on the index
  • UI

###Icon with A belongs to B (search box)

  • field_name, grabs all with matching field name, then displays "all objects in B"
  • Other appraoch, seasons and instructors get indexed, have "hidden", and instructor_name is a field on there
  • Courses example
    • If many results, show as list item "courses in winter"
    • Else give it a separate box udnerneath "programs" listing 3 courses and show more

Filters (UI)

  • Use Facets







Backend coding

  • separate acts_as_indexed_solr for online side
  • Get filtering to work
  • Redesign flow
    • Type -> Display results,
    • On Mobile: Type, show results, click result, hit back button, what do you expect?

General things to get done

  • Design UI
  • Decide if preview or not (probably not, very complex)
  • STick with 3 category results, only show picture and category name, don't show desc

Good examples of web app search

How do we want to auto-handle the following similar cases?

Natural language processing

  • Related forms
    • authorize
    • authorized
    • authorizing
  • Differring parts of speach
    • pickup
    • pick up
    • pick-up
    • picking
  • Shortened versions of words
    • Info
    • Information
  • Phrase as fragments
    • Sign
    • Sign Up
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment