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

Bug: Suche sucht nicht mehr in Titel und Content #5

Open
eteubert opened this issue Mar 2, 2014 · 4 comments
Open

Bug: Suche sucht nicht mehr in Titel und Content #5

eteubert opened this issue Mar 2, 2014 · 4 comments

Comments

@eteubert
Copy link

eteubert commented Mar 2, 2014

Dein hook in die search query ist zu aggressiv. Es sollte zusätzlich in _shownotes gesucht werden, aber nicht ausschließlich.

Hier eine fehlerhafte SQL-Anfrage, wie sie aktuell generiert wird:

SELECT SQL_CALC_FOUND_ROWS wp_7_posts.id 
FROM   wp_7_posts 
       INNER JOIN wp_7_postmeta 
               ON ( wp_7_posts.id = wp_7_postmeta.post_id ) 
WHERE  1 = 1 
       AND wp_7_posts.post_type IN ( 'post', 'page', 'attachment', 'podcast' ) 
       AND ( wp_7_posts.post_status = 'publish' 
              OR wp_7_posts.post_status = 'private' ) 
       AND (( wp_7_postmeta.meta_key = '_shownotes' 
              AND Cast(wp_7_postmeta.meta_value AS CHAR) LIKE 
                  '%Microcontroller%' )) 
GROUP  BY wp_7_posts.id 
ORDER  BY wp_7_posts.post_date DESC 
LIMIT  0, 3 
@timpritlove
Copy link

Please fix. Die Suche ist komplett im Eimer dadurch.

@SimonWaldherr
Copy link
Member

@timpritlove du brauchst nicht eine Minute nach issue-Eröffnung kommentieren, geht dadurch auch nicht schneller.
Ich schau mir das mal an.

@timpritlove
Copy link

Ich wollte nur klar machen, was die Auswirkung von dem Bug ist, da das von Eric so nicht explizit gesagt wurde.

@katrinleinweber
Copy link

Weitere Diskussion hierzu, gibt's im Sendegate. Hatte nicht genug nach diesem Issue gesucht, sorry. IMHO sollten Shownotes standardmäßig durchsuchbar sein.

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

4 participants