Re: TaxWriter leakage?

2011-10-04 Thread Doron Cohen
LUCENE-3484 is resolved. Mihai, could you give it a try and see if this solves the NPE problem in your setup? You would need to download a nightly build that contains the fix - see the issue for revision numbers... On Tue, Oct 4, 2011 at 7:51 PM, Mihai Caraman wrote: > > (org.myapp.search.CustomL

Re: TaxWriter leakage?

2011-10-04 Thread Mihai Caraman
> (org.myapp.search.CustomLucene.ThreadedIndexWriter). > > it's just the threaded example from Lucene In Action SE(Listing 10.1) I opened https://issues.apache.org/jira/browse/LUCENE-3484 for this and will > fix this soon. > Patch in that issue shows how to reproduce this error. > > Thanks for rep

Re: TaxWriter leakage?

2011-10-04 Thread Doron Cohen
On Tue, Oct 4, 2011 at 11:29 AM, Mihai Caraman wrote: > I also think that there is nothing special in the second restart, except > > > that that by that time there were other servlets up (?) which were able > to > > trigger simultaneous AddDoc requests, exposing this bug... > > > > Makes sense? >

RE: fdt file format

2011-10-04 Thread Michael Ryan
> After those 4 bytes it should match? Thanks. Yup, seems to match after that. -Michael - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org

RE: [Lucene] Frequencies and positions - are they stored per field?

2011-10-04 Thread Uwe Schindler
Hi, Term Vectors are somehow duplicate information. It is used to get quickly *per document* all vectors for *one field*. This means you get the positions, offsets, and frequencies for the requested document as one blob like a stored field that can be used e.g. for more like this or highlightin

Re: [Lucene] Frequencies and positions - are they stored per field?

2011-10-04 Thread sol myr
Thanks a lot. But then what's the added value of Field.TermVector? Can't it be deduced from the overall Lucene index? Or is it just inefficient to deduce? Thanks again :) - Original Message - From: Uwe Schindler To: java-user@lucene.apache.org; 'sol myr' Cc: Sent: Tuesday, October

RE: [Lucene] Frequencies and positions - are they stored per field?

2011-10-04 Thread Uwe Schindler
Lucene always uses a field, a query using a term without a field is impossible. See each field as a parallel inverted index; all statistics are per field, too. If you pass a query without a field name to QueryParser it will chose the default field, thatÂ’s given when creating the QueryParser. Uwe

[Lucene] Frequencies and positions - are they stored per field?

2011-10-04 Thread sol myr
Hi, I use Lucene, but an not familiar with its internals. I'd appreciate help understanding whether Term Frequences and Positions - are stored  per Document of per Field? On the one hand, I never ask for "Field.TermVector" because I read it's only required for "MoreLikeThis" (which I don't ne

Re: TaxWriter leakage?

2011-10-04 Thread Mihai Caraman
I also think that there is nothing special in the second restart, except > that that by that time there were other servlets up (?) which were able to > trigger simultaneous AddDoc requests, exposing this bug... > > Makes sense? > It does. Can those two Ts be from the threadedindexwriter?

Re: [ANN] Luke 3.4.0 release

2011-10-04 Thread Ivan Liu
Thanks Andrezj ! Works for me, win7 and lucene 2.9 and JRE 1.6. 2011/10/4 janwen > thanks so much.I am going to upgrade the lucene to version3.4 in my > project.I'll try the new version luke.thanks for hard-work > > > On 2011-10-3 17:52, Andrzej Bialecki wrote: > >> Hi, >> >> I'm happy to annou

query switched filters

2011-10-04 Thread Bernd Fehling
Dear list, I'm in the need of query switched filters (to turn filters on and off by query parameter). I've already send my idea to the solr list and asked for opinions, but no complains from there. http://lucene.472066.n3.nabble.com/skipping-parts-of-query-analysis-for-some-queries-td3382239.h

Re: TaxWriter leakage?

2011-10-04 Thread Doron Cohen
Looking into this with Shai I think we see how this can happen, in this code of LTW: private ParentArray getParentArray() throws IOException { if (parentArray==null) { // [1] if (reader == null) { reader = openReader(); } parentArray = new ParentArray(); // [2]