[jira] [Commented] (SOLR-8155) json.facet - prefix parameter doesn't work properly

2016-04-11 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-8155:
---

Commit c3446734a2b6dccd8092f5672651779223076dac in lucene-solr's branch 
refs/heads/branch_5_5 from [~yo...@apache.org]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c344673 ]

SOLR-8155: fix UnInvertedField.collectDocsGeneric, used for facet.prefix or 
non-count sorting


> json.facet - prefix parameter doesn't work properly
> ---
>
> Key: SOLR-8155
> URL: https://issues.apache.org/jira/browse/SOLR-8155
> Project: Solr
>  Issue Type: Bug
>  Components: Facet Module
>Affects Versions: 5.3
>Reporter: Yosi Nesher
>Assignee: Yonik Seeley
> Fix For: 6.0
>
> Attachments: SOLR-8155.patch, SOLR-8155.patch
>
>
> When using prefix in nested facets, not all values are found.
> In the following query, I use facet with prefix in both old way (facet.field) 
> and new way (json.facet).
> In old way, I get 5 values. In new way I get only 3.
> This is the field definition in the schema:
>  required="false" multiValued="true" />
> When I add to the schema docValues="true" the issue is solved.
> Query:
> http://localhost:8983/solr/mycore/select?q=*%3A*=0=json=true=true=topics_f=2={trendFieldFacet:{type:terms,%20field:topics_f,%20%20prefix:%222%22%20}}
> Response:
> {
>   "responseHeader": {
> "status": 0,
> "QTime": 0,
> "params": {
>   "q": "*:*",
>   "json.facet": "{trendFieldFacet:{type:terms, field:topics_f,  
> prefix:\"2\" }}",
>   "facet.field": "topics_f",
>   "indent": "true",
>   "facet.prefix": "2",
>   "rows": "0",
>   "wt": "json",
>   "facet": "true",
>   "_": "1444566142012"
> }
>   },
>   "response": {
> "numFound": 17,
> "start": 0,
> "docs": []
>   },
>   "facet_counts": {
> "facet_queries": {},
> "facet_fields": {
>   "topics_f": [
> "2/device/iphone",
> 4,
> "2/device/samsung",
> 4,
> "2/city/london",
> 1,
> "2/city/rome",
> 1,
> "2/device/other",
> 1
>   ]
> },
> "facet_dates": {},
> "facet_ranges": {},
> "facet_intervals": {},
> "facet_heatmaps": {}
>   },
>   "facets": {
> "count": 17,
> "trendFieldFacet": {
>   "buckets": [
> {
>   "val": "2/device/iphone",
>   "count": 4
> },
> {
>   "val": "2/device/samsung",
>   "count": 4
> },
> {
>   "val": "2/device/other",
>   "count": 1
> }
>   ]
> }
>   }
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (SOLR-8155) json.facet - prefix parameter doesn't work properly

2016-04-11 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-8155:
---

Commit 0073ba9700d5df7b00d77a5d5dd831316f138042 in lucene-solr's branch 
refs/heads/branch_5x from [~yo...@apache.org]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=0073ba9 ]

SOLR-8155: fix UnInvertedField.collectDocsGeneric, used for facet.prefix or 
non-count sorting


