ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Possible Search Module Bug

June 19, 2012 2:39pm

Subscribe [1]
  • #1 / Jun 19, 2012 2:39pm

    Barrel

    92 posts

    I’ve recently been working on an EE site with a large volume of custom fields and matrixes. While implementing the search module, I noticed that the contents of certain matrixes were not searchable/showing up in search results using the EE search module.

    The fields themselves and their individual columns (either plain text or WYGWAM fields) were checked as searchable, but some of them (seemingly arbitrarily) were not searchable.

    The solution I found was to convert the field types from one type to another. For example if a WYGWAM column within the matrix was not searchable, I found that converting it to plain text, and re-publishing the entry, would fix the problem and all the contents of the matrix would now become searchable. The solution worked both ways, i.e. a plain text field could be made searchable by converting to WYGWAM and re-publishing. I always converted the field types back to their original state afterward, and removed any extra p tags etc - the fields always stayed searchable after the initial conversion.

    I attribute this to the possibility that by editing the field type, EE was somehow forced to “index” the field and its contents for the search module.

    I’m not exactly sure why this problem only happened to certain matrixes in my site and not others, but I’d be interested to know if anyone else has experienced this problem, or knows more about how the search module goes about creating an search index.

    Thanks

  • #2 / Jun 20, 2012 12:09pm

    Dan Decker

    7338 posts

    Hi Barrel,

    I asked Robin about this one, and we don’t index for search purposes. She says:

    ...we pretty much do a real time full text search via query and we don’t save search on a per entry basis.

    The prevailing theory at the moment is Matrix/Wygwam are not setting or honoring the “Searchable” option on the first pass.

    Can you let me in on your versions? ExpressionEngine, Matrix and Wygwam. I’d like to be able to set some options back and forth and see what shows up in the database.

    Cheers,

  • #3 / Jun 28, 2012 3:35pm

    Barrel

    92 posts

    Sorry for the late response. Here you go:

    EE v2.4.0 - Build: date 20120123
    Matrix - 2.4.1
    Wygwam - 2.4.0.2

    I agree with your theory that EE probably wasn’t honoring the Searchable settings of the field. It occurred to me too, that it wasn’t the changing of the field type that was solving the problem, just the refreshing of the field, or certain aspects of it, thus causing the searchable option to be set.

    Thanks!

  • #4 / Jul 02, 2012 12:37pm

    Dan Decker

    7338 posts

    Hi Barrel,

    I was unable to replicate using ExpressionEngine 2.5.2, Matrix 2.4.1 and Wygwam 2.5

    So, if it was a bug, it has been squashed in either the update to EE 2.5.2, or perhaps Wygwam.

    Cheers!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases