Closed (fixed)
Project:
Search API Solr
Version:
4.1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2020 at 20:51 UTC
Updated:
15 Nov 2021 at 19:46 UTC
Jump to comment: Most recent
Comments
Comment #2
mkalkbrennerYou "locked" solarium to version 5.1.6. But search_api_solr requires solarium 6.0.0.
1. Run
composer require solarium/solarium:^6.0 drupal/search_api_solr:^4.1 drupal/search_api_solr_multilingual:^3.1Or
2. Edit your main composer.json and remove the requirement for solarium/solarium and run your command again:
composer require drupal/search_api_solr:^4.1 drupal/search_api_solr_multilingual:^3.1Option 2 is the better choice because it removes the explicit lock.
Comment #3
zenimagine commented@mkalkbrenner Thank you for your reply. For option 2 I delete solarium / solarium here :
Should we also delete this part :
Comment #4
mkalkbrennerDon't touch composer.lock!
The snippet you posted looks like the composer.json of search_api_solr. You have to edit your main composer.json!
Comment #5
vlyalko commentedI am also having difficulties updating search_api_solr
I removed solarium/solarium from my main composer.json and when run composer require drupal/search_api_solr:^4.1, i get the following error:
Problem 1
- Installation request for solarium/solarium (locked at 5.1.6) -> satisfiable by solarium/solarium[5.1.6].
- drupal/search_api_solr 4.x-dev requires solarium/solarium ^6.0 -> satisfiable by solarium/solarium[6.0.0-alpha.1].
- drupal/search_api_solr 4.1.0 requires solarium/solarium ^6.0 -> satisfiable by solarium/solarium[6.0.0-alpha.1].
- Conclusion: don't install solarium/solarium 6.0.0-alpha.1
- Installation request for drupal/search_api_solr ^4.1 -> satisfiable by drupal/search_api_solr[4.x-dev, 4.1.0].
Comment #6
mkalkbrennerRemoving such locks is a pain.
If you can ensure that drupal is not running you can do
Comment #7
vlyalko commentedThank you. Made sure Drupal was not running. Stopped all docker containers. Ran remove command. Same error on composer require drupal/search_api_solr:^4.1 as before
Comment #8
zenimagine commentedThank you, I did not succeed with option 2, but option 1 works for me.
Comment #9
mkalkbrennerDid you test option 1? Can we close this issue?
Comment #10
zenimagine commentedComment #11
bogdog400 commentedJust FYI: option (2) did not work. But option (1) did.
Comment #12
vlyalko commentedafter i uninstalled search_api_spellcheck module and removed it from composer, I was able to successfully update search_api_solr with the following:
composer require solarium/solarium:^6.0 drupal/search_api_solr:^4.1 drupal/search_api_solr_multilingual:^3.1
Thank you mkalkbrenner
Comment #14
paddyilos commentedOption 2 #6 worked for me for 4.2
Comment #15
chikeI solved this by running two commands:
composer update solarium/solariumand next,
composer update drupal/search_api_solr... and both were updated!
Comment #16
chikeA simpler way to do this is to run
composer update drupal/search_api_solr -Wand Composer handles all of it. The-Wflag means '--with-all-dependencies'.