> json.facet - prefix parameter doesn't work properly
> ---
>
> Key: SOLR-8155
> URL: https://issues.apache.org/jira/browse/SOLR-8155
> Project: Solr
>  Issue Type: Bug
>  Components: Facet Module
>Affects Versions: 5.3
>Reporter: Yosi Nesher
>Assignee: Yonik Seeley
> Fix For: 6.0
>
> Attachments: SOLR-8155.patch, SOLR-8155.patch
>
>
> When using prefix in nested facets, not all values are found.
> In the following query, I use facet with prefix in both old way (facet.field) 
> and new way (json.facet).
> In old way, I get 5 values. In new way I get only 3.
> This is the field definition in the schema:
>  required="false" multiValued="true" />
> When I add to the schema docValues="true" the issue is solved.
> Query:
> http://localhost:8983/solr/mycore/select?q=*%3A*=0=json=true=true=topics_f=2={trendFieldFacet:{type:terms,%20field:topics_f,%20%20prefix:%222%22%20}}
> Response:
> {
>   "responseHeader": {
> "status": 0,
> "QTime": 0,
> "params": {
>   "q": "*:*",
>   "json.facet": "{trendFieldFacet:{type:terms, field:topics_f,  
> prefix:\"2\" }}",
>   "facet.field": "topics_f",
>   "indent": "true",
>   "facet.prefix": "2",
>   "rows": "0",
>   "wt": "json",
>   "facet": "true",
>   "_": "1444566142012"
> }
>   },
>   "response": {
> "numFound": 17,
> "start": 0,
> "docs": []
>   },
>   "facet_counts": {
> "facet_queries": {},
> "facet_fields": {
>   "topics_f": [
> "2/device/iphone",
> 4,
> "2/device/samsung",
> 4,
> "2/city/london",
> 1,
> "2/city/rome",
> 1,
> "2/device/other",
> 1
>   ]
> },
> "facet_dates": {},
> "facet_ranges": {},
> "facet_intervals": {},
> "facet_heatmaps": {}
>   },
>   "facets": {
> "count": 17,
> "trendFieldFacet": {
>   "buckets": [
> {
>   "val": "2/device/iphone",
>   "count": 4
> },
> {
>   "val": "2/device/samsung",
>   "count": 4
> },
> {
>   "val": "2/device/other",
>   "count": 1
> }
>   ]
> }
>   }
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (SOLR-8155) json.facet - prefix parameter doesn't work properly

2016-03-05 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-8155:
---

Commit 1b332b1da5fa490a541ea46823c6681501549113 in lucene-solr's branch 
refs/heads/branch_6_0 from [~yo...@apache.org]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=1b332b1 ]

SOLR-8155: fix UnInvertedField.collectDocsGeneric, used for facet.prefix or 
non-count sorting


> json.facet - prefix parameter doesn't work properly
> ---
>
> Key: SOLR-8155
> URL: https://issues.apache.org/jira/browse/SOLR-8155
> Project: Solr
>  Issue Type: Bug
>  Components: Facet Module
>Affects Versions: 5.3
>Reporter: Yosi Nesher
>Assignee: Yonik Seeley
> Fix For: 6.0
>
> Attachments: SOLR-8155.patch, SOLR-8155.patch
>
>
> When using prefix in nested facets, not all values are found.
> In the following query, I use facet with prefix in both old way (facet.field) 
> and new way (json.facet).
> In old way, I get 5 values. In new way I get only 3.
> This is the field definition in the schema:
>  required="false" multiValued="true" />
> When I add to the schema docValues="true" the issue is solved.
> Query:
> http://localhost:8983/solr/mycore/select?q=*%3A*=0=json=true=true=topics_f=2={trendFieldFacet:{type:terms,%20field:topics_f,%20%20prefix:%222%22%20}}
> Response:
> {
>   "responseHeader": {
> "status": 0,
> "QTime": 0,
> "params": {
>   "q": "*:*",
>   "json.facet": "{trendFieldFacet:{type:terms, field:topics_f,  
> prefix:\"2\" }}",
>   "facet.field": "topics_f",
>   "indent": "true",
>   "facet.prefix": "2",
>   "rows": "0",
>   "wt": "json",
>   "facet": "true",
>   "_": "1444566142012"
> }
>   },
>   "response": {
> "numFound": 17,
> "start": 0,
> "docs": []
>   },
>   "facet_counts": {
> "facet_queries": {},
> "facet_fields": {
>   "topics_f": [
> "2/device/iphone",
> 4,
> "2/device/samsung",
> 4,
> "2/city/london",
> 1,
> "2/city/rome",
> 1,
> "2/device/other",
> 1
>   ]
> },
> "facet_dates": {},
> "facet_ranges": {},
> "facet_intervals": {},
> "facet_heatmaps": {}
>   },
>   "facets": {
> "count": 17,
> "trendFieldFacet": {
>   "buckets": [
> {
>   "val": "2/device/iphone",
>   "count": 4
> },
> {
>   "val": "2/device/samsung",
>   "count": 4
> },
> {
>   "val": "2/device/other",
>   "count": 1
> }
>   ]
> }
>   }
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (SOLR-8155) json.facet - prefix parameter doesn't work properly

2016-03-05 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-8155:
---

Commit 4d5a33e9ba2cdd40ef1ff0230deae895fa517279 in lucene-solr's branch 
refs/heads/branch_6x from [~yo...@apache.org]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=4d5a33e ]

