You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Sandro Mario Zbinden (JIRA)" <ji...@apache.org> on 2013/07/24 17:49:49 UTC

[jira] [Comment Edited] (SOLR-5073) Improve SolrQuery class and add support for facet limit on per field basis in SolrJ

    [ https://issues.apache.org/jira/browse/SOLR-5073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13718499#comment-13718499 ] 

Sandro Mario Zbinden edited comment on SOLR-5073 at 7/24/13 3:48 PM:
---------------------------------------------------------------------

Okay if someone want to use this feature he could just write solrquery.set( "f." + field + "."+FacetParams.FACET_LIMIT, limit); 
I was thinking that adding the method with the param field to the solrj project makes it easier  to realize that you can do a facet limit on a per field basis. I will post a patch for that
                
      was (Author: sandrozbinden):
    Okay if someone want to use this feature he could just write solrquery.set( "f."+field+"."+FacetParams.FACET_LIMIT, limit); 
I was thinking that adding the method with the param field to the solrj project makes it easier  to realize that you can do a facet limit on a per field basis. I will post a patch for that
                  
> Improve SolrQuery class and add support for facet limit on per field basis in SolrJ
> -----------------------------------------------------------------------------------
>
>                 Key: SOLR-5073
>                 URL: https://issues.apache.org/jira/browse/SOLR-5073
>             Project: Solr
>          Issue Type: Improvement
>          Components: clients - java
>    Affects Versions: 5.0, 4.4
>            Reporter: Sandro Mario Zbinden
>            Priority: Minor
>              Labels: facet, solrj
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> Currently the SolrQuery (org.apache.solr.client.solrj) class supports the setFacetLimit(int limit) and getFacetLimit() method. 
> Recently someone added a feature to specifiy the facet.limit on a per field basis. It would be great if this feature could be used from solrj.
> with setFacetLimit(String field, int limit) and getFacetLimit(String field)
> setFacetPrefix is already implemetned like this.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org