Ticket #1176 (closed defect: wontfix)

Opened 4 years ago

Last modified 2 years ago

search query bug

Reported by: Denis de Bernardy Assigned to: anonymous
Priority: normal Milestone:
Component: General Version: 1.5.1
Severity: minor Keywords:
Cc:

Description

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

03/27/05 01:22:29 changed by Denis de Bernardy

  • Patch set to No.

03/27/05 14:06:29 changed by Denis de Bernardy

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

The following bug is more interesting:

http://www.semiologic.com/?s=1

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

02/22/07 00:39:36 changed by rob1n

  • status changed from new to closed.
  • resolution set to wontfix.