Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support case insensitive fieldnames from solr #61

Open
juarezr opened this issue Nov 22, 2018 · 2 comments
Open

Support case insensitive fieldnames from solr #61

juarezr opened this issue Nov 22, 2018 · 2 comments

Comments

@juarezr
Copy link

juarezr commented Nov 22, 2018

Today mixed case field return null value instead.
For example:

<field name="id" type="string" indexed="true" stored="true"  />
<field name="clientId" type="string" indexed="true" stored="true"  required="true"/>
<field name="ownerId" type="string" indexed="true" stored="true" required="true"/>

Using the following query:

SELECT id, clientId, ownerId from my_solr_table limit 1

will return the values:

  • abcefg
  • null
  • null
@ctargett
Copy link
Contributor

Lack of support for mixed-case field names would be a surprise to me, but I guess it's possible.

Does Solr record any errors in its logs when this query is performed? It would be interesting to find out what Solr thinks it's being asked for to pinpoint the mismatch.

@juarezr
Copy link
Author

juarezr commented Nov 27, 2018

No log while querying.
When storing it depends on dynamicField configuration. But it doesn't solve the problem.

<dynamicField name="*_i"  type="int"    indexed="true"  stored="true"/>
<dynamicField name="*_is" type="ints"    indexed="true"  stored="true"/>
<dynamicField name="*_s"  type="string"  indexed="true"  stored="true" />
<dynamicField name="*_ss" type="strings"  indexed="true"  stored="true"/>

I checked and this github has a workaround in his lib.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants