#315: full-text snippets: better phrase search snippet selection
-------------------------+--------------------------------------------------
Reporter: simko | Owner: jani
Type: enhancement | Status: new
Priority: critical | Milestone:
Component: BibFormat | Version:
Keywords: |
-------------------------+--------------------------------------------------
When users search for a phrase in the full-text index, a Boolean word
query combination is currently performed. Example: `higgs mechanism` in
the demo site. When showing fulltext snippets for the query, it will be
useful to first grep for the phrase and offer those snippets, if
available, and only fall back to grepping individual words when there is
no phrase.
BTW, beware of stemming when grepping for a phrase, e.g. one can stem
individual words and look for those with a wildcard and a space between,
kind of like `higgs mechanism` -> `higg\w*\smechan\w*`. Note also that
some sites may not have enabled stemming in full-text, so this wildcard
game should not be performed then.
--
Ticket URL: <http://invenio-software.org/ticket/315>
Invenio <http://invenio-software.org>