Using Search Page Asset with date range

6.58.0

I’ve got a Search Page asset setup to search a Standard Asset Field - Date Created, as per the docs.

When I input the date information into the default from and to fields (1 Oct 2025 to 31 Oct 2025 for example), no results are returned.

To see if results were generally being returned, I removed the date information to create a ‘blank search’, and hit submit. Results were returned, so the Search Page is basically setup OK, just not returning assets when using the date fields.

Tried adding the additional %X_query_logic% field that is populated in the insert keyword drop down in the Initial Search Page Layout’s content container too, but that didn’t work.

Tried enabling “Use Date Picker?” under the Field Styles section of the Search Page’s Search Field screen, but that didn’t make any difference either. Incidentally, this didn’t add anything to the frontend, so not sure if there’s something wrong there?

Tried using a different standard asset field (date published), but that doesn’t produce any results either.

On the surface, this seems simple - tell the Search Page to search by a standard field, using date created, and then add the auto-generated keywords in the content containers, which produce the necessary fields for you.

Anyone any ideas?

Additional - noticed there were some hidden time fields in the markup of the page, so thought I’d try filling this out with sensible defaults (09:00:00 to 09:00:00 for example), but didn’t work either.

image

Also, the ‘Use Date Picker’ toggle in the Search Fields screen produces JS errors on the frontend that could be stopping the date picker from being shown?

Seems like a bug to me. I had to fix my implementation recently on Search page asset. Some of the keywords stopped working in Single Calendar event.

Are you still looking for solution?

Hi @harinder.singh. I’ve received a response via a support ticket in the end. Turns out:

"In the Matrix settings, in the 'Search manager asset, the setting for the Root Node was configured to prevent the Matrix from indexing the ‘Published Date’ field.

This caused the Search Page to be unable to return any results because that field was excluded from indexing."

– Courtesy, Squiz support.

1 Like