Forum Replies Created
- savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11947
Umm, I notice the plugin is using curl with GET method to query the elastic search. Is there an option in the plugin to force it to use POST method instead..? For some reason, the plugin will timeout if I use GET method. But If I force it to use POST method, It works..
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11945Hi, is it possible to request POST instead of GET…?
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11923Php version: 7.2.16
Yes, php curl is installed: https://imgur.com/a/gAXOXx6
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11920Hi, the hosting provider replied to us. They’ve checked the connectivity from our hosting server to our ES instance and it looks good. In fact the WPSOLR plugin is receiving a timeout somewhere. They’ve test on SHH Shell via the following:
`curl -u elastic:XXXXXXXXXXXXXXXXXXXXXXXX ‘https://c49de0db75574f3694d4dfa1cf5ce3eb.ap-southeast-2.aws.found.io:9243/_search?q=clamp’
and said that the context search (auto search) is working good.
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11913I see, Any advice that could help me to fix this issue though..?
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11911Sorry the query was tweaked by my colleague for test purposes.. my apologies i’d ignore that. I just played with Elasticsearch api console and it’s responding as what I expected. but not sure why Wpsolr pro is not getting the search query response even though the connection is checked in green.
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11908the plugin is using curl to call the elastic search
I put some print statements in the php files to trapped the parameters passed to the curl command
the plug in is making two different calls to the ES
the json blob is coming from a variable called $contentbasically i reconstructed the query the plugin generated:
curl -XGET https://elastic:XXXXXXXXXXXXXXXXXXXXXXXXXXX@c49de0db75574f3694d4dfa1cf5ce3eb.ap-southeast-2.aws.found.io:9243/itm_pd_live/wpsolr_types/_search -H “Content-Type: application/json” -H “Authorization: Basic *XXXXXXXXXXXXXXXXXXXX* =” -d ‘{“from”:0,”size”:100,”sort”:[{“title_s”:{“order”:”asc”}}],”highlight”:{“require_field_match”:false,”pre_tags”:[“<b>”],”post_tags”:[“</b>”],”fields”:{“title”:{“fragment_size”:100,”number_of_fragments”:1},”content”:{“fragment_size”:100,”number_of_fragments”:1},”comments”:{“fragment_size”:100,”number_of_fragments”:1}}},”_source”:[“id”,”PID”,”title”,”numcomments”,”comments”,”displaydate”,”displaymodified”,”*categories_str”,”author”,”*post_thumbnail_href_str”,”*post_href_str”],”query”:{“match_all”:{}}}’
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #119062 fields selected in 2.3 and save. — I’ve remove the fields as suggested.. still the same error..
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11905ummm so i install a debug plugin and a query plugin. There’s an notice or warnings shown but not sure if that’s the issue: https://imgur.com/a/NIG57j4
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11903Ok. It’s still the same…
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11901Sure.
this is 2.1: https://imgur.com/a/02gmVob
2.3: https://imgur.com/a/CWegCBCsavtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11898Return No results
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11875Alrighty.. with regards to Errors in log. there isn’t any. So I did some test on querying my search. It seems that elastic search is not responding to narrow search (i.e. when i include the hammer) as shown in the screenshot:
Do you think this might be the cause of it..?
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11872Thanks for replying. I’m not very good at this. When you said access to elasticsearch logs, and check if it’s been blocked by firewall on WP server….? Is this the page you’re after..? https://imgur.com/a/4BkeTkR
savtParticipant5 years, 11 months ago in reply to: Unable to replace the default WordPress search with WPSOLR search #11869Hi, if it’ll be easier for you to look into my issue. this is the link. as you can see the products are there. but the wpsolr is not showing on the sidebar even though it’s already been added. and the wpsolr pro error message displayed on console.