Ordering is a type of ranking mechanism that dynamically changes the sequence in which results are returned after an initial ranking that's established during the retrieval process. During retrieval, Agent Search fetches the relevant documents from the data store in the order of thousands (subject to the size of the data store). After this the top results are served according to the condition specified for reordering. For more information, see About retrieval and ranking.
This page explains how to order the results of a web search query by date.
- For data stores that use basic website search, you can order by Google-inferred page dates.
- For data stores that use advanced website indexing, you can order by custom data attributes or Google-inferred page dates that are added to the data store schema. For more information, see Use structured data for advanced website indexing.
Before you begin
Make sure that you do the following:
Create a data store with website data. For more information, see Website URLs.
Create a search app and connect it to the data store. For more information, see Create a search app.
Order search results for basic website search
To order the search results for a website data store with basic website search, follow these steps: