Reputation: 1360
I have an Azure API set up that listens on /* and sends the query through to a search service backend on https://name.search.windows.net/indexes/appnames/docs/.
I want to add a second endpoint that listens on /filters and have that point to another search https://name.search.windows.net/indexes/appfilters/docs/.
I have used set-backend-service base-url to correctly point to the second search service backend but the url that gets used still includes the /filters, i.e. https://name.search.windows.net/indexes/appfilters/docs/filters rather than https://name.search.windows.net/indexes/appfilters/docs/.
How can I remove the filters/ part of the uri that I am using to switch the API?
Upvotes: 0
Views: 911
Reputation: 6647
You would just have to use the rewrite-uri
policy to remove it by adding this line in the inbound section
<rewrite-uri template="/" />
Upvotes: 2