Default Query Modifications

You can modify limited portions of the default query. For example, you can expand the weighted property list to include custom properties that are meaningful to your data. You can also modify the weight for a given property according to how strong an indicator of content that property is for your data. You can also adjust the rank coercion functions in the default query. For example, you can eliminate the rank coercion on the portion of the query that performs FREETEXT matches on BestBetKeywords so that the default query does not promote documents as Best Bets in the query results.

The following table shows the weighted property aliases declared in Portal\resources\searchConstants.js, with a brief description of modifications that you can make.

Query Variables and Descriptions

Variable Description

g_strWeightedPropsWhereClauseDeclaration

Modify the properties and weights used in the Best Bets and matching documents portion of the default query.

g_strWeightedCatPropsWhereClauseDeclaration

Modify properties used in the Categories portion of the default query.

You can find the JavaScript code that generates the query at the following path on the dashboard site: Portal\resources\searchFunctions.js.

Changes to the default query are not supported. Any changes made should adhere to the following guidelines:

  • Do not remove any properties selected by the query. Doing so interferes with the function of Extensible Stylesheet Language (XSL) style sheets and code on the dashboard site.
  • Do not alter the rank of the Best Bets predicates. Doing so interferes with the identification of search results as Best Bets.
  • Adding properties to the property list or ordering the query by an attribute other than rank impacts query latency.


Microsoft Sharepoint Portal Server 2001 Resource Kit
Microsoft SharePoint(TM) Portal Server 2001 Resource Kit (Examples & Explanations Series)
ISBN: 0735615624
EAN: 2147483647
Year: 2001
Pages: 231

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net