Use publication dates in a Function boost to give newer notices more influence, then compare the results.
The examples use a fictional university health website. Your field names, content and results will differ.
Show TranscriptHide Transcript
Transcript
Function Boosts
In this video, we'll use Function boosts in SearchStax Site Search to add a calculated ranking signal. Our example uses publication dates to give newer university health notices more influence. Then we'll compare the results.
Baseline Search
Visual description: The quoted search is "flu clinic updates". Its three notices appear 2024, 2025, then 2026 before the change.
Here's our fictional university health website. Let's search for flu clinic updates in double quotes. We get three notices: 2024 first, then 2025, then 2026. For this search, we'd like the latest notice above the older editions.
Matching and Ranking
Before we add the boost, let's connect it to the other controls. Search Fields chooses where words can match. Ranking helps order the matches. Function adds a calculated ranking signal.
One Recency Example
Visual description: The demonstrated custom Date field is demo_published_date_dt. The complete displayed function expression is recip(ms(NOW,demo_published_date_dt),3.16e-11,10,1).
Here's the recency example we'll use. This function uses our indexed publication dates to give newer notices more influence. Our demo stores those dates in a custom Date field. The Help Center has examples and resources for writing functions like this.
Boost Influence
The function supplies the calculated signal; the boost controls how much influence it has. We'll use one point five for this example. It weights part of the relevance score without guaranteeing a position.
Add the Example
Visual description: The added Function row uses recip(ms(NOW,demo_published_date_dt),3.16e-11,10,1) and a boost value of 1.5.
Now let's add that example in Site Search. Ranking is under Advanced Configurations in the Configurations menu. We'll turn on Field Ranking and choose Function in Ranking Options. Now we'll enter the complete expression without spaces and click plus. That adds the row below. We'll replace its starting boost with one point five, then check the expression and the value.
Publish
With the expression and boost checked, we're ready to publish. We'll click Publish and review the target profiles. This demo only has Main Profile, so All Profiles applies the change there. Then we'll confirm publication. Once it succeeds, we'll check the website again.
Compare the Results
Back on the website, let's run the same quoted search. The 2026 notice now comes first, followed by 2025 and 2024. All three results remain. This comparison only includes dated notices; it doesn't establish how undated pages would behave.
Term Frequency Example
Functions can use other signals, too. A university health team could test extra influence for notices mentioning flu in their summaries. Term frequency counts that fixed term in one document's indexed field. This is only an illustration; more mentions wouldn't automatically mean a better result.
Choose a Useful Signal
Whichever function we use, we'd check whether the signal helps visitors. For recency, that means checking our date field, missing dates, and evergreen pages. A guide to preparing for a clinic visit might stay useful for years. Newer isn't always more useful.
Help Center Resources
You'll find more Function examples and resources on writing expressions in the SearchStax Help Center at support.searchstax.com. The Ranking documentation also links to the function reference.
Download Transcript (.txt) · Watch in Loom
What to Take Away
- A Function boost adds a calculated signal; the separate boost value controls how much influence it has.
- The example compares three dated notices only. It doesn't establish how undated pages behave or guarantee a position.
- Check whether a signal helps visitors, including how it treats missing dates and evergreen pages.