Closed Bug 949996 Opened 11 years ago Closed 6 years ago

Search snippet is unnecessary long and show several times the same word

Categories

(developer.mozilla.org Graveyard :: Search, defect, P3)

x86
macOS

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: teoli, Unassigned)

Details

Attachments

(1 file)

I did a search for "flex". The first result is the "flex" article (as expected). Its snipped was: The flex CSS property specifies ability of a flex item to alter their dimensions to fill the available…space. Flex items can be stretched to use available space proportional to their flex grow factor or their…their flex shrink factor to prevent overflow. It is unusually long and has strange … added in the middle (without space after them, which is a typographic error). The first paragraph of the page is: The flex CSS property specifies ability of a flex item to alter their dimensions to fill the available space. Flex items can be stretched to use available space proportional to their flex grow factor or their flex shrink factor to prevent overflow. The problems are: - If several occurrence of the search term are found, the text snippet shouldn't grow unnecessary long. - If two text extract overlap they should be merged. - If there is text after the …, a typographic space should be added after it.
I will look into how to do this with Elasticsearch (since that's what we use for extracting hightlighting text). No promises though.
Severity: normal → minor
Priority: -- → P3
Today's snippet, with ElasticSearch 5.x (with *bold* text): *flex* is a new value added to the CSS display property. Along with inline-*flex* it causes the element that…applies to to become a *flex* container, and the element's children to each become a *flex* item. The items then…then participate in *flex* layout, and all of the properties defined in the CSS Flexible Box Layout Module
No longer blocks: MDNPostLaunch
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: