Thanks Grant. Yes, I was trying to persuade our architect to do this from the web application itself, but he prefers to centralize this functionality on the Solr server rather than having all client applications implement their own.
Cheers! Alex >-----Original Message----- >From: Grant Ingersoll [mailto:gsing...@apache.org] >Sent: Monday, March 30, 2009 4:49 PM >To: solr-user@lucene.apache.org >Subject: Re: Hijacking Search Requests > >I think this can be done with a load balancer such that you don't even >need to go to Solr, right? Or, do you mean you want different >"results" from Solr itself? > >On Mar 30, 2009, at 4:31 PM, Alex Wang wrote: > >> Hi everyone, >> >> We have a web application that queries a Solr server through http. >> What we would like to do is to customize the Solr server and hijack >> the search request. If the user search term matches certain rules, >> then redirect the user to a different page without even performing >> any search in Solr, if the search term does not match any rules, >> then perform search as usual. >> >> The question is how this can be achieved with the new >> SearchComponent architecture. >> >> Any inputs would be appreciated! >> >> Alex > >-------------------------- >Grant Ingersoll >http://www.lucidimagination.com/ > >Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids) >using Solr/Lucene: >http://www.lucidimagination.com/search