[Xapian-discuss] Re: Question about sorting using the Java bindings.

Jarrod Roberson jarrod at vertigrated.com
Thu May 31 17:11:54 BST 2007


On 5/30/07, Olly Betts <olly at survex.com> wrote:
>
> On Wed, May 30, 2007 at 08:26:14PM +0000, Jarrod Roberson wrote:
> > I have the sorting by value working, but I can't change the direction.
> > So is it possible to control the sort order using the Java bindings?
>
> No.  Java still wraps the old C++ API for sorting which didn't allow
> the order to be controlled, so that's not currently possible.
>
> Some good news though - I've started working on new Java bindings
> implemented using SWIG.  If you download SVN snapshot 8770 or later
> then you can try them out - configure as usual, and then:
>
> cd java-swig
> make


I downloaded snapshot  8776  I did a ./configure --with-python --with-java
then tried to run make in the java-swig directory. I got tons of compiler
errors.

here is part of what it spews out.

xapian_wrap.cc:8907: error: 'jlong' does not name a type
xapian_wrap.cc:8930: error: 'jboolean' does not name a type
xapian_wrap.cc:8953: error: 'jstring' does not name a type
xapian_wrap.cc:8976: error: 'jboolean' does not name a type
xapian_wrap.cc:9009: error: expected initializer before
'Java_XapianJNI_delete_1Stopper'
xapian_wrap.cc:9028: error: 'jstring' does not name a type
xapian_wrap.cc:9051: error: 'jstring' does not name a type
xapian_wrap.cc:9074: error: 'jlong' does not name a type
xapian_wrap.cc:9094: error: expected initializer before
'Java_XapianJNI_Stopper_1director_1connect'
xapian_wrap.cc:9104: error: expected initializer before
'Java_XapianJNI_Stopper_1change_1ownership'
xapian_wrap.cc:9114: error: 'jlong' does not name a type
xapian_wrap.cc:9134: error: expected initializer before
'Java_XapianJNI_SimpleStopper_1add'
xapian_wrap.cc:9163: error: 'jboolean' does not name a type
xapian_wrap.cc:9196: error: expected initializer before
'Java_XapianJNI_delete_1SimpleStopper'
xapian_wrap.cc:9215: error: 'jstring' does not name a type
xapian_wrap.cc:9238: error: expected initializer before
'Java_XapianJNI_delete_1ValueRangeProcessor'
xapian_wrap.cc:9257: error: 'jlong' does not name a type
xapian_wrap.cc:9292: error: 'jlong' does not name a type
xapian_wrap.cc:9314: error: 'jlong' does not name a type
xapian_wrap.cc:9349: error: expected initializer before
'Java_XapianJNI_delete_1StringValueRangeProcessor'
xapian_wrap.cc:9368: error: 'jlong' does not name a type
xapian_wrap.cc:9394: error: 'jlong' does not name a type
xapian_wrap.cc:9418: error: 'jlong' does not name a type
xapian_wrap.cc:9440: error: 'jlong' does not name a type
xapian_wrap.cc:9475: error: expected initializer before
'Java_XapianJNI_delete_1DateValueRangeProcessor'
xapian_wrap.cc:9494: error: 'jlong' does not name a type
xapian_wrap.cc:9516: error: 'jlong' does not name a type
xapian_wrap.cc:9550: error: 'jlong' does not name a type
xapian_wrap.cc:9582: error: 'jlong' does not name a type
xapian_wrap.cc:9617: error: expected initializer before
'Java_XapianJNI_delete_1NumberValueRangeProcessor'
xapian_wrap.cc:9636: error: 'jint' does not name a type
xapian_wrap.cc:9648: error: 'jint' does not name a type
xapian_wrap.cc:9660: error: 'jint' does not name a type
xapian_wrap.cc:9672: error: 'jint' does not name a type
xapian_wrap.cc:9684: error: 'jint' does not name a type
xapian_wrap.cc:9696: error: 'jint' does not name a type
xapian_wrap.cc:9708: error: 'jint' does not name a type
xapian_wrap.cc:9720: error: 'jlong' does not name a type
xapian_wrap.cc:9740: error: expected initializer before
'Java_XapianJNI_delete_1QueryParser'
xapian_wrap.cc:9759: error: expected initializer before
'Java_XapianJNI_QueryParser_1setStemmer'
xapian_wrap.cc:9785: error: expected initializer before
'Java_XapianJNI_QueryParser_1setStemmingStrategy'
xapian_wrap.cc:9806: error: expected initializer before
'Java_XapianJNI_QueryParser_1setStopper_1_1SWIG_10'
xapian_wrap.cc:9828: error: expected initializer before
'Java_XapianJNI_QueryParser_1setStopper_1_1SWIG_11'
xapian_wrap.cc:9847: error: expected initializer before
'Java_XapianJNI_QueryParser_1setDefaultOp'
xapian_wrap.cc:9868: error: 'jint' does not name a type
xapian_wrap.cc:9891: error: expected initializer before
'Java_XapianJNI_QueryParser_1setDatabase'
xapian_wrap.cc:9917: error: 'jlong' does not name a type
xapian_wrap.cc:9950: error: 'jlong' does not name a type
xapian_wrap.cc:9985: error: 'jlong' does not name a type
xapian_wrap.cc:10030: error: expected initializer before
'Java_XapianJNI_QueryParser_1addPrefix'
xapian_wrap.cc:10069: error: expected initializer before
'Java_XapianJNI_QueryParser_1addBooleanPrefix'
xapian_wrap.cc:10108: error: 'jlong' does not name a type
xapian_wrap.cc:10131: error: 'jlong' does not name a type
xapian_wrap.cc:10154: error: 'jlong' does not name a type
xapian_wrap.cc:10187: error: 'jlong' does not name a type
xapian_wrap.cc:10220: error: expected initializer before
'Java_XapianJNI_QueryParser_1addValuerangeprocessor'
xapian_wrap.cc:10242: error: 'jstring' does not name a type
xapian_wrap.cc:10265: error: 'jlong' does not name a type
xapian_wrap.cc:10295: error: expected initializer before
'Java_XapianJNI_delete_1Stem'
xapian_wrap.cc:10314: error: 'jstring' does not name a type
xapian_wrap.cc:10347: error: 'jstring' does not name a type
xapian_wrap.cc:10370: error: 'jstring' does not name a type
xapian_wrap.cc:10390: error: 'jlong' does not name a type
xapian_wrap.cc:10410: error: expected initializer before
'Java_XapianJNI_delete_1TermGenerator'
xapian_wrap.cc:10429: error: expected initializer before
'Java_XapianJNI_TermGenerator_1setStemmer'
xapian_wrap.cc:10455: error: expected initializer before
'Java_XapianJNI_TermGenerator_1setStopper_1_1SWIG_10'
xapian_wrap.cc:10477: error: expected initializer before
'Java_XapianJNI_TermGenerator_1setStopper_1_1SWIG_11'
xapian_wrap.cc:10496: error: expected initializer before
'Java_XapianJNI_TermGenerator_1setDocument'
xapian_wrap.cc:10522: error: 'jlong' does not name a type
xapian_wrap.cc:10548: error: expected initializer before
'Java_XapianJNI_TermGenerator_1indexText_1_1SWIG_10'
xapian_wrap.cc:10589: error: expected initializer before
'Java_XapianJNI_TermGenerator_1indexText_1_1SWIG_11'
xapian_wrap.cc:10620: error: expected initializer before
'Java_XapianJNI_TermGenerator_1indexText_1_1SWIG_12'
xapian_wrap.cc:10649: error: expected initializer before
'Java_XapianJNI_TermGenerator_1indexTextWithoutPositions_1_1SWIG_10'
xapian_wrap.cc:10690: error: expected initializer before
'Java_XapianJNI_TermGenerator_1indexTextWithoutPositions_1_1SWIG_11'
xapian_wrap.cc:10721: error: expected initializer before
'Java_XapianJNI_TermGenerator_1indexTextWithoutPositions_1_1SWIG_12'
xapian_wrap.cc:10750: error: expected initializer before
'Java_XapianJNI_TermGenerator_1increaseTermpos_1_1SWIG_10'
xapian_wrap.cc:10771: error: expected initializer before
'Java_XapianJNI_TermGenerator_1increaseTermpos_1_1SWIG_11'
xapian_wrap.cc:10790: error: 'jlong' does not name a type
xapian_wrap.cc:10813: error: expected initializer before
'Java_XapianJNI_TermGenerator_1setTermpos'
xapian_wrap.cc:10834: error: 'jstring' does not name a type
xapian_wrap.cc:10857: error: 'jlong' does not name a type
xapian_wrap.cc:10865: error: 'jlong' does not name a type
xapian_wrap.cc:10873: error: 'jlong' does not name a type
xapian_wrap.cc:10881: error: 'jlong' does not name a type
xapian_wrap.cc:10889: error: 'jlong' does not name a type
xapian_wrap.cc:10897: error: 'jlong' does not name a type
xapian_wrap.cc:10905: error: 'jlong' does not name a type
xapian_wrap.cc:10913: error: 'jlong' does not name a type
xapian_wrap.cc:10921: error: expected initializer before
'Java_XapianJNI_swig_1module_1init'
make[1]: *** [xapian_wrap.lo] Error 1
make: *** [all] Error 2


More information about the Xapian-discuss mailing list