Lucene not closing an IndexOutput when writing?

2015-12-08 Thread Trejkaz
We have a Directory implementation that keeps track of who doesn't close their IndexInput and IndexOutput. In some test which is attempting to index documents and ultimately timed out for other reasons (presumably triggering an interrupt, admittedly not the sort of thing libraries are usually very

RE: TermRangeQuery with Proximity

2015-12-08 Thread Allison, Timothy B.
And, if you're looking for a parser, take a look at LUCENE-5205's parser, available as a standalone on github [0]. The syntax for the query mentioned in archived link would be: "microsoft [belgium TO spain]" [0] https://github.com/tballison/lucene-addons -Original Message- From: Uwe Sc

RE: TermRangeQuery with Proximity

2015-12-08 Thread Uwe Schindler
You can create a generalization of PheaseQueries, called SpanNearQueries. Those can have any other SpanQuery instances as childs, e.g. SpanTermQuery and SpanMultiTermQueryWrapper instances. As RangeQueries or Wildcards are internally subclasses of MultiTermQuery, you can use them wrapped in com

TermRangeQuery with Proximity

2015-12-08 Thread Henri Hein
I saw this archived thread: http://mail-archives.apache.org/mod_mbox/lucene-java-user/201208.mbox/%3ccajcvxktutw9tn3thmhcvt0mbeww+lp_mczsrgf3atomzjku...@mail.gmail.com%3E I am trying to do something similar. I can do a phrase or proximity search with PhraseQuery/PhraseQuery.Builder. I can do a r