Hi Umbraco, We are faced with a rather fun task about searching and indexing. We have a client with 3 Umbraco sites on 3 backoffice ind diffrent Umbraco versions, and they are asking if we can make a search on all 3 at the same time so on site 1 you can search and get redirect to stuff on site 2.
Is this done before? can it be done with Umbraco headless as a 4th site? which will handle the indexing of the 3 other sites? any lead into what is possible would be appreciated
What you could do is create a search API end point on each of the three sites, then when you are searching you can search local, then call the other two sites API's.
If the API's all return the same data model to represent a page with all required information you could then shows results from all sites.
The only think you would lose in this scenario would be the ease of prioritising results, but you could get around this by combining all the results and then sorting by their score (assuming you are using examine to search within each of sites.
so an API to gather the indexing from the 3 sites, then merge these into one index file, which another API (thinking headless here) will return the result to the page that did the request ?
Each site would be responsible for indexing it's own content.
Each site then has a Search API with a "Search" end point.
This has parameters such as "Query" and "OnlySelf".
Example search process:
Site A seach, searches itself, then calls Site B's search with the query term and "Only Self" as true, it also calls Site C's search in the same way.
Sites B and C, return their results as the appropriate search result model.
Inside Site A, it combines all the results and re-orders based on score.
Not sure how you'd handle paging in this situation though.
An alterative would be to use an external searcher such as Azure Examine search, where all 2 sites push to that index. I've never done this however so not sure how it would work :-)
searching and indexing
Hi Umbraco, We are faced with a rather fun task about searching and indexing. We have a client with 3 Umbraco sites on 3 backoffice ind diffrent Umbraco versions, and they are asking if we can make a search on all 3 at the same time so on site 1 you can search and get redirect to stuff on site 2.
Is this done before? can it be done with Umbraco headless as a 4th site? which will handle the indexing of the 3 other sites? any lead into what is possible would be appreciated
Hi Mathias,
What you could do is create a search API end point on each of the three sites, then when you are searching you can search local, then call the other two sites API's.
If the API's all return the same data model to represent a page with all required information you could then shows results from all sites.
The only think you would lose in this scenario would be the ease of prioritising results, but you could get around this by combining all the results and then sorting by their score (assuming you are using examine to search within each of sites.
Nik
so an API to gather the indexing from the 3 sites, then merge these into one index file, which another API (thinking headless here) will return the result to the page that did the request ?
Not exactly what I was thinking.
Each site would be responsible for indexing it's own content.
Each site then has a Search API with a "Search" end point.
This has parameters such as "Query" and "OnlySelf".
Example search process:
Site A seach, searches itself, then calls Site B's search with the query term and "Only Self" as true, it also calls Site C's search in the same way.
Sites B and C, return their results as the appropriate search result model.
Inside Site A, it combines all the results and re-orders based on score.
Not sure how you'd handle paging in this situation though.
An alterative would be to use an external searcher such as Azure Examine search, where all 2 sites push to that index. I've never done this however so not sure how it would work :-)
Sounds like i have some fun ahead of me, thanks for the input will look into your idea when ever I get the chance
is working on a reply...