ok, I guess I found how

q=49 OR *

2011/9/8 elisabeth benoit <elisaelisael...@gmail.com>

>
> Hello,
>
> I have a query
>
> /select?&q=49&q.alt=*:*&fq=NAME_ANALYZED:decorasol AND WAY_ANALYZED:rue
> charonne AND (TOWN_ANALYZED:paris OR
> DEPARTMENT_ANALYZED:paris)&rows=50&fl=*,score&
>
> returning no answer because of the q=49 parameter.
>
> The query
>
> /select?&q=&q.alt=*:*&fq=NAME_ANALYZED:decorasol AND WAY_ANALYZED:rue
> charonne AND (TOWN_ANALYZED:paris OR
> DEPARTMENT_ANALYZED:paris)&rows=50&fl=*,score&
>
>
> (the only difference is "q=" instead of "q=49")
>
> returns the answer I'm expecting
>
> Is there a way to tell Solr to only use fq and neglect q if no answer? Or
> am I doomed to send first request, realize I've got no answer and then send
> a second request?
>
> I guess so, but just checking, just in case.
>
> Thanks,
> Elisabeth
>
>

Reply via email to