[jira] [Commented] (SOLR-12979) CollapseQParser: inconsistent error handling when a field is indexed=false docValues=false

2019-06-24 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on SOLR-12979:


Commit 438364ab94d937a450ed8bd62bc09eedab915f6e in lucene-solr's branch 
refs/heads/branch_8x from Munendra S N
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=438364a ]

SOLR-12979: fail fast when collapse field is non-docValued & non-uninvertible

* Improve error message when collapse field is non-docValued & non-uninvertible.
  Return error code 400 instead of 500 in the above case


> CollapseQParser: inconsistent error handling when a field is indexed=false 
> docValues=false
> --
>
> Key: SOLR-12979
> URL: https://issues.apache.org/jira/browse/SOLR-12979
> Project: Solr
>  Issue Type: Bug
>Reporter: Hoss Man
>Assignee: Munendra S N
>Priority: Major
> Attachments: SOLR-12979.patch, SOLR-12979.patch, SOLR-12979.patch, 
> SOLR-12979.patch
>
>
> The CollapseQParser behaves oddly and gives inconsistent error messages if 
> you try to use it on a field that is {{indexed="false docValues="false"}} -- 
> particularly when {{hint=top_fc}} is also used and a NullPointerException 
> gets thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (SOLR-12979) CollapseQParser: inconsistent error handling when a field is indexed=false docValues=false

2019-06-24 Thread ASF subversion and git services (JIRA)


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

ASF subversion and git services commented on SOLR-12979:


Commit e0e5296abcef97e3cba4bcf35c415d5a2351dc0c in lucene-solr's branch 
refs/heads/master from Munendra S N
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=e0e5296 ]

SOLR-12979: fail fast when collapse field is non-docValued & non-uninvertible

* Improve error message when collapse field is non-docValued & non-uninvertible.
  Return error code 400 instead of 500 in the above case


> CollapseQParser: inconsistent error handling when a field is indexed=false 
> docValues=false
> --
>
> Key: SOLR-12979
> URL: https://issues.apache.org/jira/browse/SOLR-12979
> Project: Solr
>  Issue Type: Bug
>Reporter: Hoss Man
>Assignee: Munendra S N
>Priority: Major
> Attachments: SOLR-12979.patch, SOLR-12979.patch, SOLR-12979.patch, 
> SOLR-12979.patch
>
>
> The CollapseQParser behaves oddly and gives inconsistent error messages if 
> you try to use it on a field that is {{indexed="false docValues="false"}} -- 
> particularly when {{hint=top_fc}} is also used and a NullPointerException 
> gets thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (SOLR-12979) CollapseQParser: inconsistent error handling when a field is indexed=false docValues=false

2019-06-24 Thread Lucene/Solr QA (JIRA)


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

Lucene/Solr QA commented on SOLR-12979:
---

| (/) *{color:green}+1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
|| || || || {color:brown} Prechecks {color} ||
| {color:green}+1{color} | {color:green} test4tests {color} | {color:green}  0m 
 0s{color} | {color:green} The patch appears to include 1 new or modified test 
files. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  2m  
8s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  2m  
8s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javac {color} | {color:green}  2m  
8s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} Release audit (RAT) {color} | 
{color:green}  2m  8s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} Check forbidden APIs {color} | 
{color:green}  2m  8s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} Validate source patterns {color} | 
{color:green}  2m  8s{color} | {color:green} the patch passed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:green}+1{color} | {color:green} unit {color} | {color:green} 50m 
45s{color} | {color:green} core in the patch passed. {color} |
| {color:black}{color} | {color:black} {color} | {color:black} 57m 59s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| JIRA Issue | SOLR-12979 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12972763/SOLR-12979.patch |
| Optional Tests |  compile  javac  unit  ratsources  checkforbiddenapis  
validatesourcepatterns  |
| uname | Linux lucene1-us-west 4.4.0-137-generic #163~14.04.1-Ubuntu SMP Mon 
Sep 24 17:14:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | ant |
| Personality | 
/home/jenkins/jenkins-slave/workspace/PreCommit-SOLR-Build/sourcedir/dev-tools/test-patch/lucene-solr-yetus-personality.sh
 |
