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

Can't make it work with Solr 8 with docker #1011

Open
royalidrees53 opened this issue Mar 3, 2022 · 1 comment
Open

Can't make it work with Solr 8 with docker #1011

royalidrees53 opened this issue Mar 3, 2022 · 1 comment

Comments

@royalidrees53
Copy link

royalidrees53 commented Mar 3, 2022

Using Solr in docker using this stack

version: '3'
services:
  solr:
    image: solr:8
    ports:
     - "8983:8983"
    volumes:
      - solr-data:/var/solr
    command:
      - solr-precreate
      - gettingstarted
volumes:
  solr-data:
    external: true
    

But keep getting this error "msg":"undefined field type" on running bundle exec rake sunspot:reindex, Found in community that it has to do with the schema that sunspot is using is different from latest schema in solr 8,

Is sunspot working with latest solr?

@mameier
Copy link

mameier commented Jun 30, 2022

sunspot needs another core schema than "gettingstarted".
You find the "core" in ./solr/configsets/sunspot
BUT: the current core only works with solr:6
There are patches that work with solr:7 in examples/solr7_core
The last commit (nov 2019) states "Update example core to work with Solr 8" but is doesn't.

With the patched core I can run solr:7 with:

version: '3'
  services:
    solr:
      image: solr:7
      ports:
        - "8383:8983"
      volumes:
        - ./solr/data:/opt/solr/server/solr/mycores
        - ./solr/configsets:/configsets
      command:
        - solr-precreate
        - my_core_name
        - /configsets/sunspot

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