You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Ankit Agarwal (JIRA)" <ji...@apache.org> on 2016/05/25 10:29:13 UTC
[jira] [Commented] (OAK-4401) Excerpt Highlighting for a property
is not correct
[ https://issues.apache.org/jira/browse/OAK-4401?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15299828#comment-15299828 ]
Ankit Agarwal commented on OAK-4401:
------------------------------------
this is because in the function at here
https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/query/fulltext/SimpleExcerptProvider.java#L223
there must be checked that complete word is being matched before highlighting bits are set.
cc: [~amitgupt]
thanks,
> Excerpt Highlighting for a property is not correct
> ---------------------------------------------------
>
> Key: OAK-4401
> URL: https://issues.apache.org/jira/browse/OAK-4401
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: query
> Affects Versions: 1.5.2
> Reporter: Ankit Agarwal
>
> if we have following text at property
> /jcr:content/text
> ===
> A state agency’s Conflict of Interest Code must reflect the current structure of the organization and properly identify officials andemployees
> =====
> and if rep:excerpt(/jcr:content/text) is been calling after search then
> ==============
> <strong>of</strong>ficials will be in output , which is incorrect.
> ==============
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)