localwiki / localwiki-backend-server

Primary LocalWiki backend server environment
GNU General Public License v2.0
48 stars 16 forks source link

Tags and search ranking issue #68

Open philipn opened 9 years ago

philipn commented 9 years ago

From @philipn on September 21, 2012 22:8

  1. Make a bunch of pages with "Ypsilanti" in the title, tag them Ypsilanti.
  2. Make a page titled exactly "Ypsilanti," with no tags.
  3. Search for "Ypsilanti"

the "Ypsilanti" page will be ranked much lower, despite having a 100% match on title.

Need to tweak the search ranking logic here.h

Copied from original issue: localwiki/localwiki#338

philipn commented 9 years ago

From @vielmetti on September 26, 2012 5:31

I would think that the logic might be "if the page title is the same as the search string, mark the page as #1; then do the rest with the rest of the algorithm".

Does the current search logic count the number of inbound links to a page in its ranking? I notice that a number of pages on page one of the search for "Ann Arbor" in Arborwiki go to our Streets of Ann Arbor pages, and though they have good matching text, there aren't nearly as many inbound or outbound links in them as some other "better" pages.