Search block optimisation

Categories

Component ID

2829082

Component name

Search block optimisation

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Drupal core search module makes two requests when a search block form is submitted. The first is a POST request that results in a form redirect to a new URL (normally /search/node) where the search is performed based on the GET parameters. For sites that are more performance consious this operation is expensive especially if parameters of the search are already known.

This module assumes that search block form is used for searches on content (search/node/[terms]).