]> git.cworth.org Git - sup/commit
user query string normalization by pre-parsing with Ferret query parser
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 26 Dec 2007 20:26:47 +0000 (12:26 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 26 Dec 2007 20:26:47 +0000 (12:26 -0800)
commit06ee8f7d84485d7b5b545c76cb32395601a1e032
tree21d8ea35ce815e547e9e2c4657b4c68d2bc7fcb0
parentff8ce104f85ae3a236c1c5dbf2156cd9593c6d3b
user query string normalization by pre-parsing with Ferret query parser
This is a bit of a hack, because it relies on the fact that Ferret query
objects, when converted to string form, are normalized to have +field:text
and -field:text instead of AND, OR, and NOT keywords. Then we can apply
all our string substitutions to just the normalized form.
lib/sup/index.rb