Can you send a link to your page? Easiest route is to probably just clear the storage and set the search to null after the function. See below in bold
import {local} from 'wix-storage';
import wixLocation from 'wix-location';
$w.onReady(function () {
});
export function searchButton_click() {
let word = $w("#searchBar").value;
local.setItem("searchWord", word);
wixLocation.to(`/search-results`);
}
**Results Page Code **
import {local} from 'wix-storage';
import wixData from 'wix-data';
$w.onReady(function () {
var sameWord = local.getItem("searchWord");
$w("#searchBar").value = sameWord;
$w("#searchBar").placeholder = sameWord;
$w('#dataset1').onReady(function () {
search();
});
});
export function searchButton_click() {
search(); } function search() {
wixData.query('Stores/Products')
.contains('name', $w("#searchBar").value)
.or(wixData.query('Stores/Products')
.eq('price', $w("#searchBar").value))
.find()
.then(res => {
$w('#repeater1').data = res.items;
local.clear();
$w("#searchBar").value = null;
});
}