Page MenuHomePhabricator

Search with PRE tag = NO result
Closed, DeclinedPublic

Description

Author: ben

Description:
Hi,
Search function inside a <pre> balise is impossible.
No result with words inside (pre) tag !

Thanks for your help... & good luck


Version: 1.3.x
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz1452
TitleReferenceAuthorSource BranchDest Branch
new_wikis_handler: Add creating ticket for incubator importladsgroup/Phabricator-maintenance-bot!3ladsgroupincubatormaster
main: Init the db if --init true is passed to main.shrepos/mediawiki/services/ipoid!176kharlanmain-I1c3b2af3448636531d7cf685f3ace88f2c408d05main
Add tests for init-db.jsrepos/mediawiki/services/ipoid!146tchanderstest-init-dbmain
Implement schema updatesrepos/mediawiki/services/ipoid!81stranadd-schema-updatermain
Reorganize Blubberfile so that new variants can be added modularly.repos/abstract-wiki/wikifunctions/function-evaluator!57apineapine-modularize-blubbermain
backport tests: add test for concurrent backportsrepos/releng/scap!180jnucheconcurrent-bakcport-testmaster
backport tests: add test for concurrent backportsrepos/releng/train-dev!27jnuchebackport-locksmain
backport: serialize concurrent backportsrepos/releng/scap!179jnuchebackport-locksmaster
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:09 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz1452.
bzimport added a subscriber: Unknown Object (MLST).

I don't understand what this means.

Can you provide a test case? Detailed descriptions of steps to take to reproduce the problem would be very helpful.

ben wrote:

Hi,

Version: MediaWiki 1.3.7

If I insert a text inside a balide <pre> like "<pre>Hello world !</pre>" in a page
and I looks for the word "world", this page isn't in the result because "world"
is in "<pre>" balise !

If I insert a (normal) text in a page, the result is correct.

I hope you will understand my example.

Thanks,

Ben

Ok, I tested this on 1.3.12 and 1.4.2 on MySQL 4.0.23 and I cannot reproduce a
problem.

Steps taken:

  1. Created a page [[Hi1]] containing text "<pre>Hello world !</pre>"
  2. Created a page [[Hi2]] containing text "Hello world !"
  3. Ran a search for "world"

Both pages Hi1 and Hi2 are returned in the search.

Note that 1.3.7 is really old. There have been a number of security fixes in
later 1.3.x releases, and many bug fixes and improvements in 1.4.

ben wrote:

Thank you for your reply..

In fact, after another test, it works !?

Sorry about that, I don't now where was the problem !

Bye,

Ben