WordPress.org

Ready to get started?Download WordPress

Ideas

Search list by relevance, not by date

  1. DMyers
    Member

    12345

    WordPress lists the posts in a search in order of time posted by default. It would be better to search by relevance or have advanced search options by default.

    Posted: 7 years ago #
  2. Jonathan Landrum
    Member

    12345

    +1

    Posted: 7 years ago #
  3. How is defined the relevance? It's bit a tricky task, I guess.

    Posted: 7 years ago #
  4. Jonathan Landrum
    Member

    12345

    Search engine algorithms do this. We could either use Google's (or Yahoo's) algorithm, or give our own a major overhaul.

    Caveat: does MySQL's search function even do relevance queries?

    Posted: 7 years ago #
  5. Google's (or Yahoo's) algorithm is not public domain, but a well kept secret.

    But it's a good suggestion to use Google "as is" for your blog searches: it should work.

    Posted: 7 years ago #
  6. snakefoot
    Member

    12345

    Posts where the key words are close together or repeated usually have higher relevance.

    Posts where the key words are in the title, slug or excerpt usually have higher relevance.

    Standard SEO training.

    Duplicate idea: Improved search quality

    Posted: 7 years ago #
  7. Understanding how an engine works is not enough for building a Ferrari...

    Posted: 7 years ago #
  8. chrisfmasse
    Member

    12345

    Integrate WordPress Search with Google PageRank.

    Posted: 6 years ago #
  9. Luke Gedeon
    Member

    12345

    Maybe we can't build something as good as Google's but we can sure do better that date order.

    Posted: 5 years ago #
  10. Weston Ruter
    Member

    12345

    Google has made available an AJAX API for dynamic search results. More importantly, they have released a language-independent RESTful API to access search results in JSON format. WordPress could hook into this functionality by making an HTTP request to get the search results instead of running MySQL queries. The Google search would just have to be restricted to the domain of the blog (using the "site:" query operator). Incredibly, it doesn't look like they impose any restrictions on the use of this API (if there was a query limit based on the number of IP addresses, then the results could be cached). They just want you to provide an API key; so the Google-powered search could be opt-in upon signing up for an API key.

    http://code.google.com/apis/ajaxsearch/documentation/#fonje

    I think this warrants further looking into.

    Posted: 5 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.

  • Rating

    12345
    70 Votes
  • Status

    This is plugin territory

Tags