 |
» |
|
|
 |
The value of the QP parameter is used to filter down the HP.com search collection that is specific to a country and language into a smaller collection, which only contains pages within your web section. Thus, with the QP parameter, you are identifying your web section's content that users will be searching from within the contextual search.
There are many ways to define which pages belong to your web section.
| URL based method |
This method allows you to include any document within your web section's
URL. The URL can include subdirectories or it may simply be a unique keyword that exists within
the URL: <input type="hidden"
name="qp" value="url:yourwebsection.hp.com/directory/">
Advantage: Collection will include all document types under a URL pattern (not
metadata dependent).
Disadvantage: A site contain a number of URLs and if your URL changes, this value must be updated.
|
| SITE based method |
This method allows you to include any document within your web section's URL by specifying the root domain name. It is similar to the URL based method above but with this method, you can't include subdirectories nor keywords within a URL. However, this method is more efficient for search so if your entire site is contained within a root domain, we recommend this approach.
<input type="hidden"
name="qp" value="site:www.yourwebsection.hp.com">
Advantage: Collection will include all document types under the URL root domain (not
metadata dependent).
Disadvantage: A site contain a number of URLs and if your URL changes, this value must be updated.
|
| WEB SECTION ID based method |
If your web section pages contain the segment web section id meta tag, this method allows you to include any document within your web section without dependency on URLs.
<input type="hidden"
name="qp" value="web_section_id:r1002">
Advantage: Easy to implement and maintain if your web section's documents are already tagged with a web section id meta tag. Even if your web section changes URL, you won't have to update the QP parameter.
Disadvantage: Collection will only include documents that contain the
web section id meta tag. |
| SEGMENT based method |
If your web section is part of a segment (HHO, SMB, etc.) and your pages contain the segment meta tag, this method allows you to include any document within your web section without dependency on URLs.
<input type="hidden"
name="qp" value="segment:hho">
Advantage: Easy to implement and maintain if your web section's documents are already tagged with a "segment" meta tag. Even if your web section changes URL, you won't have to update the QP parameter.
Disadvantage: Collection will include ALL documents that contain the
segment meta tag that may be outside of your web section. |
|