solr not working as expected

  • jagman123
    Participant
    4 years, 4 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,
    Jag

    wpsolr
    Keymaster
    4 years, 4 months ago #15377

    Hi,

    You’re right, there is an error. You can see a message in the Javascript console.

    Can you check your debug.log file (activate DEBUG briefly if necessary)?

    wpsolr
    Keymaster
    4 years, 4 months ago #15378

    Can you also tell me your Solr and PHP versions?

    jagman123
    Participant
    4 years, 4 months ago #15379

    Hi Sir,
    I did steps from this tutorial to install solr

    Install Solr on Ubuntu 14.04 for Faster WordPress Search

    My Solr Version is 7.7.2
    My PHP Version is 7.2.24

    This 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

    wpsolr
    Keymaster
    4 years, 4 months ago #15380

    The 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/

    jagman123
    Participant
    4 years, 4 months ago #15381

    Hi ,

    I now followed that and created

    up to this stage
    https://prnt.sc/px2wb3

    Unfortuntely when i click on the submit button. It just comes back to the same instructions in the beginning.
    Here are my settings.

    https://prnt.sc/px2xav

    wpsolr
    Keymaster
    4 years, 4 months ago #15382

    Unfortuntely 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 4 years, 4 months ago by wpsolr.
    jagman123
    Participant
    4 years, 4 months ago #15384

    Hi,

    yeah for some reason /configsets does not exist.

    I checked solr on localhost, this error came up.
    https://pasteboard.co/IGI3ICe.png

    wpsolr
    Keymaster
    4 years, 4 months ago #15386

    Yes, your index cannot load because it looks for the config files on “configsets”.

    jagman123
    Participant
    4 years, 4 months ago #15421

    Hi Sir,

    what shall i do in this case? I really want this to work.

    Any guidance will be appreciated.
    Thanks,

    wpsolr
    Keymaster
    4 years, 4 months ago #15424

    Can you show me the 2 first instructions?

    jagman123
    Participant
    4 years, 4 months ago #15425

    1)Login to your Solr server

    2)Navigate to the folder:

    cd /var/solr/data/configsets

    Result:

    root@localhost:~# cd /var/solr/data/configsets
    -bash: cd: /var/solr/data/configsets: No such file or directory

    wpsolr
    Keymaster
    4 years, 4 months ago #15426

    https://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)

    jagman123
    Participant
    4 years, 4 months ago #15427

    Hi,
    The previous error has disappeared but now i get this error
    https://pasteboard.co/IGOUmOH.png

    Solr HTTP error: HTTP request failed, Port number ended with ‘m’

    wpsolr
    Keymaster
    4 years, 4 months ago #15428

    Can I see the whole screen?

Viewing 15 posts - 1 through 15 (of 30 total)

You must be logged in to reply to this topic.