Re: is there a way to control when merges happen?

2012-08-02 Thread Michael McCandless
Whenever a new segment is flushed, or a merge completes, then the MergePolicy and MergeScheduler are invoked. You can also invoke them at any time by calling IndexWriter.maybeMerge() yourself. Mike McCandless http://blog.mikemccandless.com On Wed, Aug 1, 2012 at 7:03 AM, Konstantyn Smirnov wr

Re: BlockJoinQuery Clarification

2012-08-02 Thread Michael McCandless
Open an IndexWriter with OpenMode.CREATE, or call IndexWriter.deleteAll on an already open IndexWriter. Mike McCandless http://blog.mikemccandless.com On Thu, Aug 2, 2012 at 4:28 PM, developer3459 wrote: > Is there an quick/easy way to delete the entire collection at once? Im > looking to delet

Analyzer on query question

2012-08-02 Thread Bill Chesky
Hi, I understand that generally speaking you should use the same analyzer on querying as was used on indexing. In my code I am using the SnowballAnalyzer on index creation. However, on the query side I am building up a complex BooleanQuery from other BooleanQuerys and/or PhraseQuerys on sever

Re: BlockJoinQuery Clarification

2012-08-02 Thread developer3459
Is there an quick/easy way to delete the entire collection at once? Im looking to delete and replace the entire collection in one fell swoop. -- View this message in context: http://lucene.472066.n3.nabble.com/BlockJoinQuery-Clarification-tp3848728p3998902.html Sent from the Lucene - Java User

Re: BlockJoinQuery Clarification

2012-08-02 Thread Michael McCandless
You must delete all children when you delete the parent. I believe you can delete individual children and leave the parent undeleted. Mike McCandless http://blog.mikemccandless.com On Thu, Aug 2, 2012 at 4:03 PM, developer3459 wrote: > > Is there a way to delete a parent doc from the collectio

Re: BlockJoinQuery Clarification

2012-08-02 Thread developer3459
Is there a way to delete a parent doc from the collection, or delete a child doc from the collection? If so, will deleting the parent doc of a collection orphan the associated child docs or will they automatically be deleted as well? thanks -D -- View this message in context: http://lucene.4

lucene Indexer failed to close, but later indexing still OK?

2012-08-02 Thread Zhang, Lisheng
Hi, We are using lucene 2.3.2 on linux/ubuntu (we will upgrade lucene soon), recently we got exception: read past EOF #012java.io.IOException: read past EOF at org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:130) at org.apache.lucene.index.CompoundFileReader$CSIn

Re: Memory leak?? with CloseableThreadLocal with use of Snowball Filter

2012-08-02 Thread Robert Muir
On Thu, Aug 2, 2012 at 3:13 AM, Laurent Vaills wrote: > Hi everyone, > > Is there any chance to get his backported for a 3.6.2 ? > Hello, I personally have no problem with it: but its really technically not a bugfix, just an optimization. It also doesnt solve the actual problem if you have a tom

Re: Small Vocabulary

2012-08-02 Thread Carsten Schnober
Am 31.07.2012 12:10, schrieb Ian Lea: Hi Ian, > Lucene 4.0 allows you to use custom codecs and there may be one that > would be better for this sort of data, or you could write one. > > In your tests is it the searching that is slow or are you reading lots > of data for lots of docs? The latter

Re: Memory leak?? with CloseableThreadLocal with use of Snowball Filter

2012-08-02 Thread Laurent Vaills
Hi everyone, Is there any chance to get his backported for a 3.6.2 ? Regards, Laurent 2012/8/2 Simon Willnauer > On Thu, Aug 2, 2012 at 7:53 AM, roz dev wrote: > > Thanks Robert for these inputs. > > > > Since we do not really Snowball analyzer for this field, we would not use > > it for now.