> > 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? marking edismax as experimental for 3.1 makes sense! ryan