pantheon-systems / solr-power

A WordPress plugin to connect to Pantheon's Apache Solr search infrastructure, or your own!
https://wordpress.org/plugins/solr-power/
GNU General Public License v2.0
126 stars 60 forks source link

Media library image not display after search #543

Open adept-li-fire opened 1 year ago

adept-li-fire commented 1 year ago

Hello,

I use the media cloud plugin and it seems like the Pantheon Solr search is not displaying the images. All other searches are working without issue. The frontend, backend - pages and post.

This is currently running on a multidev instance on pantheon. Let me know if you would like to have the details to connect to it.

Questions:

Currently reindexing to make sure the index is not out of date.

Any comments or feedback is super welcome! Also, please let me know if there is any other details you may need.



I have enabled both frontend and backend search via the code snippet below. 

```
/** used by solr power search to add search to WP admin dashboard **/

function filter_solr_allow_admin( $flag ) {
// Default is false
// return true if want to query Solr in WordPres dashboard
 $flag = true;
 return $flag;
 }
 add_filter( 'solr_allow_admin', 'filter_solr_allow_admin', 10, 1 );

```

```
/** used by solr power search to add search to the frontend **/

function filter_solr_allow_ajax( $flag ) {
 // Default is false
 // return true if want to query Solr in ajax requests
 $flag = true;
 return $flag;
}
add_filter( 'solr_allow_ajax', 'filter_solr_allow_ajax', 10, 1 );
```

Please note the screenshot:

![Screen Shot 2022-09-06 at 11 01 51 AM](https://user-images.githubusercontent.com/78180140/188699387-76e8090e-2a48-4119-9f1b-8db477448640.png)
![Screen Shot 2022-09-06 at 11 02 24 AM](https://user-images.githubusercontent.com/78180140/188699393-33fc1446-938f-4433-88df-5ffec8a31ab4.png)