| git revision | master / 689fa58 |
| ant | version: Apache Ant(TM) version 1.9.3 compiled on July 24 2018 |
| Default Java | LTS |
|  Test Results | 
https://builds.apache.org/job/PreCommit-SOLR-Build/458/testReport/ |
| modules | C: solr solr/core U: solr |
| Console output | 
https://builds.apache.org/job/PreCommit-SOLR-Build/458/console |
| Powered by | Apache Yetus 0.7.0   http://yetus.apache.org |


This message was automatically generated.



> CollapseQParser: inconsistent error handling when a field is indexed=false 
> docValues=false
> --
>
> Key: SOLR-12979
> URL: https://issues.apache.org/jira/browse/SOLR-12979
> Project: Solr
>  Issue Type: Bug
>Reporter: Hoss Man
>Assignee: Munendra S N
>Priority: Major
> Attachments: SOLR-12979.patch, SOLR-12979.patch, SOLR-12979.patch, 
> SOLR-12979.patch
>
>
> The CollapseQParser behaves oddly and gives inconsistent error messages if 
> you try to use it on a field that is {{indexed="false docValues="false"}} -- 
> particularly when {{hint=top_fc}} is also used and a NullPointerException 
> gets thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (SOLR-12979) CollapseQParser: inconsistent error handling when a field is indexed=false docValues=false

2019-06-24 Thread Mikhail Khludnev (JIRA)


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

Mikhail Khludnev commented on SOLR-12979:
-

+1

> CollapseQParser: inconsistent error handling when a field is indexed=false 
> docValues=false
> --
>
> Key: SOLR-12979
> URL: https://issues.apache.org/jira/browse/SOLR-12979
> Project: Solr
>  Issue Type: Bug
>Reporter: Hoss Man
>Assignee: Munendra S N
>Priority: Major
> Attachments: SOLR-12979.patch, SOLR-12979.patch, SOLR-12979.patch, 
> SOLR-12979.patch
>
>
> The CollapseQParser behaves oddly and gives inconsistent error messages if 
> you try to use it on a field that is {{indexed="false docValues="false"}} -- 
> particularly when {{hint=top_fc}} is also used and a NullPointerException 
> gets thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (SOLR-12979) CollapseQParser: inconsistent error handling when a field is indexed=false docValues=false

2019-06-24 Thread Munendra S N (JIRA)


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

Munendra S N commented on SOLR-12979:
-

 [^SOLR-12979.patch] 
* With changes entry

> CollapseQParser: inconsistent error handling when a field is indexed=false 
> docValues=false
> --
>
> Key: SOLR-12979
> URL: https://issues.apache.org/jira/browse/SOLR-12979
> Project: Solr
>  Issue Type: Bug
>Reporter: Hoss Man
>Priority: Major
> Attachments: SOLR-12979.patch, SOLR-12979.patch, SOLR-12979.patch, 
> SOLR-12979.patch
>
>
> The CollapseQParser behaves oddly and gives inconsistent error messages if 
> you try to use it on a field that is {{indexed="false docValues="false"}} -- 
> particularly when {{hint=top_fc}} is also used and a NullPointerException 
> gets thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (SOLR-12979) CollapseQParser: inconsistent error handling when a field is indexed=false docValues=false

2019-06-04 Thread Lucene/Solr QA (JIRA)


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

Lucene/Solr QA commented on SOLR-12979:
---

| (/) *{color:green}+1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
|| || || || {color:brown} Prechecks {color} ||
| {color:green}+1{color} | {color:green} test4tests {color} | {color:green}  0m 
 0s{color} | {color:green} The patch appears to include 1 new or modified test 
files. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  2m  
3s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  1m 
53s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javac {color} | {color:green}  1m 
53s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} Release audit (RAT) {color} | 
{color:green}  1m 53s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} Check forbidden APIs {color} | 
{color:green}  1m 53s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} Validate source patterns {color} | 
{color:green}  1m 53s{color} | {color:green} the patch passed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:green}+1{color} | {color:green} unit {color} | {color:green} 48m 
20s{color} | {color:green} core in the patch passed. {color} |
| {color:black}{color} | {color:black} {color} | {color:black} 55m  6s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| JIRA Issue | SOLR-12979 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12970640/SOLR-12979.patch |
| Optional Tests |  compile  javac  unit  ratsources  checkforbiddenapis  
validatesourcepatterns  |
| uname | Linux lucene1-us-west 4.4.0-137-generic #163~14.04.1-Ubuntu SMP Mon 
Sep 24 17:14:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | ant |
| Personality | 
/home/jenkins/jenkins-slave/workspace/PreCommit-SOLR-Build/sourcedir/dev-tools/test-patch/lucene-solr-yetus-personality.sh
 |
| git revision | master / b6d20b6 |
| ant | version: Apache Ant(TM) version 1.9.3 compiled on July 24 2018 |
| Default Java | LTS |
|  Test Results | 
https://builds.apache.org/job/PreCommit-SOLR-Build/406/testReport/ |
| modules | C: solr/core U: solr/core |
| Console output | 
https://builds.apache.org/job/PreCommit-SOLR-Build/406/console |
| Powered by | Apache Yetus 0.7.0   http://yetus.apache.org |


This message was automatically generated.



> CollapseQParser: inconsistent error handling when a field is indexed=false 
> docValues=false
> --
>
> Key: SOLR-12979
> URL: https://issues.apache.org/jira/browse/SOLR-12979
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>Reporter: Hoss Man
>Priority: Major
> Attachments: SOLR-12979.patch, SOLR-12979.patch, SOLR-12979.patch
>
>
> The CollapseQParser behaves oddly and gives inconsistent error messages if 
> you try to use it on a field that is {{indexed="false docValues="false"}} -- 
> particularly when {{hint=top_fc}} is also used and a NullPointerException 
> gets thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (SOLR-12979) CollapseQParser: inconsistent error handling when a field is indexed=false docValues=false

2019-06-03 Thread Munendra S N (JIRA)


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

Munendra S N commented on SOLR-12979:
-

 [^SOLR-12979.patch] 
Updated patch after removing usage of forbidden APIs 

> CollapseQParser: inconsistent error handling when a field is indexed=false 
> docValues=false
> --
>
> Key: SOLR-12979
> URL: https://issues.apache.org/jira/browse/SOLR-12979
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>Reporter: Hoss Man
>Priority: Major
> Attachments: SOLR-12979.patch, SOLR-12979.patch, SOLR-12979.patch
>
>
> The CollapseQParser behaves oddly and gives inconsistent error messages if 
> you try to use it on a field that is {{indexed="false docValues="false"}} -- 
> particularly when {{hint=top_fc}} is also used and a NullPointerException 
> gets thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (SOLR-12979) CollapseQParser: inconsistent error handling when a field is indexed=false docValues=false

2019-06-03 Thread Lucene/Solr QA (JIRA)


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

Lucene/Solr QA commented on SOLR-12979:
---

| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
|| || || || {color:brown} Prechecks {color} ||
| {color:green}+1{color} | {color:green} test4tests {color} | {color:green}  0m 
 0s{color} | {color:green} The patch appears to include 1 new or modified test 
files. {color} |
|| || || || {color:brown} master Compile Tests {color} ||
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  4m  
2s{color} | {color:green} master passed {color} |
|| || || || {color:brown} Patch Compile Tests {color} ||
| {color:green}+1{color} | {color:green} compile {color} | {color:green}  3m 
44s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} javac {color} | {color:green}  3m 
44s{color} | {color:green} the patch passed {color} |
| {color:green}+1{color} | {color:green} Release audit (RAT) {color} | 
{color:green}  3m 44s{color} | {color:green} the patch passed {color} |
| {color:red}-1{color} | {color:red} Check forbidden APIs {color} | {color:red} 
 3m 44s{color} | {color:red} Check forbidden APIs check-forbidden-apis failed 
{color} |
| {color:red}-1{color} | {color:red} Validate source patterns {color} | 
{color:red}  3m 44s{color} | {color:red} Check forbidden APIs 
check-forbidden-apis failed {color} |
|| || || || {color:brown} Other Tests {color} ||
| {color:green}+1{color} | {color:green} unit {color} | {color:green} 85m 
34s{color} | {color:green} core in the patch passed. {color} |
| {color:black}{color} | {color:black} {color} | {color:black} 94m 32s{color} | 
{color:black} {color} |
\\
\\
|| Subsystem || Report/Notes ||
| JIRA Issue | SOLR-12979 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12970599/SOLR-12979.patch |
| Optional Tests |  compile  javac  unit  ratsources  checkforbiddenapis  
validatesourcepatterns  |
| uname | Linux lucene2-us-west.apache.org 4.4.0-112-generic #135-Ubuntu SMP 
Fri Jan 19 11:48:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | ant |
| Personality | 
/home/jenkins/jenkins-slave/workspace/PreCommit-SOLR-Build/sourcedir/dev-tools/test-patch/lucene-solr-yetus-personality.sh
 |
| git revision | master / b09d462 |
| ant | version: Apache Ant(TM) version 1.9.6 compiled on July 20 2018 |
| Default Java | LTS |
| Check forbidden APIs | 
https://builds.apache.org/job/PreCommit-SOLR-Build/404/artifact/out/patch-check-forbidden-apis-solr.txt
 |
| Validate source patterns | 
https://builds.apache.org/job/PreCommit-SOLR-Build/404/artifact/out/patch-check-forbidden-apis-solr.txt
 |
|  Test Results | 
https://builds.apache.org/job/PreCommit-SOLR-Build/404/testReport/ |
| modules | C: solr/core U: solr/core |
| Console output | 
https://builds.apache.org/job/PreCommit-SOLR-Build/404/console |
| Powered by | Apache Yetus 0.7.0   http://yetus.apache.org |


This message was automatically generated.



> CollapseQParser: inconsistent error handling when a field is indexed=false 
> docValues=false
> --
>
> Key: SOLR-12979
> URL: https://issues.apache.org/jira/browse/SOLR-12979
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>Reporter: Hoss Man
>Priority: Major
> Attachments: SOLR-12979.patch, SOLR-12979.patch
>
>
> The CollapseQParser behaves oddly and gives inconsistent error messages if 
> you try to use it on a field that is {{indexed="false docValues="false"}} -- 
> particularly when {{hint=top_fc}} is also used and a NullPointerException 
> gets thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (SOLR-12979) CollapseQParser: inconsistent error handling when a field is indexed=false docValues=false

2019-06-01 Thread Munendra S N (JIRA)


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

Munendra S N commented on SOLR-12979:
-

 [^SOLR-12979.patch] 
Corrected the error in the comment

> CollapseQParser: inconsistent error handling when a field is indexed=false 
> docValues=false
> --
>
> Key: SOLR-12979
> URL: https://issues.apache.org/jira/browse/SOLR-12979
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>Reporter: Hoss Man
>Priority: Major
> Attachments: SOLR-12979.patch, SOLR-12979.patch
>
>
> The CollapseQParser behaves oddly and gives inconsistent error messages if 
> you try to use it on a field that is {{indexed="false docValues="false"}} -- 
> paerticularly when {{hint=top_fc}} is also used and a NullPointerException 
> gets thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (SOLR-12979) CollapseQParser: inconsistent error handling when a field is indexed=false docValues=false

2019-06-01 Thread Munendra S N (JIRA)


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

Munendra S N commented on SOLR-12979:
-

 [^SOLR-12979.patch] 
* If uninvertible=false and docValues=false for collapsing field, then request 
returns Bad Request(there won't be case indexed=false and uninvertible=true, as 
schema upload fails)
* As this check is moved to init phase(fail fast) even when there are no docs 
for the the field, bad request is returned.

> CollapseQParser: inconsistent error handling when a field is indexed=false 
> docValues=false
> --
>
> Key: SOLR-12979
> URL: https://issues.apache.org/jira/browse/SOLR-12979
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>Reporter: Hoss Man
>Priority: Major
> Attachments: SOLR-12979.patch
>
>
> The CollapseQParser behaves oddly and gives inconsistent error messages if 
> you try to use it on a field that is {{indexed="false docValues="false"}} -- 
> paerticularly when {{hint=top_fc}} is also used and a NullPointerException 
> gets thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (SOLR-12979) CollapseQParser: inconsistent error handling when a field is indexed=false docValues=false

2018-11-08 Thread Hoss Man (JIRA)


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

Hoss Man commented on SOLR-12979:
-


For Example: Note that techproducts has this field definied...

{noformat}
   
{noformat}

Here is how collapsing on that field behaves when there are no docs in the 
index with that field, depending on the value of {{hint}}...

{noformat}
$ bin/solr -e techproducts
...

# regular collapse

$ curl 
'http://localhost:8983/solr/techproducts/select?q=*:*=true=100&=%7B!collapse%20field=_src_%7D'
{
  "response":{"numFound":0,"start":0,"docs":[]
  }}

# hint=top_fc

$ curl 
'http://localhost:8983/solr/techproducts/select?q=*:*=true=100&=%7B!collapse%20hint=top_fc%20field=_src_%7D'
{
  "error":{
"msg":"java.lang.NullPointerException",
"trace":"java.lang.RuntimeException: java.lang.NullPointerException\n\tat 
org.apache.solr.search.CollapsingQParserPlugin$CollapsingPostFilter.getFilterCollector(CollapsingQParserPlugin.java:384)\n\tat
 org.apache.solr.search.SolrIndexSearcher.getProcessedFilter(...

{noformat}

And here is how the behavior changes once at least one document is added...

{noformat}
$ curl -H 'Content-Type: application/json' 
'http://localhost:8983/solr/techproducts/update?commit=true' --data-binary 
'[{"id":"hoss","_src_":"foo"}]'
...

# regular collapse

$ curl 
'http://localhost:8983/solr/techproducts/select?q=*:*=true=100&=%7B!collapse%20field=_src_%7D'
{
  "error":{
"msg":"unexpected docvalues type NONE for field '_src_' (expected=SORTED). 
Re-index with correct docvalues type.",
"trace":"java.lang.IllegalStateException: unexpected docvalues type NONE 
for field '_src_' (expected=SORTED). Re-index with corre...

# hint=top_fc

$ curl 
'http://localhost:8983/solr/techproducts/select?q=*:*=true=100&=%7B!collapse%20hint=top_fc%20field=_src_%7D'
{
  "error":{
"msg":"java.lang.NullPointerException",
"trace":"java.lang.RuntimeException: java.lang.NullPointerException\n\tat 
org.apache.solr.search.CollapsingQParserPlugin$CollapsingPostFilter.getFilterCollector(CollapsingQParserPlugin.java:384)\n\tat
 org.apache.solr.search.SolrIndexSearcher.getProcessedFilter(...

{noformat}


> CollapseQParser: inconsistent error handling when a field is indexed=false 
> docValues=false
> --
>
> Key: SOLR-12979
> URL: https://issues.apache.org/jira/browse/SOLR-12979
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>Reporter: Hoss Man
>Priority: Major
>
> The CollapseQParser behaves oddly and gives inconsistent error messages if 
> you try to use it on a field that is {{indexed="false docValues="false"}} -- 
> paerticularly when {{hint=top_fc}} is also used and a NullPointerException 
> gets thrown.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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