> > 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
> all_faqs2.html
> 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
> undef_prop.zip
>
> So, that's an odd problem.
>
> Doesn't seem likely, but I wonder if you have a mismatch of
> the swish-e binary and libswish-e.so 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 machine.
I have all this working on both the production machine and the dev machine
(some time ago now).
I just wanted to confirm that on the dev machine:
a) make uninstall
b) make
c) make install
Cleared up any errors I had and allowed me to run.
I had 2.4.0 installed originally and I simply did a new install of 2.4.2
over top of it.
Did remember if I had overridden any of the configuration options the first
time.
Dave
Received on Mon Jun 7 06:05:11 2004