Hi...

I've switched the gcj version to 4.0 and recompiled PyLucene...
Luckily the file size limit is overcome, but another problem arose..
It seems that some API functions don't work-the ones that are very significant,
such as IndexWriter and IndexSearcher.
When I try to call a IndexWriter's optimize(), it just halts without doing anything.
So I searched for any other possible functions that might do the same thing, and
found IndexModifier. When I call IndexModifier's optimize(), it works. However,
IndexWriter's optimize doesn't work.
Also, when trying to search through the index,
Searcher's " search(Query query, Sort sort) " method doesn't work...
So now I'm just using search(Query query) method, but eventually I have
to show the results in a sorted way, so I have to find a way to deal with
this problem....

Is this the sort of problem people had when trying to explicitly recompile with
a so-called "unstable version" of gcj?
Is there any way to solve this problem?

Thank you very much for your help...

- chan

2006/3/19, Matthew O'Connor <[EMAIL PROTECTED]>:
I don't know what you should do.  I was just saying the
Debian packages use 3.4, not 4.0.  If you're not using the
packages then ignore me (or try them, if you can, and see if
it helps).

-matthew

chan kang [ [EMAIL PROTECTED]] said:

>    It seems that the problem comes from the libgcj bug which does not allow
>    handling of filesize
>    larger than 2GB. I read another posting (
>    http://lists.osafoundation.org/pipermail/pylucene-dev/2005-February/000507.html)
>    and I think my situation is somewhat similar to that case...
>    However, i did not quite get your comment... Do you mean I should stick
>    with ver3.4.4?
>    Is it impossible to upgrade gcj version to gcj4.0?
>
>    -chan
>
>    2006/3/18, Matthew O'Connor < [EMAIL PROTECTED]>:
>
>      chan kang [[EMAIL PROTECTED]] said:
>
>      >    To my surprise, the 12GB file was successfully
>      >    created... Does this mean that it has nothing to do
>      >    with the linux file size limit?  My gcc version is 4.x
>      >    (gcc (GCC) 4.0.3 20060212 (prerelease) (Debian
>      >    4.0.2-9)). , file system ext3, and kernel version is
>      >    debian 2.6.15 After reading the posting, I started to
>      >    seriously consider about actually "downgrading" to gcc
>      >    version 3.5.0, because he said that worked...
>
>      Sorry, I don't know anything about the optimize() problems
>      you mentioned above.  However, are you using the packages
>      for Debian Stable (Sarge) (mentioned on the website)?  If so
>      then you're actually using 3.4.4's runtime.
>
>      Andi has said in the past that he has "had little luck" with
>      GCC 4.  So, perhaps trying 3.4 is a good idea.
>
>      -matthew
>      _______________________________________________
>      pylucene-dev mailing list
>       [email protected]
>      http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

> _______________________________________________
> pylucene-dev mailing list
> [email protected]
> http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to