Category as default for search terms

OurWork Edit-chalk-10bo12.png

What (summary)

Under Construction

Currently, the search bar will return an article if one exists, and if not, drop out to the search page. With this change, if an article doesn't exist, but there are articles that are categorized to the search term, then the category page should appear. Note, there are many situations where the actual category page does not yet exist, but there are articles associated with that category. For example, Category page for Abdominal Pain. These should also show up because they allow the user to see other articles that have that category and invite someone to create an overall category page.

Why this is important

This will help serve better information for visitors enter common search terms

Idea for possible fix

Maybe it is possible to turn lower case first letters into capital letters for the purpose of searching and finding categories.

DoneDone

When a search term for which there is category information is entered, it will display a category page.

  • trucks, tRucks, should return Category:Trucks Case where the category page already exists
  • Puppies should return Category:Puppies Case where the category is not empty but does not have a page
  • puppies should return Category:Puppies Case where the category is not empty but does not have a page
  • Kitchen_Accessories and Kitchen Accessories should return Category:Kitchen Accessories Case where category contains multiple words
  • kitchen accessories, Kitchen__Accessories, Kitchen_accessories should return Category:Kitchen Accessories, non-empty category but empty page

Steps to get to DoneDone

OurWork Category results for basic search (Umar)

What (summary)

Why this is important

Better search results engage users more. Dropping someone onto an interesting page rather than a list of marginally related results is more likely to result in them reading and then perhaps clicking again.

DoneDone

When a search for a phrase misses on the main namespace, but connects on the Category namespace the searcher is immediately dropped onto the category page.

Steps to get to DoneDone

  • Redirect to category page if the category page exists, only if there is no page whose title matches the search query

Daily Log

Wed Dec 4

  • Today would be a good day if:
    • I do the redirect to category page if the category page exists
    • either with help, or by myslef, I figure out how to use Lucene Search engine, OR
    • look at how to do test-driven development in php by browsing Stephen's code
  • Quick status update:
    • Finished the part that redirects to the category page only if there is no page whose title matches the query
    • Moving to Action Reporting now...

Tue Dec 4

  • Saw the Search code in a bit of detail
  • Commented the code slightly
  • Download the Lucene library binaries, need help how to include its jar and/or war files and deploy them on a server
  • need help in configuring lucene


Retrieved from "http://aboutus.com/index.php?title=Category_as_default_for_search_terms&oldid=15078459"