That sounds like the `per-match-tokens` option for the built-in snippet function: https://docs.marklogic.com/guide/search-dev/query-options#id_36346
-- Mike On 9 Aug 2014, at 09:18 , Dinesh <[email protected]> wrote: > Hi, > Does anyone have an example of using custom code to customize snippet to get > surrounding words for search hits. > The requirement, users select the number of surrounding words, MarkLogic to > return number of surrounding words for the snippet, the surrounding words > from text of any child/parent/preceding/following elements. > Thanks. > Regards, > Dinesh > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
