You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Munendra S N (Jira)" <ji...@apache.org> on 2019/12/10 03:30:00 UTC

[jira] [Resolved] (SOLR-11728) Grouping + Facets error

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

Munendra S N resolved SOLR-11728.
---------------------------------
    Resolution: Duplicate

Closing this as duplicate of SOLR-10844 

> Grouping + Facets error
> -----------------------
>
>                 Key: SOLR-11728
>                 URL: https://issues.apache.org/jira/browse/SOLR-11728
>             Project: Solr
>          Issue Type: Bug
>          Components: Facet Module, faceting
>    Affects Versions: 7.1
>            Reporter: Priya
>            Priority: Major
>
> Facing errors on using groups and facets
> These queries work fine -
> http://localhost:8983/solr/urls/select?q=*:*&rows=0&facet=true&facet.field=city_id
> http://localhost:8983/solr/urls/select?q=*:*&rows=0&facet=true&facet.field=city_id&group=true&group.field=locality_id
> These kind of queries (where group.facet=true) is set throws errors
> http://localhost:8983/solr/urls/select?q=*:*&rows=0&facet=true&facet.field=city_id&group=true&group.field=locality_id&group.facet=true
> java.lang.IllegalStateException: unexpected docvalues type NUMERIC for
> field 'locality_id' (expected=SORTED). Re-index with correct docvalues
> type.\n\tat org.apache.lucene.index.DocValues.checkField(DocValues.java:340)\n\tat
> org.apache.lucene.index.DocValues.getSorted(DocValues.java:392)\n\tat
> org.apache.lucene.search.grouping.TermGroupFacetCollector$SV.doSetNextReader(TermGroupFacetCollector.java:146)\n\tat
> org.apache.lucene.search.SimpleCollector.getLeafCollector(SimpleCollector.java:33)\n\tat
> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:649)\n\tat
> org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:462)\n\tat
> org.apache.solr.request.SimpleFacets.getGroupedCounts(SimpleFacets.java:705)\n\tat
> org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:480)\n\tat
> org.apache.solr.request.SimpleFacets.getTermCounts(SimpleFacets.java:409)\n\tat
> org.apache.solr.request.SimpleFacets.lambda$getFacetFieldCounts$0(SimpleFacets.java:816)\n\t...
> 39 more\n",
> Schema.xml
> <field name="city_id" type="pint" indexed="true" stored="true"/>
> <field name="locality_id"  type="pint" indexed="true" stored="true"/>
> <fieldType name="pint" class="solr.IntPointField" docValues="true"/>
> Originally posted here - http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201712.mbox/%3CCAMBe3OJfET5yL9Qnh8iP4YVrKBGqtD_d2kNep-tKu0jCM%2BP8og%40mail.gmail.com%3E



--
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