Re: Memory problem with TermQuery

2015-06-08 Thread Alan Woodward
ginal Message- > From: Alan Woodward [mailto:a...@flax.co.uk] > Sent: Montag, 8. Juni 2015 12:23 > To: java-user@lucene.apache.org > Subject: Re: Memory problem with TermQuery > > Hi Anna, > > In normal usage, perReaderTermState will be null, and TermQuery will be very &g

RE: Memory problem with TermQuery

2015-06-08 Thread Anna Maier
@lucene.apache.org Subject: Re: Memory problem with TermQuery Hi Anna, In normal usage, perReaderTermState will be null, and TermQuery will be very lightweight. It's in particular expert use cases (generally after queries have been rewritten against a specific IndexReader) that the perReaderTermState wil

Re: Memory problem with TermQuery

2015-06-08 Thread Alan Woodward
itten queries somehow? Alan Woodward www.flax.co.uk On 8 Jun 2015, at 10:49, Anna Maier wrote: > Hi, > > we ran into a memory problem with TermQuery: in our program, we build a > TermQuery object from the user input and pass it around, to be able to > different things, like execute

Memory problem with TermQuery

2015-06-08 Thread Anna Maier
Hi, we ran into a memory problem with TermQuery: in our program, we build a TermQuery object from the user input and pass it around, to be able to different things, like execute the query again and so on. So, the TermQuery object can potentially exist for some time. Now it turns out, that a