Lucene Upgrade issues.

2019-11-29 Thread Jyothsna Bavisetti
Hi All,

We are upgrading Lucene from 4.6 to 8.3. 

In latest version, we are extending BaseDirectory class. In that rename method 
is called for copying latest segment data, while committing index data. 

Files.move(src,dst, new CopyOption[] { StandardCopyOption.ATOMIC_MOVE });

I am trying to use above line for copying, but it is looping at this rename 
method. Can you please share some inputs
Please share some inputs. 
Lucene Serach is failing with below error:

Search Execution Error: no segments* file found in Directory@68cbb8b9 
lockFactory=oracle.edq.clustering.coherence.lucene.Locker@74688f8b: files: [] 
(Code: 300,138)
at 

Please share some inputs to trace this issue.

Thanks,
Jyothsna

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



RE: Lucene Upgrade issues.

2019-11-20 Thread Uwe Schindler
Hi,

If you use it for document filtering queries or to filter deleted documents, 
then FixedBitSet is the best replacement. The size given in the constructor 
must be the value of LeafReader#maxDoc(), because that's the maximum document 
number that can be used and may be marked in the bitset for a given index 
segment.

Uwe

-
Uwe Schindler
Achterdiek 19, D-28357 Bremen
https://www.thetaphi.de
eMail: u...@thetaphi.de

> -Original Message-
> From: Jyothsna Bavisetti 
> Sent: Wednesday, November 20, 2019 2:44 PM
> To: dev@lucene.apache.org
> Subject: Lucene Upgrade issues.
> 
> Hi All,
> 
> We are upgrading Lucene from 4.6 to 8.3.
> Earlier we used Open bit, Now it is deprecated. We have two options in latest
> version(FixedBitset or LongBitset).
> Could you please let me know which is the best option to use. Is there any
> points need to be consider while choosing one of them.  If  FixedBitSet what
> is the minimum size we need to define for it.
> 
> Please share some inputs.
> 
> Thanks,
> Jyothsna
> 
> -
> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: dev-h...@lucene.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



Lucene Upgrade issues.

2019-11-20 Thread Jyothsna Bavisetti
Hi All,

We are upgrading Lucene from 4.6 to 8.3. 
Earlier we used Open bit, Now it is deprecated. We have two options in latest 
version(FixedBitset or LongBitset). 
Could you please let me know which is the best option to use. Is there any 
points need to be consider while choosing one of them.  If  FixedBitSet what is 
the minimum size we need to define for it.

Please share some inputs. 

Thanks,
Jyothsna

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org