Re: Store byte array in StoredField using zlib compression

2024-10-26 Thread Prashant Saxena
COMPRESSION' I need it here: config = IndexWriterConfig(analyzer) config.setOpenMode(IndexWriterConfig.OpenMode.CREATE) config.setCode(Lucene100Codec(Lucene100Codec.Mode.BEST_COMPRESSION)) Prashant On Sat, Oct 26, 2024 at 8:13 PM Andi Vajda wrote: > > > On Oct 26, 2024, at 16

Re: Store byte array in StoredField using zlib compression

2024-10-26 Thread Prashant Saxena
There must be an explanation about 83 MB of compressed data getting almost double of its size. It doesn't make sense at all. On Sat, Oct 26, 2024 at 7:03 PM Andi Vajda wrote: > > > On Oct 26, 2024, at 14:50, Prashant Saxena > wrote: > > > > I just need to sto

Re: Store byte array in StoredField using zlib compression

2024-10-26 Thread Prashant Saxena
I just need to store compressed strings to save space. If it can be done in any other way, I'm OK with that. On Sat, Oct 26, 2024 at 6:11 PM Andi Vajda wrote: > > On Sat, 26 Oct 2024, Prashant Saxena wrote: > > > PyLucene 10.0.0 > > > > I'm trying to stor

Store byte array in StoredField using zlib compression

2024-10-26 Thread Prashant Saxena
PyLucene 10.0.0 I'm trying to store a long text by compressing it first using zlib *doc.add(StoredField("contents", zlib.compress(ftext.encode('utf-8'* The resulting index size is *~83 MB*. When reading it's value back using *c = doc.getBinaryValue("contents")* It's returning 'NoneType' an

Using StandardQueryParser in PyLucene 10.0.0

2024-10-25 Thread Prashant Saxena
Here is the reference in the documentation: https://lucene.apache.org/core/10_0_0/queryparser/org/apache/lucene/queryparser/flexible/standard/StandardQueryParser.html Code: sqparser = StandardQueryParser() config = sqparser.getQueryConfigHandler() #config.setAllowLeadingWildcard(False); #config.s

Open a set of extremely old indexes using latest PyLucene 10.0.0

2024-10-22 Thread Prashant Saxena
I do have a set of old lucene index files, probably 15-20 years old. Every index directory contains four files, something like these...(size is different) _0.cfx 47, 942 KB _s.cfs 1,78,687 KB segments.gen1 KB segments_2 1 KB When I try to open an index using Py

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Prashant Saxena
rote: > > On Tue, 22 Oct 2024, Prashant Saxena wrote: > > > Voila;-) > > The PyLucene extension is finally built on Windows. > > Does it run, do the tests pass ? run "make test"... > > > Thanks Andi, I really > > appreciate your help &

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Prashant Saxena
eserved T_BYTE \ --reserved T_CHAR \ --reserved T_DOUBLE \ --reserved T_FLOAT \ --reserved T_INT \ --reserved T_LONG \ --reserved T_SHORT \ and everything works fine. Just doing some leftover things in the python build script. Prashant On Tue, Oct 22, 2024 at 3:26 PM Andi Vajda wrote: > >

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Prashant Saxena
/objectweb/asm/Type.h(88) static jint VOID; On Tue, Oct 22, 2024 at 12:37 PM Andi Vajda wrote: > > > On Oct 22, 2024, at 09:01, Prashant Saxena > wrote: > > > > Ok, much less errors after building and reinstalling JCC > > > > > D:\projects\database\pylucene-10.0.

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-22 Thread Prashant Saxena
Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2 On Tue, Oct 22, 2024 at 12:11 PM Andi Vajda wrote: > > On Tue, 22 Oct 2024, Prashant Saxena wrote: > > > Ok, here are the changes as requested in jcc/jcc3/cpp.py &g

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-21 Thread Prashant Saxena
27; D:\projects\database\pylucene-10.0.0\build\_lucene\java/lang/Double.h(22): note: see declaration of 'java::lang' D:\projects\database\pylucene-10.0.0\build\_lucene\java/lang/Process.h(76): error C3646: 'info': unknown override specifier D:\projects\database\pylucene-10.0.0\build\_lucen

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-21 Thread Prashant Saxena
ic ': ignored on left of 'int' when no variable is declared Now I have decided to give up. It seems PyLucene was never meant to work on Windows. On Mon, Oct 21, 2024 at 1:13 AM Andi Vajda wrote: > > > On Oct 20, 2024, at 21:21, Prashant Saxena > wrote: > > >

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Prashant Saxena
it's not working. On Mon, Oct 21, 2024 at 12:34 AM Andi Vajda wrote: > > > On Oct 20, 2024, at 21:00, Andi Vajda wrote: > > > >  > >> On Oct 20, 2024, at 20:52, Prashant Saxena > wrote: > >> > >> As per the documentation first I typed

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Prashant Saxena
As per the documentation first I typed "gradlew assemble" then I typed "gradlew check", so yes I have invoked it myself. On Mon, Oct 21, 2024 at 12:17 AM Andi Vajda wrote: > > > On Oct 20, 2024, at 20:17, Prashant Saxena > wrote: > > > > Again bac

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Prashant Saxena
PM Andi Vajda wrote: > > > On Oct 20, 2024, at 18:33, Prashant Saxena > wrote: > > > > With jdk-17.0.12, all the lucene jars have been built successfully, > however > > I'm missing these > > 4 files. Could you please tell me more about these fil

Re: lucene build failure on Windows using pylucene 9.7.0

2024-10-20 Thread Prashant Saxena
> > On Sun, Oct 20, 2024 at 7:25 AM Prashant Saxena > wrote: > > > Hello, > > OS : Windows 10 > > PyLucene : 9.7.0 > > JDK : 23.0 > > > > Although I can download the binary distribution of version 9.7.0, I have > > decided to build it from scr

lucene build failure on Windows using pylucene 9.7.0

2024-10-19 Thread Prashant Saxena
Hello, OS : Windows 10 PyLucene : 9.7.0 JDK : 23.0 Although I can download the binary distribution of version 9.7.0, I have decided to build it from scratch as I am new to javascript and lucene. It will help me learn. 1. downloading and extracting pylucene 2. cd lucene-java-9.7.0 3. gradlew.bat a