SOLR-8155: fix UnInvertedField.collectDocsGeneric, used for facet.prefix or 
non-count sorting


> json.facet - prefix parameter doesn't work properly
> ---
>
> Key: SOLR-8155
> URL: https://issues.apache.org/jira/browse/SOLR-8155
> Project: Solr
>  Issue Type: Bug
>  Components: Facet Module
>Affects Versions: 5.3
>Reporter: Yosi Nesher
>Assignee: Yonik Seeley
> Fix For: 6.0
>
> Attachments: SOLR-8155.patch, SOLR-8155.patch
>
>
> When using prefix in nested facets, not all values are found.
> In the following query, I use facet with prefix in both old way (facet.field) 
> and new way (json.facet).
> In old way, I get 5 values. In new way I get only 3.
> This is the field definition in the schema:
>  required="false" multiValued="true" />
> When I add to the schema docValues="true" the issue is solved.
> Query:
> http://localhost:8983/solr/mycore/select?q=*%3A*=0=json=true=true=topics_f=2={trendFieldFacet:{type:terms,%20field:topics_f,%20%20prefix:%222%22%20}}
> Response:
> {
>   "responseHeader": {
> "status": 0,
> "QTime": 0,
> "params": {
>   "q": "*:*",
>   "json.facet": "{trendFieldFacet:{type:terms, field:topics_f,  
> prefix:\"2\" }}",
>   "facet.field": "topics_f",
>   "indent": "true",
>   "facet.prefix": "2",
>   "rows": "0",
>   "wt": "json",
>   "facet": "true",
>   "_": "1444566142012"
> }
>   },
>   "response": {
> "numFound": 17,
> "start": 0,
> "docs": []
>   },
>   "facet_counts": {
> "facet_queries": {},
> "facet_fields": {
>   "topics_f": [
> "2/device/iphone",
> 4,
> "2/device/samsung",
> 4,
> "2/city/london",
> 1,
> "2/city/rome",
> 1,
> "2/device/other",
> 1
>   ]
> },
> "facet_dates": {},
> "facet_ranges": {},
> "facet_intervals": {},
> "facet_heatmaps": {}
>   },
>   "facets": {
> "count": 17,
> "trendFieldFacet": {
>   "buckets": [
> {
>   "val": "2/device/iphone",
>   "count": 4
> },
> {
>   "val": "2/device/samsung",
>   "count": 4
> },
> {
>   "val": "2/device/other",
>   "count": 1
> }
>   ]
> }
>   }
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (SOLR-8155) json.facet - prefix parameter doesn't work properly

2016-03-05 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on SOLR-8155:
---

Commit 85557261431f9314253ebe282eb6d400bf7cae03 in lucene-solr's branch 
refs/heads/master from [~yo...@apache.org]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=8555726 ]

SOLR-8155: fix UnInvertedField.collectDocsGeneric, used for facet.prefix or 
non-count sorting


