I do use solr over HTTP.  I'm not familiar with Nginx or it's URL
rewrite capabilities.  Would this be easier to rewrite a complex query
using this then a custom query parser?

On Sat, Jul 9, 2011 at 2:07 PM, Markus Jelsma
<markus.jel...@openindex.io> wrote:
> If you use Solr over HTTP, then why don't you use URL rewriting? Nginx has
> very powerful rewrite features and is capable of rewriting parts of the URL,
> no need to write and compile and deploy code.
>
>> My organization is considering a few different approaches for indexing
>> vs query rewrite and I'm trying to figure out what would be required
>> in order to implement some form of query rewrite.  Lets say my index
>> has 2 fields first name and last name.  When the user does a query
>> name:bob I'd like to transform this into first_name:bob OR
>> last_name:bob.  I know this example is trivial but our real index is
>> much more complex.  Are there any extension points in solr for doing
>> such a thing?  If not are there any utilities which I could use for
>> doing this?  We are currently using the edismax query parser so I
>> suppose I could extend that to handle this but I'm starting from a
>> completely blank slate so any guidance would be appreciated.
>

Reply via email to