lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Holger Rieß <Holger.Ri...@werkzeug-eylert.de>
Subject RE: SolrJ Howto get local params from QueryResponse
Date Tue, 18 Jun 2013 06:13:16 GMT
You're right, Jack. I use the local parameters not only to the exclusion of the filter, but
also as a kind of marker. I'll try it with QueryResponse.getHeader().
Thank you.
Holger Rieß

> -----Original Message-----
> From: Jack Krupansky [mailto:jack@basetechnology.com]
> Sent: Monday, June 17, 2013 8:40 PM
> To: solr-user@lucene.apache.org
> Subject: Re: SolrJ Howto get local params from QueryResponse
> 
> The "LocalParams" are just the prefix on the query parameters  (e.g.,
> "facet.field") themselves - what you sent on the original query. I mean, you
> constructed those original parameters in your app code, right?
> 
> You can also call QueryResponse#getHeader and then locate the original query
> parameters in there, if you need to.
> 
> You could also set a custom label for each facet field if you wanted to
> encode extra metadata for each facet field in the facet response.
> 
> -- Jack Krupansky
> 
> -----Original Message-----
> From: Holger Rieß
> Sent: Monday, June 17, 2013 10:53 AM
> To: solr-user@lucene.apache.org
> Subject: SolrJ Howto get local params from QueryResponse
> 
> 
> Hi,
> how can I get local params like '{!ex=dyn,cls} AAA001001_0_1.1.1_ss' from
> QueryResponse? I've tagged filter queries and facet fields with different
> tags (p.e.'dyn','cls').
> I can see the tags in the QueryResponse XML facet.field section:
> <arr name="facet.field">
>   <str>{!ex=dyn}AAA001001_0_1.1.1_ss</str>
> ...
> </arr>
> 
> But the FacetField class has no method List<String> getLocalParams().
> My goal is to make an server side representation of the QueryResponse
> components and sort the facet fields on the client side by the tag.
> 
> Thanks, Holger


Mime
View raw message