> json.facet - prefix parameter doesn't work properly
> ---
>
> Key: SOLR-8155
> URL: https://issues.apache.org/jira/browse/SOLR-8155
> Project: Solr
>  Issue Type: Bug
>  Components: Facet Module
>Affects Versions: 5.3
>Reporter: Yosi Nesher
>Assignee: Yonik Seeley
> Fix For: 6.0
>
> Attachments: SOLR-8155.patch, SOLR-8155.patch
>
>
> When using prefix in nested facets, not all values are found.
> In the following query, I use facet with prefix in both old way (facet.field) 
> and new way (json.facet).
> In old way, I get 5 values. In new way I get only 3.
> This is the field definition in the schema:
>  required="false" multiValued="true" />
> When I add to the schema docValues="true" the issue is solved.
> Query:
> http://localhost:8983/solr/mycore/select?q=*%3A*=0=json=true=true=topics_f=2={trendFieldFacet:{type:terms,%20field:topics_f,%20%20prefix:%222%22%20}}
> Response:
> {
>   "responseHeader": {
> "status": 0,
> "QTime": 0,
> "params": {
>   "q": "*:*",
>   "json.facet": "{trendFieldFacet:{type:terms, field:topics_f,  
> prefix:\"2\" }}",
>   "facet.field": "topics_f",
>   "indent": "true",
>   "facet.prefix": "2",
>   "rows": "0",
>   "wt": "json",
>   "facet": "true",
>   "_": "1444566142012"
> }
>   },
>   "response": {
> "numFound": 17,
> "start": 0,
> "docs": []
>   },
>   "facet_counts": {
> "facet_queries": {},
> "facet_fields": {
>   "topics_f": [
> "2/device/iphone",
> 4,
> "2/device/samsung",
> 4,
> "2/city/london",
> 1,
> "2/city/rome",
> 1,
> "2/device/other",
> 1
>   ]
> },
> "facet_dates": {},
> "facet_ranges": {},
> "facet_intervals": {},
> "facet_heatmaps": {}
>   },
>   "facets": {
> "count": 17,
> "trendFieldFacet": {
>   "buckets": [
> {
>   "val": "2/device/iphone",
>   "count": 4
> },
> {
>   "val": "2/device/samsung",
>   "count": 4
> },
> {
>   "val": "2/device/other",
>   "count": 1
> }
>   ]
> }
>   }
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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



[jira] [Commented] (SOLR-8155) json.facet - prefix parameter doesn't work properly

2016-02-10 Thread Mikhail Khludnev (JIRA)

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

Mikhail Khludnev commented on SOLR-8155:


I think I see it while working on SOLR-8466. There is a testcase for older 
facets, which reproduces the issue. I'm going to port it for json.facets.

> json.facet - prefix parameter doesn't work properly
> ---
>
> Key: SOLR-8155
> URL: https://issues.apache.org/jira/browse/SOLR-8155
> Project: Solr
>  Issue Type: Bug
>  Components: Facet Module
>Affects Versions: 5.3
>Reporter: Yosi Nesher
>
> When using prefix in nested facets, not all values are found.
> In the following query, I use facet with prefix in both old way (facet.field) 
> and new way (json.facet).
> In old way, I get 5 values. In new way I get only 3.
> This is the field definition in the schema:
>  required="false" multiValued="true" />
> When I add to the schema docValues="true" the issue is solved.
> Query:
> http://localhost:8983/solr/mycore/select?q=*%3A*=0=json=true=true=topics_f=2={trendFieldFacet:{type:terms,%20field:topics_f,%20%20prefix:%222%22%20}}
> Response:
> {
>   "responseHeader": {
> "status": 0,
> "QTime": 0,
> "params": {
>   "q": "*:*",
>   "json.facet": "{trendFieldFacet:{type:terms, field:topics_f,  
> prefix:\"2\" }}",
>   "facet.field": "topics_f",
>   "indent": "true",
>   "facet.prefix": "2",
>   "rows": "0",
>   "wt": "json",
>   "facet": "true",
>   "_": "1444566142012"
> }
>   },
>   "response": {
> "numFound": 17,
> "start": 0,
> "docs": []
>   },
>   "facet_counts": {
> "facet_queries": {},
> "facet_fields": {
>   "topics_f": [
> "2/device/iphone",
> 4,
> "2/device/samsung",
> 4,
> "2/city/london",
> 1,
> "2/city/rome",
> 1,
> "2/device/other",
> 1
>   ]
> },
> "facet_dates": {},
> "facet_ranges": {},
> "facet_intervals": {},
> "facet_heatmaps": {}
>   },
>   "facets": {
> "count": 17,
> "trendFieldFacet": {
>   "buckets": [
> {
>   "val": "2/device/iphone",
>   "count": 4
> },
> {
>   "val": "2/device/samsung",
>   "count": 4
> },
> {
>   "val": "2/device/other",
>   "count": 1
> }
>   ]
> }
>   }
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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