lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Sentence boundary storage
Date Sun, 30 Oct 2005 18:28:04 GMT
Chris Hostetter wrote:
> : One thing that I know has bogged me is when matching a phrase where I
> : would expect mathematical formula (which is "just a subphrase"). I
> : would have liked the phrase-query to extend as far as it wishes but not
> : passed a given token... would this be possible ?
> : Presumably a period token and this feature would have provided the same?
> 
> I haven't tried it myself, but my reading of SpanQueries leads me to
> believe you could accomplish what you want (and what Grant describes) by
> inserting special Terms to denote
> formula/sentance/paragraph/section/chapter boundaries, and then use
> SpanNearQueries with a high slop in conjunction with a
> SpanNotQuery using a SpanTermQuery for the boundary you don't want to
> cross.

I have not tried this either, but it was one of the use cases when 
designing span queries.  So it should work.

Doug

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message