Christopher M Collins wrote: > Hello, > > I'm trying to use SpanRegexQuery as one of the clauses in my SpanQuery. > When I give it a regex like: "L[a-z]+ing" and do a rewrite on the final > query I get terms like "Labinger" and "Lackonsingh" along with the expected > terms "Labeling", "Lacing", etc. It's as if the regex is treated as a > "find()" and not a "match()" in Java. Is there a way to make it behave > like a full match, and not a prefix regex? Have you tried appending $ onto the end of it? I think we noticed the same issue with regex queries here and had to apply a workaround of that sort. Daniel -- Daniel Noll --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org