Thomas den Braber wrote on 5/17/09 2:34 PM:
> Peter,
>
> Yes I did, just did not put it in the example in the mail:
> The actual query is:
>
> my $query = q|persons="M. Jones"|;
>
> sorry for the error, (it's still weekend ;)
>
that query works for me:
[karpet@pekmac:~/tmp]$ cat jones.pl
#!/usr/bin/perl
use strict;
use warnings;
use SWISH::API;
my $swish = SWISH::API->new('index.swish-e');
my $search = $swish->New_Search_Object;
my $query = q|persons="M. Jones"|;
my $results = $search->Execute( $query);
print "hits = ", $results->hits, $/;
[karpet@pekmac:~/tmp]$ perl jones.pl
hits = 1
[karpet@pekmac:~/tmp]$ cat jones.xml
<doc>
<persons>M. Jones</persons>
</doc>
[karpet@pekmac:~/tmp]$ cat jones.conf
PropertyNamesIgnoreCase persons
MetaNames persons
DefaultContents XML*
WordCharacters abcdefghijklmnopqrstuvwxyz0123456789-_&
IgnoreFirstChar .-_$&
IgnoreLastChar .-_&
BeginCharacters abcdefghijklmnopqrstuvwxyz0123456789
[karpet@pekmac:~/tmp]$
--
Peter Karman . http://peknet.com/ . peter(at)not-real.peknet.com
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Sun May 17 20:07:13 2009