Make WordPress Core

Opened 19 years ago

Closed 17 years ago

Last modified 14 years ago

#1176 closed defect (bug) (wontfix)

search query bug

Reported by: denis-de-bernardy's profile Denis de Bernardy Owned by:
Milestone: Priority: normal
Severity: minor Version: 1.5.1
Component: General Keywords:
Focuses: Cc:


I was working on the wordpress search query, when i bumped into this amusing bug:

e.g. with the following text:

[some text][markdown url id]

[markdown url id]: /some_page/

You get the following false positives:

$s = 'markdown url id'
$s = 'some_page'

i submitted the bug to michel fortin already.

Change History (3)

#1 @Denis de Bernardy
19 years ago

  • Patch set to No

#2 @Denis de Bernardy
19 years ago

On second inspection, it has more to do with WordPress than with Markdown.

The following bug is more interesting:

WordPress searches in tags, links, etc. whereas it would be more relevant to search in a plain text, cleaned up version of the text.

Suggested workaround 1:

  • apply-filters to text upon saving
  • store in new field wp_posts.search_text
  • conduct searches in search_text rather than in post_content

side effects:

  • this requires reindexing from time to time when plugins are installed or removed -- are there any on_plugin_enable and on_plugin_disable handles?

Suggestion workaround 2:

  • apply filters to search result contents to verify its relevance

side effects:

  • very slow

#3 @rob1n
17 years ago

  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.