You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
or Catmandu::Error->throw("cql error: unknown index $qualifier");
The problem is that the index name doesn't match because it's lowercased to bib.titleseries at line 112. Which I guess is done to make the index name case-insensitive when searching? This requires you to only use lowercase index names in the configuration file though. Which is not always suitable, since the cql_mapping is also used to generate the explain response by Dancer-Plugin-Catmandu-SRU. And the index names in the explain response may need to be correctly cased according to some standard, like the bib context set.
As a workaround I commented out line 112.
I guess one solution could be to introduce a configuration parameter that makes the lowercasing optional.
Another could be to map lowercased versions of the keys in $indexes to the actual keys, so that the lookup is case insensitive even if the index names are not defined using all lowercase in the configuration file. I'm a novice when it comes to Perl, but I could try to make a PR for this as a learning exercise :)
Let me know what you think.
The text was updated successfully, but these errors were encountered:
Hi. I tried to define a few indices with camelcase, such as
bib.titleSeries
:But this resulted in a CQL Query syntax error from here:
Catmandu-Store-Elasticsearch/lib/Catmandu/Store/ElasticSearch/CQL.pm
Line 116 in 8ea96b8
The problem is that the index name doesn't match because it's lowercased to
bib.titleseries
at line 112. Which I guess is done to make the index name case-insensitive when searching? This requires you to only use lowercase index names in the configuration file though. Which is not always suitable, since thecql_mapping
is also used to generate theexplain
response by Dancer-Plugin-Catmandu-SRU. And the index names in the explain response may need to be correctly cased according to some standard, like the bib context set.As a workaround I commented out line 112.
I guess one solution could be to introduce a configuration parameter that makes the lowercasing optional.
Another could be to map lowercased versions of the keys in
$indexes
to the actual keys, so that the lookup is case insensitive even if the index names are not defined using all lowercase in the configuration file. I'm a novice when it comes to Perl, but I could try to make a PR for this as a learning exercise :)Let me know what you think.
The text was updated successfully, but these errors were encountered: