You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Priya (JIRA)" <ji...@apache.org> on 2017/12/06 08:44:00 UTC

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

Priya created SOLR-11728:
----------------------------

             Summary: Grouping + Facets error
                 Key: SOLR-11728
                 URL: https://issues.apache.org/jira/browse/SOLR-11728
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: Facet Module, faceting
    Affects Versions: 7.1
            Reporter: Priya


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
(v6.4.14#64029)

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