Lucene Upgrade issues.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Lucene Upgrade issues.

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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Lucene Upgrade issues.

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: [hidden email]

> -----Original Message-----
> From: Jyothsna Bavisetti <[hidden email]>
> Sent: Wednesday, November 20, 2019 2:44 PM
> To: [hidden email]
> 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: [hidden email]
> For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Lucene Upgrade issues.

Jyothsna Bavisetti
In reply to this post by 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: [hidden email]
For additional commands, e-mail: [hidden email]