b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Front-office Reference
  3. Disp Reference
  4. disp = search

disp = search

disp = search

This Disp is used to display the search form and search results.

In v6.6+, the search uses a ranking algorithm in order to present the most relevant results on top.

The display is influenced by the settings found in the collection Features > Other displays > Search Results.

This, of course, only applies as long as the particular skin you are using doesn’t completely override the behavior of b2evolution’s default disp=search handler.

Technical Information

The default _search.disp.php template calls search_result_block() to perform the search and display the results.

The results are cached in order to increase speed in case of multipage search navigation.

There is a flush() before starting the search in order to display the first part of the page before the search process, which can be pretty long.

The search also first tries to find all the objects that match the keywords. It tries to search the following types of objects:

  • Posts/Items Note: sidebar links are excluded – search_and_score_items()
  • Comments – search_and_score_comments()
  • Files – search_and_score_files()
  • Categories – search_and_score_chapters()
  • Tags – search_and_score_tags()

Each matched object is scored with a relevance score.

Then the results are sorted by descending relevance score.

Finally, at display time, the results are displayed with a match-quality percentage.

Tip: You can enable Debug Mode to see what the ranking algorithm does, especially how it computes the scores.

Default Container and Widgets

By default, this disp does not display a specific widget container. Yours may look different depending on the particular skin in use, the widgets currently installed and how they are configured.

Tip: We can fully customize how this disp will look by creating or replacing the _search.disp.php file in the currently used skin’s folder.

Tags: 6.11.2
Created by fplanque • Last edit by winskie on 2019-05-29 07:03 • •

No feedback yet

On this page

  • Technical Information
  • Default Container and Widgets

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
    • Collection Types
    • Disp Reference
      • User Profile Disps
      • disp = 404
      • disp = access_denied
      • disp = access_requires_login
      • disp = activateinfo
      • disp = arcdir
      • disp = catdir
      • disp = comments
      • disp = contacts
      • disp = download
      • disp = edit
      • disp = edit_comment
      • disp = feedback-popup
      • disp = flagged
      • disp = front
      • disp = help
      • disp = login
      • disp = lostpassword
      • disp = mediaidx
      • disp = messages
      • disp = msgform
      • disp = page
      • disp = postidx
      • disp = posts
      • disp = proposechange
      • disp = register
      • disp = search
      • disp = single
      • disp = sitemap
      • disp = tags
      • disp = terms
      • disp = threads
      • disp = usercomments
      • disp = useritems
      • disp = users
      • disp = visits
      • disp_detail = posts-cat
      • disp_detail = posts-date
      • disp_detail = posts-default
      • disp_detail = posts-filtered
      • disp_detail = posts-next
      • disp_detail = posts-subcat
      • disp_detail = posts-tag
      • disp_detail = posts-topcat
    • Widgets Reference
    • The In-skin Edit Screen
    • Comments / Feedback Area
    • Social Media Meta Tags
    • Workflow Panel
    • Flagging Items
  • Back-office Reference
  • Developer Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
Social CMS

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque