Title: Pilsgaard's Replies | WordPress.org

---

# Pilsgaard

  [  ](https://wordpress.org/support/users/pilsgaard/)

 *   [Profile](https://wordpress.org/support/users/pilsgaard/)
 *   [Topics Started](https://wordpress.org/support/users/pilsgaard/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pilsgaard/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pilsgaard/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pilsgaard/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pilsgaard/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pilsgaard/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Crop-Thumbnails] Feature request – Groups](https://wordpress.org/support/topic/feature-request-groups-2/)
 *  Thread Starter [Pilsgaard](https://wordpress.org/support/users/pilsgaard/)
 * (@pilsgaard)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/feature-request-groups-2/#post-12163491)
 * Hi,
 * Thank you for the quick reply!.
 * Yeah, i guess request two would be hard to make, because the grouping had to 
   have the same ratio.
 * I know it already auto-select the same ratio images. But if you have many images
   in the list, you have to scroll to find one of the correct ratio images you want
   to crop.
    If there was a small link for each ratio on the top, we didnt have 
   to scroll and look for the correct image. The previous tool we used that is discontinued(
   post thumbnail editor), do it like this auto: [https://ibb.co/VHKBm0w](https://ibb.co/VHKBm0w)
 * And once again, thank you for a great plugin!
 * Kindly Regards,
    Casper
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Query Monitor] Publish post](https://wordpress.org/support/topic/publish-post-1/)
 *  Thread Starter [Pilsgaard](https://wordpress.org/support/users/pilsgaard/)
 * (@pilsgaard)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/publish-post-1/#post-6697017)
 * Okay thank you for the quick answer!.
 * I will take a look on the branch you mentioned.
 * Thank you!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPSOLR - Elasticsearch and Solr search] Adding more fields to doc1 variable](https://wordpress.org/support/topic/adding-more-fields-to-doc1-variable/)
 *  Thread Starter [Pilsgaard](https://wordpress.org/support/users/pilsgaard/)
 * (@pilsgaard)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/adding-more-fields-to-doc1-variable/#post-5908470)
 * Im going to production this week, but i just use my own line. Can i subscribe
   to get a mail when there is a new release?
 * Or you can write in this thread, if you would like me to test the filters.
 * Thanks for the quick answers!
 * Regards,
    Casper
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPSOLR - Elasticsearch and Solr search] Adding more fields to doc1 variable](https://wordpress.org/support/topic/adding-more-fields-to-doc1-variable/)
 *  Thread Starter [Pilsgaard](https://wordpress.org/support/users/pilsgaard/)
 * (@pilsgaard)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/adding-more-fields-to-doc1-variable/#post-5908394)
 * If someone is extending the plugin via filters, they probably got access to the
   schema and knows what they are doing. I think the custom posts and facets you
   already made in the plugin are awesome. This is only for really specific use.
 * I installed a fresh install of solr5 and they got a managed schema, so solr just
   adds the new field based on the datatype when i add more to $doc1.
 * e.g the $doc1->testing showed up automatically without a schema change, when 
   i runned the code above.
 * You could make a solr5 version of the plugin, where people dont need to make 
   any schema changes.
 * Regards,
    Casper
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WPSOLR - Elasticsearch and Solr search] Adding more fields to doc1 variable](https://wordpress.org/support/topic/adding-more-fields-to-doc1-variable/)
 *  Thread Starter [Pilsgaard](https://wordpress.org/support/users/pilsgaard/)
 * (@pilsgaard)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/adding-more-fields-to-doc1-variable/#post-5908341)
 * Just tried to add this line in class-wp-solr.php:917 just before the return $
   doc1;
 * $doc1 = apply_filters( ‘wp_solr_plugin_filter_doc1’, $doc1, $updateQuery, $opt,
   $post, $attachment_body );
 * And this function in my theme functions.php
    function sv_wp_solr_plugin_filter_doc1(
   $doc1, $updateQuery, $opt, $post, $attachment_body ) {
 *  $doc1->testing = “MyTest”;
 *  return $doc1;
    } add_filter(‘wp_solr_plugin_filter_doc1’, ‘sv_wp_solr_plugin_filter_doc1’,
   10, 5 );
 * And its working (have to add testing to the solr schema offcource).
    I dont know
   what all the variables to the create_solr_document_from_post_or_attachment function
   is doing, so i just added all of them if i need them.
 * Hope you can add something like this to the plugin. : -)
 * Regards,
    Casper

Viewing 5 replies - 1 through 5 (of 5 total)