What do you mean with "
IMHO, the error message asks me to add indexed=true uninvertible=true or
docValues=true to title_s_lower, which is impossible, since it is a
copy-field.".

Copy-fields are like any other field, just the source for their values
comes from source fields.
You have full control over their attributes.
--------------------------

Alessandro Benedetti
Visiting card - https://sease.io/about/alessandro-benedetti
<http://about.me/alessandro_benedetti>
Blog - https://sease.io/blog <http://alexbenedetti.blogspot.co.uk>

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

On Wed, 2 Apr 2025, 13:33 Ehrenleitner Robert Harald, <
robert.ehrenleit...@plus.ac.at> wrote:

> Hi all,
>
> when querying my index and trying to sort it by title_s_lower, it responds
> with an HTTP error 400:
>
> {
>   "error":{
>
> "metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"],
>     "msg":"can not sort on a field w/o docValues unless it is indexed=true
> uninvertible=true and the type supports Uninversion: title_s_lower",
>     "code":400
>   }
> }
>
> IMHO, the error message asks me to add indexed=true uninvertible=true or
> docValues=true to title_s_lower, which is impossible, since it is a
> copy-field.
>
> Excerpts of the JSON data to create the index:
>
> {
>   "add-field": [
> // cut
>      {
>             "name": "title",
>             "type": "text_general",
>             "stored": true,
>             "indexed": true,
>             "multiValued": false,
>             "required": true
>         },
> // cut
> ],
>  "add-copy-field": [
>         {
>             "source": "title",
>             "dest": "title_s_lower"
>         }
>     ]
> // cut
>
> Can someone tell me how to fix this?
>
> Mag.phil. Robert Ehrenleitner, BEng.
> --
>
> Mag.phil. Robert Ehrenleitner, BEng.
>
> Web-Developer
>
> IT-Services | Application & Digitalization Services
>
> Hellbrunner Straße 34 | 5020 Salzburg | Austria
> <https://www.google.com/maps/search/Hellbrunner+Stra%C3%9Fe+34+%7C+5020+Salzburg+%7C+Austria?entry=gmail&source=g>
>
> Tel.: +43/(0)662/8044 - 6778
>
> *www.plus.ac.at <http://www.plus.ac.at>*
>
>
>

Reply via email to