Hi,
Is it possible to set local arguments for each query clause?
example:
{!type=x q.field=z}something AND {!type=database}something
I am pulling together result sets coming from two sources, Solr index
and DB engine - however I realized that local parameters apply only to
the whole query -
Not per clause, no. But you can use the nested queries feature to set
local params for each nested query instead. Which is in fact one of the
most common use cases for local params.
q=_query_:{type=x q.field=z}something AND
_query_:{!type=database}something
URL encode that whole thing
Thanks Jonathan, this will be useful -- in the meantime, I have
implemented the query rewriting, using the QueryParsing.toString()
utility as an example.
On Wed, Mar 2, 2011 at 5:40 PM, Jonathan Rochkind rochk...@jhu.edu wrote:
Not per clause, no. But you can use the nested queries feature to