lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elisabeth benoit <elisaelisael...@gmail.com>
Subject Re: no result with q
Date Thu, 08 Sep 2011 11:28:38 GMT
ok, I guess I found how

q=49 OR *

2011/9/8 elisabeth benoit <elisaelisaelisa@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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message