[ 
https://issues.apache.org/jira/browse/OAK-3000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14589452#comment-14589452
 ] 

Thomas Mueller commented on OAK-3000:
-------------------------------------

I guess to avoid out of memory, and to give more reasonable results, we should 
change the highlighter to use a BitField to remember which characters are to be 
highlighted, and then only in the final stage use "<strong>" "</strong>" where 
applicable. I can come up with a patch for that.

> SimpleExcerptProvider causes OOM for some wildcard expressions
> --------------------------------------------------------------
>
>                 Key: OAK-3000
>                 URL: https://issues.apache.org/jira/browse/OAK-3000
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: query
>            Reporter: Chetan Mehrotra
>             Fix For: 1.3.1, 1.2.3, 1.0.16
>
>         Attachments: OAK-3000.patch
>
>
> {{SimpleExcerptProvider}} would cause OOM is the search expression involves 
> wildcard in following form
> bq. fox *
> This causes an infinite loop leading to OOM



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to