lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Lynch <ihas...@gmail.com>
Subject Re: Match span of capitalized words
Date Fri, 05 Feb 2010 23:06:10 GMT
>
>
> I *think* you can get what you want using SpanNotQuery - something like the
> following, using your "Microsoft Windows" example:
>
> SpanNot:
>    include:
>        SpanNear(in-order=true, slop=0):
>            SpanTerm: "Microsoft"
>            SpanTerm: "Windows"
>    exclude:
>        SpanNear(in-order=true, slop=0):
>            SpanTerm: "Microsoft"
>            SpanTerm: "Windows"
>            SpanRegex: "^\\p{Lu}.*"
>
> Steve
>
>
>
>
This worked great, thank you guys!

-Max

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message