Scott,
What is the data type of the field "author" in your schema? Collapse parser
works only for string, int and float data types types

-Rahul

On Wed, Sep 22, 2021 at 1:33 PM Scott Derrick <sc...@tnstaafl.net> wrote:

>
> I was using result grouping but the docs recommend using collapse expand
>
> I tried this simple request and am seeing an error I don't understand?
>
> responseHeader: {
>
>      status: 500,
>      QTime: 4,
>      params: {
>          q: "type:(incoming_correspondence)",
>          fl: "title,author,origin,origGeo,settlement,region",
>          json: "",
>          sort: "score desc",
>          fq: "{!collapse field=author}"
>      }
>
> },
> error: {
>
>      msg: "java.io.IOException: 64 bit numeric collapse fields are not
> supported",
>      truncated result.....
>
>
> if I use grouping on the same field, I get the expected result
>
> responseHeader: {
>
>      status: 0,
>      QTime: 29,
>      params: {
>          q: "type:(incoming_correspondence)",
>          fl: "title,author,origin,origGeo,settlement,region",
>          json: "",
>          sort: "score desc",
>          group.field: "author",
>          group: "true"
>      }
>
> },
> grouped: {
>
>      author: {
>          matches: 2661,
>          groups: [
>              {
>                  groupValue: "baker",
>                  doclist: {
>                      numFound: 14,
>                      start: 0,
>                      docs: [
>                          {
>                              author: "Mary Baker Eddy",
>                              origin: "1885-10-07",
>                              title: "Mary Baker Eddy to Sarah H. Crosse,
> October 7, 1885"
>                          }
>                      ]
>                  }
>              },
>     truncated result....
>

Reply via email to