Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Ron Strilaeff

    (@ronstrilaeff)

    My proof is that in version Version: 6.9.4.1 of this plugin, I changel line 35 to

    var $logging = true;

    then do a search with “search every tag name” set to blank (not Yes)

    Then look at the file wp-content/plugins/search-everything/logfile.log which shows the full constructed query on the last line. That line includes the clause

    ... LEFT JOIN sv_term_taxonomy AS ttax ON (  ( ttax.taxonomy = 'category' OR ttax.taxonomy = 'post_tag' OR ....

    But the logic of search-everything.php wants to obey the blank means “No” … so I’m going t into debugging mode to fix this, even if I have to comment out some of Dans’s code.

    Thread Starter Ron Strilaeff

    (@ronstrilaeff)

    Update
    === working patch! ===
    modify lines 784, 790, 795 in function se_terms_join

    FROM:

    784: if ( $this->options['se_use_category_search'] )
    790: if ( $this->options['se_use_tag_search'] )
    795: if ( $this->options['se_use_tax_search'] )

    TO:

    784: if ( "Yes" == $this->options['se_use_category_search'] )
    790: if ( "Yes" == $this->options['se_use_tag_search'] )
    795: if ( "Yes" == $this->options['se_use_tax_search'] )

    It seems the $this->options[…] returns true if any value is stored (it was a “No” btw so that’s good). This patch makes sure that the join clause is only added to if the relevant option value is explicitly “Yes” as expected. This same logic error might exist elsewhere but I don’t have time to test everything. That part of it works now for me.

    @dan Cameron, if you are still around can you look into this please ??

    Helped me a bunch, I was trying to make the plugin exclude categories descriptions from the search and couldn’t make it until I read your post. Thank you very much.

    Thread Starter Ron Strilaeff

    (@ronstrilaeff)

    Good, I’m glad that helped someone.

    This is a very good plugin since I can actually control what the text search does and it has an intuitive admin interface.

    And the resulting search url looks normal (readable, shareble) without a long string of special query args (mosty empty) which I’ve seen on some sites.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How To Exclude All Tags’ is closed to new replies.