lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher M Collins <>
Subject SpanRegexQuery
Date Fri, 01 Aug 2008 02:06:55 GMT


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?



Christopher Collins \
Department of Computer Science \ University of Toronto
Collaborative User Experience Group \ IBM Research
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message