[MGNLPER-23] Include the matched content in the search result Created: 02/May/18  Updated: 24/Sep/18  Resolved: 24/Sep/18

Status: Closed
Project: Periscope
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0

Type: Story Priority: Neutral
Reporter: Antti Hietala Assignee: Michael Mühlebach
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: Periscope back-end MVP
Sprint: Basel 154, Basel 155, Basel 156
Story Points: 8

 Description   

User story:

As a developer, I want to get the exact part content where the keyword was found. For example, if the keyword was found in a story block, return a text snippet from that block, around the keyword.

Acceptance criteria:

  • Lucene will give you the whole text block. Take the first match of the keyword.
  • Return the text snippet around the keyword match. 100 characters on both sides.


 Comments   
Comment by Michael Mühlebach [ 27/Aug/18 ]

Seems to be harder than expected. According to several posts and documentation this feature is not supported with the new Query languages we use atm:

http://jackrabbit.510166.n4.nabble.com/is-EXCERPT-working-supported-with-JCR-SQL2-QOM-td3674064.html
http://jackrabbit.510166.n4.nabble.com/fulltext-search-sql-excerpt-sql2-jackrabbit-2-1-0-td2276566.html
http://jackrabbit.apache.org/api/2.16/org/apache/jackrabbit/core/query/lucene/DefaultHTMLExcerpt.html

Generated at Mon Feb 12 10:27:58 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.