solr not working as expected
-
jagman123Participant3 years, 10 months ago #15376
I configured the plugin on my WordPress
/woocommerce website. I didn’t face any issues during the installation process and followed all steps of the documentation.25k products were indexed “successfully”. I tired searching for iPhone. It appears to be querying the MySQL database rather than solr. And therefore it is taking the same amount of time as before.
I just started the trial yesterday. If it works, I will be a valuable customer for a long time.
Please provide some assistance.
Website name: Sebuys.com
Thanks,
Jagjagman123Participant3 years, 10 months ago #15379Hi Sir,
I did steps from this tutorial to install solrMy Solr Version is 7.7.2
My PHP Version is 7.2.24This error message is populating the log file:
019-11-14 19:20:22 Warning 46.229.168.131 AH01071: Got error ‘PHP message: PHP Warning: Use of undefined constant \xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99 – assumed ‘\xe2\x80\x98ALLOW_UNFILTERED_UPLOADS\xe2\x80\x99′ (this will throw an Error in a future version of PHP) in /var/www/vhosts/sebuys.com/httpdocs/wp-config.php on line 37\nPHP message: WPSOLR message: Solr HTTP error: OK (400)\n{\n “error”:{\n “metadata”:[\n “error-class”,”org.apache.solr.common.SolrException”,\n “root-error-class”,”org.apache.solr.common.SolrException”],\n “msg”:”undefined field text”,\n “code”:400}}\n\nPHP message: WPSOLR trace: #0 /var/www/vhosts/sebuys.com/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/vendor/solarium/solarium/library/Solarium/Core/Client/Client.php(742): Solarium\\Core\\Query\\Result\\Result->__construct(Object(Solarium\\Client), Object(Solarium\\QueryType\\Select\\Query\\Query), Object(Solarium\\Core\\Client\\Response))\n#1 /var/www/vhosts/sebuys.com/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/vendor/solarium/solarium/library/Solarium/Core/Client/Client.php(774): Solarium\\Core\\Client\\Client->createResult(Object(Solarium\\QueryType\\Select\\Query\\Query), Object(Solarium\\Core\\Client\\Response))\n#2 /var/www/vhosts/sebuys.com/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/classes/engines/solarium/class-wpsolr-solariumclient.php(26): Solarium\\Core\\Client\\Client->execute(Object(Solarium\\QueryType\\Select\\Query\\Query))\n#3 /var/www/vhosts/sebuys.com/httpdocs/wp-content/plugins/wpsolr-pro/wpsolr/core/classes/engines/class-wpsolr-abstractsearchclient.php(925): wpsolr\\core\\classes\\engines\\solariu…\n’ Apache error
wpsolrKeymaster3 years, 10 months ago #15380The error “undefined field text” implies that your Solr index is not configured with the schema files delivered with WPSOLR.
Create a new index (with a new name) as in: https://www.wpsolr.com/guide/configuration-step-by-step-schematic/configure-your-indexes/create-configure-apache-solr-index/
jagman123Participant3 years, 10 months ago #15381Hi ,
I now followed that and created
up to this stage
https://prnt.sc/px2wb3Unfortuntely when i click on the submit button. It just comes back to the same instructions in the beginning.
Here are my settings.wpsolrKeymaster3 years, 10 months ago #15382Unfortuntely when i click on the submit button. It just comes back to the same instructions in the beginning.
You mean when you clicked on “Check the index status”?
Can you show me the 2 first instructions? I’m confused by your commands with configsets not being completed.
Check that your Solr is fine on localhost 8983 with a curl command.
- This reply was modified 3 years, 10 months ago by wpsolr.
jagman123Participant3 years, 10 months ago #15384Hi,
yeah for some reason /configsets does not exist.
I checked solr on localhost, this error came up.
https://pasteboard.co/IGI3ICe.pngwpsolrKeymaster3 years, 10 months ago #15426https://pasteboard.co/IGI3ICe.png error indicates that the index is expecting the conf files in /var/solr/data/configsets
So:
cd /var/solr/data mkdir configsets cd configsets
then proceed as you did already
(eventually change user or group of the new folder and files to your Solr user or group)
jagman123Participant3 years, 10 months ago #15427Hi,
The previous error has disappeared but now i get this error
https://pasteboard.co/IGOUmOH.pngSolr HTTP error: HTTP request failed, Port number ended with ‘m’
You must be logged in to reply to this topic.