Skip to main content.
home | support | download

Back to List Archive

Re: Unknown property data type

From: Bill Moseley <moseley(at)>
Date: Thu May 20 2004 - 04:45:15 GMT
On Wed, May 19, 2004 at 11:11:47PM -0400, David Fishburn wrote:
> I couldn't figure out how to tell to index *only* my URLs instead
> of spider from there, but the results here are pretty small anyway.

Yes, it's a spider so it tries to, well, spider.  I suppose you could
list multiple server configs and set test_url() to always return false.
But I haven't tried that.

> Unzip the above into an empty directory.
> Change line 99 in search.cgi to point it to your index location, it is
> currently:
>         index   => '/home/fishburn/dev/ami/support/index.swishe', # index to
> search
> I use:
> swish-e -c swish.conf -S prog
> If you run the following:
> perl search.cgi query=unix
> You will get:
> undef error - Unknown property data type '-1' for property 'swishtitle'

No, it actually works for me.

moseley@bumby:~/David$ perl search.cgi query=unix | grep hits
    (1 - 3 of 3 hits)

moseley@bumby:~/David$ swish-e -f index.swishe -w not dkdk -x '%t\n'
# SWISH format: 2.5.1
# Search words: not dkdk
# Removed stopwords: 
# Number of hits: 3
# Search time: 0.019 seconds
# Run time: 0.065 seconds
AvantGo: Documentation Library
AvantGo: Unix Instructions

moseley@bumby:~/David$ ls -l
total 464
-rw-rw-rw-    1 moseley  moseley    414626 2004-05-18 15:53 index.swishe
-rw-rw-rw-    1 moseley  moseley      4243 2004-05-18 15:53 index.swishe.prop
-rw-rw-rw-    1 moseley  moseley     16211 2004-05-19 21:25 search.cgi
-rw-rw-rw-    1 moseley  moseley      1207 2004-05-18 15:53 spider.conf
-rw-rw-rw-    1 moseley  moseley      1321 2004-05-18 15:53 swish.conf
-rw-r--r--    1 moseley  moseley     22459 2004-05-19 20:09

So, that's an odd problem.

Doesn't seem likely, but I wonder if you have a mismatch of the swish-e
binary and library.  The binary contains most of the
indexing code where the library contains most of the searching code.
That error you are seeing indicates that it's not reading the index
correctly -- or at least not the same way it was written while indexing.
And since your test index works on my machine works it makes
me suspect something wrong with the swish-e library code on your

Did you use the normal method of installation?  "make install"?

Do you have another machine where you can build swish-e again and do the
test you sent me?

Bill Moseley
Received on Wed May 19 21:45:16 2004