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

Modassar Ather edited comment on SOLR-4647 at 7/15/14 9:40 AM:
---------------------------------------------------------------

Hi,

I am also seeing this issue while doing grouping on docValues enabled field. I 
checked createField(...) method of FieldType which returns null if the field is 
not indexed and stored. 
And when the returned field (which is null) gets passed to the 
fieldType.toObject(...) method from finish() method of Grouping.java it causes 
the NullPointerException.
Kindly provide inputs if any of the indexe/stored needs to be set to true while 
creating a docValue field or this is an issue.

Thanks,
Modassar



was (Author: modassar):
Hi,

I am also seeing this issue while doing grouping on docValues enabled field. I 
checked createField(...) method of FieldType which returns null if the field is 
not indexed and stored. 
Kindly provide inputs if any of the indexe/stored needs to be set to true while 
creating a docValue field or this is an issue.

Thanks,
Modassar


> Grouping is broken on docvalues-only fields
> -------------------------------------------
>
>                 Key: SOLR-4647
>                 URL: https://issues.apache.org/jira/browse/SOLR-4647
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 4.2
>            Reporter: Adrien Grand
>              Labels: newdev
>
> There are a few places where grouping uses 
> FieldType.toObject(SchemaField.createField(String, float)) to translate a 
> String field value to an Object. The problem is that createField returns null 
> when the field is neither stored nor indexed, even if it has doc values.
> An option to fix it could be to use the ValueSource instead to resolve the 
> Object value (similarily to NumericFacets).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to