On Fri, Aug 29, 2003 at 05:12:55PM +0100, David Hoare wrote:
> Hi Bill,
>
> First off, thanks for all the help - it is most appreciated.
>
> Secondly - I have got a working version of aspell (Text::Aspell) but I
> can't seem to find ParseQuery.pm. Do I need to upgrade swish? I am
> running version 2.2.1.
Yes, I think it's available in 2.3-dev on. But you can grab it from
CVS. sourceforge seems to be down right now but just follow links
starting from swish-e.org -> CVS -> browse CVS repository -> swish-e ->
example/modules/SWISH/ and you can grab a copy from there.
There are not any docs, but just try it out and use Data::Dumper to
display the return value.
moseley@bumby:~/swish-e/example/modules$ perl -MSWISH::ParseQuery -MData::Dumper -le 'print Dumper parse_query($_,q["]) while <STDIN>'
hello and title = ( one or two or three ) or subject = other
$VAR1 = {
'swishdefault' => [
[
'hello'
]
],
'subject' => [
[
'other'
]
],
'title' => [
[
'one'
],
[
'two'
],
[
'three'
]
]
};
word " some phrase " or meta = ( some " other phrase " )
$VAR1 = {
'swishdefault' => [
[
'some',
'phrase'
],
[
'word'
]
],
'meta' => [
[
'other',
'phrase'
],
[
'some'
]
]
};
--
Bill Moseley
moseley@hank.org
Received on Fri Aug 29 17:43:32 2003