Am 07.12.2011 14:26, schrieb Finotti Simone:
That's the scenario:
I have an XML that maps words W to URLs; when a search request is issued by my
web client, a query will be issued to my Solr application. If, after stemming,
the query matches any in W, the client must be redirected to the associated URL.
I agree that it should be handled outside, but we are currently on progress of
migrating from Endeca, and it has a feature that allow this scenario. For this
reason, my boss asked if it was somehow possible to leave that functionality in
the search engine.
Of course, your customers will never directly connect to your Solr
server. They instead connect to your web application, which is itself a
client to Solr.
Therefore, it's useless to return redirect response codes directly from
Solr, since you customer>'s browsers will never get them.
Instead, you should handle Solr responses in your web application
individually, and redirect your customers then.
-Kuli