Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media library image not display after search #543

Open
adept-li-fire opened this issue Sep 6, 2022 · 0 comments
Open

Media library image not display after search #543

adept-li-fire opened this issue Sep 6, 2022 · 0 comments

Comments

@adept-li-fire
Copy link

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:

  • Is this a known issue when searching in the WP media library?
  • Is there any way to disable solr search for the media library and allow solr search for the pages and post via the WP-admin?

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant