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

Unable to store custom/nested JSON docs #389

Open
2 of 3 tasks
yoavnash opened this issue Jan 4, 2023 · 0 comments
Open
2 of 3 tasks

Unable to store custom/nested JSON docs #389

yoavnash opened this issue Jan 4, 2023 · 0 comments

Comments

@yoavnash
Copy link

yoavnash commented Jan 4, 2023

I have

  • Tested with the latest release
  • Tested with the current master branch
  • Searched for similar existing issues

Expected behaviour

I want to be able to store nested JSON document in solr, as described here:
https://solr.apache.org/guide/solr/latest/indexing-guide/transforming-and-indexing-custom-json.html

Actual behaviour

It seems this is not possible at the moment.

Steps to reproduce the behaviour

  1. Run the following code:
solr.add([
    {
      "first": "John",
      "last": "Doe",
      "grade": 8,
      "exams": [
        {
          "subject": "Maths",
          "test"   : "term1",
          "marks"  : 90},
        {
          "subject": "Biology",
          "test"   : "term1",
          "marks"  : 86}
      ]
    }
])

Configuration

  • Operating system version: Ubuntu
  • Search engine version: solr:9.1.0
  • Python version: 3.8
  • pysolr version: 3.10.0b1
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

1 participant