You have to escape it in a query. And did you mean to title your post as field *names*? because I can't imagine how that would work. Field *values*, sure....
See http://lucene.apache.org/java/docs/queryparsersyntax.html, search for "escape" On Mon, Oct 6, 2008 at 3:54 PM, samd <[EMAIL PROTECTED]> wrote: > > It appears if a search field value entered contains a ':' causes some > issues > since if I have a field named > > a.b.c and the user enters a value of foo the constructed query through the > api generates something like > +a.b.c:foo > > If they enter in a value of foo:bar > > I get +foo:bar where foo is substituted for the correct fieldname. > > What is the best way to deal with this? > > Thanks. > -- > View this message in context: > http://www.nabble.com/Field-names-with-%3A-in-it.-tp19845142p19845142.html > Sent from the Lucene - Java Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >