]> git.evergreen-ils.org Git - working/Evergreen.git/commit
adjust quoting of phrase searches
authorgmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 29 Oct 2010 01:25:01 +0000 (01:25 +0000)
committergmc <gmc@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 29 Oct 2010 01:25:01 +0000 (01:25 +0000)
commit6f29c17d1f70eeaacfea10c56cad5c05c3d662f4
tree82b2d6fda55db13668857132149de3643ef82837
parent45418f98bcc0cc1478d6e2391af45840f93bb4e5
adjust quoting of phrase searches

This has three main effects:

* This formalizes the current behavior where a
  phrase search like

  title:"^Harry Potter"

  acts as a left-anchored search and

  title:"Harry Potter$"

  acts as a right-anchored search.

In particular, this can be useful for constructing
searches of bibliographic call numbers.

* Other regex metacharacters in phrase searches are
  now escaped.

* Phrase searches like "C++" will no longer crash; in fact,
  this makes a phrase search currently the only way to
  accurately retrieve all C++ titles with the usual
  normalization rules

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18540 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/perlmods/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm