You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Zheng Lin Edwin Yeo <ed...@gmail.com> on 2017/06/13 08:46:26 UTC
Setting q parameter for fetch Streaming expression
Hi,
For the Streaming expression on Fetch, is it possible to have set the q
parameter for the "addresses" collection?
In the below example from the Solr Documentation, it is only setting the q
parameter for the "people" collection.
I'm using Solr 6.5.1.
fetch(addresses,
search(people, q="*:*", fl="username, firstName, lastName",
sort="username
asc"),
fl="streetAddress, city, state, country, zip",
on="username=userId")
Regards,
Edwin
Re: Setting q parameter for fetch Streaming expression
Posted by Zheng Lin Edwin Yeo <ed...@gmail.com>.
Hi Joel,
Thanks for your reply.
For the "having" expression, it says that it requires a BooleanEvaluator.
Which means I can only use it to filter if there is Boolean Evaluator, and
not if it is just a normal query?
And yes, it will be good to support filter queries with fetch. Should I put
that as a possible improvement in Jira?
Regards,
Edwin
On 13 June 2017 at 23:42, Joel Bernstein <jo...@gmail.com> wrote:
> Currently you cannot specify a query for fetch. You can filter tuples
> emitted by fetch by wrapping it in a "having" expression.
>
> In the future I think it makes sense to support filter queries with fetch.
>
> Joel Bernstein
> http://joelsolr.blogspot.com/
>
> On Tue, Jun 13, 2017 at 4:46 AM, Zheng Lin Edwin Yeo <edwinyeozl@gmail.com
> >
> wrote:
>
> > Hi,
> >
> > For the Streaming expression on Fetch, is it possible to have set the q
> > parameter for the "addresses" collection?
> > In the below example from the Solr Documentation, it is only setting the
> q
> > parameter for the "people" collection.
> >
> > I'm using Solr 6.5.1.
> >
> > fetch(addresses,
> > search(people, q="*:*", fl="username, firstName, lastName",
> > sort="username
> > asc"),
> > fl="streetAddress, city, state, country, zip",
> > on="username=userId")
> >
> > Regards,
> > Edwin
> >
>
Re: Setting q parameter for fetch Streaming expression
Posted by Joel Bernstein <jo...@gmail.com>.
Currently you cannot specify a query for fetch. You can filter tuples
emitted by fetch by wrapping it in a "having" expression.
In the future I think it makes sense to support filter queries with fetch.
Joel Bernstein
http://joelsolr.blogspot.com/
On Tue, Jun 13, 2017 at 4:46 AM, Zheng Lin Edwin Yeo <ed...@gmail.com>
wrote:
> Hi,
>
> For the Streaming expression on Fetch, is it possible to have set the q
> parameter for the "addresses" collection?
> In the below example from the Solr Documentation, it is only setting the q
> parameter for the "people" collection.
>
> I'm using Solr 6.5.1.
>
> fetch(addresses,
> search(people, q="*:*", fl="username, firstName, lastName",
> sort="username
> asc"),
> fl="streetAddress, city, state, country, zip",
> on="username=userId")
>
> Regards,
> Edwin
>