You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Noah Lerner (Jira)" <ji...@apache.org> on 2020/01/09 13:34:00 UTC

[jira] [Resolved] (SOLR-14177) Facet query on prefix `null` returns all top results

     [ https://issues.apache.org/jira/browse/SOLR-14177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Noah Lerner resolved SOLR-14177.
--------------------------------
    Resolution: Not A Bug

> Facet query on prefix `null` returns all top results
> ----------------------------------------------------
>
>                 Key: SOLR-14177
>                 URL: https://issues.apache.org/jira/browse/SOLR-14177
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: FacetComponent
>    Affects Versions: 8.3
>            Reporter: Noah Lerner
>            Priority: Major
>
> When making a query to the facet module with prefix string `null`, the top results are returned.
> Here is my request:
> {code:java}
> /solr/1101541/select?fq=content_type:PARENT&q=:&json.facet=%7bfacet:%7bterms:%7bprefix:null%2cfield:text_en_total%2cmincount:1%2climit:10%7d%7d%7d&rows=0{code}
>  
> Here is the response:
>  
> {code:javascript}
> {
>   "responseHeader":{
>     "zkConnected":true,
>     "status":0,
>     "QTime":44,
>     "params":{
>       "q":"*:*",
>       "json.facet":"{facet:{terms:{prefix:null,field:text_en_total,mincount:1,limit:10}}}",
>       "fq":"content_type:PARENT",
>       "rows":"0"}},
>   "response":{"numFound":2661,"start":0,"maxScore":1.0,"docs":[]
>   },
>   "facets":{
>     "count":2661,
>     "facet":{
>       "buckets":[{
>           "val":"you",
>           "count":2661},
>         {
>           "val":"i",
>           "count":2659},
>         {
>           "val":"okay",
>           "count":2640},
>         {
>           "val":"have",
>           "count":2636},
>         {
>           "val":"your",
>           "count":2630},
>         {
>           "val":"can",
>           "count":2610},
>         {
>           "val":"rogers",
>           "count":2604},
>         {
>           "val":"name",
>           "count":2590},
>         {
>           "val":"thank",
>           "count":2588},
>         {
>           "val":"so",
>           "count":2564}]}}}
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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