? ? Success

User tests: Successful: Unsuccessful:

avatar ggppdk
ggppdk
21 May 2017

Pull Request for Issue #7927

Summary of Changes

Currently HTML parser of the com_finder INDEXER is adding spaces after
the endings of all HTML tags so that words at edges of BLOCK Tags are spaced properly
but this destroys words partly enclosed via inline HTML tags!
e.g. with input:

<h1>Title</h1><p>Paragraph</p>
<strong>M</strong>obile

Title Paragraph ....... which is correct (block tags)
M oblie ....... which is broken, (inline tags)


This PR adds the space at the begining of the tags,
thus avoiding a costly / more costly regular expression to add it at the end !

Not all regular expressions are "performance evil", they can be very fast by e.g.
-- Starting with fixed texts, and also using OR on fixed texts
-- Also the performance of a regular expression can depend a lot on the input

Testing Instructions

  • Test that words are spaced correctly for BLOCK tags and NOT SPACED for INLINE Tags
  • Test that performance of indexer is not changed

Documentation Changes Required

None

Maybe add some more unit tests ? to have some test for inline tags too ?

avatar ggppdk ggppdk - open - 21 May 2017
avatar ggppdk ggppdk - change - 21 May 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 21 May 2017
Category Administration com_finder
avatar ggppdk
ggppdk - comment - 21 May 2017

Please tell me if i have gotten the list of desired tags correctly

avatar ggppdk ggppdk - change - 21 May 2017
Labels Added: ?
avatar brianteeman
brianteeman - comment - 9 May 2018

I have tested this item successfully on ed675d2

Before test Mobile not found
After test Mobile found


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16165.

avatar brianteeman brianteeman - test_item - 9 May 2018 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jul 2019

I have tested this item successfully on 2254a9b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16165.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jul 2019

I have tested this item successfully on 2254a9b


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16165.

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 19 Jul 2019 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jul 2019

@brianteeman can you please retest?

avatar brianteeman
brianteeman - comment - 19 Jul 2019

no need to retest as the only change was in a comment

avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Jul 2019
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Jul 2019

Status "Ready To Commit".

avatar HLeithner HLeithner - change - 22 Jul 2019
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-07-22 20:55:37
Closed_By HLeithner
Labels Added: ?
avatar HLeithner HLeithner - close - 22 Jul 2019
avatar HLeithner HLeithner - merge - 22 Jul 2019
avatar HLeithner
HLeithner - comment - 22 Jul 2019

thx

Add a Comment

Login with GitHub to post a comment