#272: Weird Inspire snippets behavior
------------------------+---------------------------------------------------
Reporter: bthiell | Owner: jani
Type: defect | Status: assigned
Priority: major | Milestone:
Component: WebSearch | Version:
Resolution: | Keywords: INSPIRE fulltext search snippets
------------------------+---------------------------------------------------
Comment (by Jan Iwaszkiewicz <jan.iwaszkiewicz@…>):
In [6b78cdbf46abc2b1fee1cced9c2333e441526971]:
{{{
#!CommitTicketReference repository=""
revision="6b78cdbf46abc2b1fee1cced9c2333e441526971"
BibFormat: full-text snippet selection improved
* grep only for exact matches or in case of absense of those, match words
beginning with the stem of a pattern
* avoid highlighting substrings which are parts of non-pattern words
* while cutting out the snippet, use re for matching patterns insread of
the previous method
* ',' or '-' are properly recognized as word boundary
* "disappearing snippets" problem is fixed (it occured for multi-word
search
patterns) (see #272)
* in the input strings, the parenthesis are removed except in case there
is
no space between them, e.g. U(1)
* the highlight method is now also using the new highlight_matches method
and "escapes" search terms
}}}
--
Ticket URL: </ticket/272#comment:5>
Invenio <http://invenio-software.org>