On Thu, Feb 10, 2011 at 5:51 PM, Ryan McKinley <ryan...@gmail.com> wrote: >> >> foo_s:foo\-bar >> is a valid lucene query (with only a dash between the foo and the >> bar), and presumably it should be treated the same in edismax. >> Treating it as foo_s:foo\\-bar (a backslash and a dash between foo and >> bar) might cause more problems than it's worth? >> > > I don't think we should escape anything that has a valid field name. > If "foo_s" is a field, then foo_s:foo\-bar should be used as is. > > If "foo_s" is not a field, I would want the whole thing escaped to: > foo_s\:foo\\-bar before getting passed to the rest of the dismax mojo. > > Does that make sense?
Maybe in some scenarios, but probably not in others? The clause bar\-baz will be equiv to field:"bar-baz" Hence it seems like the clause foo:bar\-baz should be equiv to field:"foo:bar-baz" (assuming foo is not a field) -Yonik http://lucidimagination.com