Title: Indexing Google Maps Plugin Objects
Last modified: August 21, 2016

---

# Indexing Google Maps Plugin Objects

 *  Resolved [dmkizer](https://wordpress.org/support/users/dmkizer/)
 * (@dmkizer)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/indexing-google-maps-plugin-objects/)
 * Mikko, I very much appreciate your responsiveness. I think you offer better plugin
   support than anyone I have ever seen.
 * I feel my searches are slow. It might be because my template includes thumbnails.
   One thing I know, though, it that Relevanssi is grabbing Comprehensive Google
   Map Plugin objects as if they were posts.
 * Obviously there is no listing for these on the Relevanssi dashboard controls,
   so I cannot tell it to ignore those. Early on I had simply hidden those results
   using CSS
 * something like .search-results object {display:none}
 * As I am looking at what is happening with an interest in speeding up the search,
   however, I find myself wondering if that is a symptom of a plugin conflict or
   a theme conflict that might be slowing this down.
 * If you have any insights, I am interested. FYI I have already commented out the
   query_posts() call on my template,
 * [https://wordpress.org/plugins/relevanssi/](https://wordpress.org/plugins/relevanssi/)

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

 *  Thread Starter [dmkizer](https://wordpress.org/support/users/dmkizer/)
 * (@dmkizer)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/indexing-google-maps-plugin-objects/#post-5100948)
 * FYI, every Comprehensive Google Map object seems to have the same class. It is“
   cgmp-json-string-placeholder”. I am going to stare at the code in your indexing
   script, and see if that might not be used in the same manner as Custom-Post-Type
   to filter these things out. Cannot do it right now, but that is where my thoughts
   are headed . . .
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/indexing-google-maps-plugin-objects/#post-5101052)
 * What those Comprehensive Google Map Plugin objects are? Are they posts of a custom
   post type?
 *  Thread Starter [dmkizer](https://wordpress.org/support/users/dmkizer/)
 * (@dmkizer)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/indexing-google-maps-plugin-objects/#post-5101058)
 * Oddly, it is _not_ a custom post type. Relevanssi grabs it as if it is, though.
   I tried a couple of other search plugins; Relevanssi is the only one that does
   this.
 * I have copied part of the results here: [http://allticketsinc.com/utilities/results.txt](http://allticketsinc.com/utilities/results.txt)
 * In this case, I ran a search for the word “North.” This has been processed by
   my theme’s template already. [http://allticketsinc.com/](http://allticketsinc.com/)
 * I’d be very interested if I could insert a conditional statement, perhaps in 
   the Relevanssi indexing file, which would reject these.
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/indexing-google-maps-plugin-objects/#post-5101098)
 * Comprehensive Google Map Plugin probably hijacks the global $post object somehow.
 * Here’s something you can try. In lib/indexing.php, find line 109 (or so):
 * `$n += relevanssi_index_doc($post->ID, false, $custom_fields);`
 * Modify it like this:
 * `$n += relevanssi_index_doc($post->ID, false, $custom_fields, true);`
 * Then re-index. Does that help?
 *  Thread Starter [dmkizer](https://wordpress.org/support/users/dmkizer/)
 * (@dmkizer)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/indexing-google-maps-plugin-objects/#post-5101100)
 * It did not fix it. Thank you for the attempt, though. I’ll see if I can maybe
   fix it from their side, too.
 * Posted this to their support.
    [http://wordpress.org/support/topic/map-objects-coming-up-in-search?replies=1#post-5806313](http://wordpress.org/support/topic/map-objects-coming-up-in-search?replies=1#post-5806313)
 *  Thread Starter [dmkizer](https://wordpress.org/support/users/dmkizer/)
 * (@dmkizer)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/indexing-google-maps-plugin-objects/#post-5101109)
    1. This only happens if I index custom post types with embedded Google Map objects.
    2. Telling Relevanssi to NOT process short codes does not prevent these from being
       indexed, however
    3. The searches are LIGHTNING FAST compared to what they were when I had it processing
       short codes.
 * So my solution is:
    - Use CSS to hide the unwanted results, as in search-results object {display:
      none}
    - Tell Relevanssi not to process Short Codes, which seems to have been the real
      culprit in making the searches slow.
 * You can close this any time you like, and thank you.

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

The topic ‘Indexing Google Maps Plugin Objects’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [dmkizer](https://wordpress.org/support/users/dmkizer/)
 * Last activity: [11 years, 10 months ago](https://wordpress.org/support/topic/indexing-google-maps-plugin-objects/#post-5101109)
 * Status: resolved