Re: Solr for routing a webapp

2012-05-03 Thread Jasper Floor
Why not pass the parameters using "?parameter1=value1¶meter2=value2" ?


mvg,
Jasper

On Thu, Apr 26, 2012 at 9:03 PM, Paul Libbrecht  wrote:
> Or write your own query component mapping /solr/* in the web.xml, exposing 
> the request by a thread-local through a filter, and reading this setting the 
> appropriate query parameters...
>
> Performance-wise, this seems quite reasonable I think.
>
> paul
>
>
> Le 26 avr. 2012 à 16:58, Paul Libbrecht a écrit :
>
>> Have you tried using mod_rewrite for this?
>>
>> paul
>>
>>
>> Le 26 avr. 2012 à 15:16, Björn Zapadlo a écrit :
>>
>>> Hello,
>>>
>>> I'm thinking about using a Solr index for routing a webapp.
>>>
>>> I have pregenerated base urls in my index. E.g.
>>> /foo/bar1
>>> /foo/bar2
>>> /foo/bar3
>>> /foo/bar4
>>> /bar/foo1
>>> /bar/foo2
>>> /bar/foo3
>>>
>>> I try to find a way to match /foo/bar3/parameter1/value1/parameter2/value2 
>>> without knowing that parameter and value are not part of the base url. In 
>>> fact I need the best hit from the beginng.
>>> Is that possible and are there any performance issues?
>>>
>>> I hope my problem is understandable!
>>>
>>> Thanks in advance and best regards,
>>> Bjoern
>>
>


Re: Solr for routing a webapp

2012-04-26 Thread Paul Libbrecht
Or write your own query component mapping /solr/* in the web.xml, exposing the 
request by a thread-local through a filter, and reading this setting the 
appropriate query parameters...

Performance-wise, this seems quite reasonable I think.

paul


Le 26 avr. 2012 à 16:58, Paul Libbrecht a écrit :

> Have you tried using mod_rewrite for this?
> 
> paul
> 
> 
> Le 26 avr. 2012 à 15:16, Björn Zapadlo a écrit :
> 
>> Hello,
>> 
>> I'm thinking about using a Solr index for routing a webapp.
>> 
>> I have pregenerated base urls in my index. E.g.
>> /foo/bar1
>> /foo/bar2
>> /foo/bar3
>> /foo/bar4
>> /bar/foo1
>> /bar/foo2
>> /bar/foo3
>> 
>> I try to find a way to match /foo/bar3/parameter1/value1/parameter2/value2 
>> without knowing that parameter and value are not part of the base url. In 
>> fact I need the best hit from the beginng.
>> Is that possible and are there any performance issues?
>> 
>> I hope my problem is understandable!
>> 
>> Thanks in advance and best regards,
>> Bjoern
> 



Re: Solr for routing a webapp

2012-04-26 Thread Paul Libbrecht
Have you tried using mod_rewrite for this?

paul


Le 26 avr. 2012 à 15:16, Björn Zapadlo a écrit :

> Hello,
> 
> I'm thinking about using a Solr index for routing a webapp.
> 
> I have pregenerated base urls in my index. E.g.
> /foo/bar1
> /foo/bar2
> /foo/bar3
> /foo/bar4
> /bar/foo1
> /bar/foo2
> /bar/foo3
> 
> I try to find a way to match /foo/bar3/parameter1/value1/parameter2/value2 
> without knowing that parameter and value are not part of the base url. In 
> fact I need the best hit from the beginng.
> Is that possible and are there any performance issues?
> 
> I hope my problem is understandable!
> 
> Thanks in advance and best regards,
> Bjoern



Solr for routing a webapp

2012-04-26 Thread Björn Zapadlo
Hello,

I'm thinking about using a Solr index for routing a webapp.

I have pregenerated base urls in my index. E.g.
/foo/bar1
/foo/bar2
/foo/bar3
/foo/bar4
/bar/foo1
/bar/foo2
/bar/foo3

I try to find a way to match /foo/bar3/parameter1/value1/parameter2/value2 
without knowing that parameter and value are not part of the base url. In fact 
I need the best hit from the beginng.
Is that possible and are there any performance issues?

I hope my problem is understandable!

Thanks in advance and best regards,
Bjoern