Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] exact search problem

From: Thomas den Braber <thomas(at)not-real.delos.nl>
Date: Mon May 18 2009 - 08:01:21 GMT
Peter,

I found it, there was also a the line:

 BumpPositionCounterCharacters |.

Some where at the end in the configuration file
After removing that, it works fine under Perl now.

The Bump command was blindly taken from an example and I never really
looked at it. Its wasn't even needed in my case. 

Thanks anyway for pointing me into the right direction and of course for
creating this very nice search engine.

--

Thomas den Braber

-----Original Message-----
From: Peter Karman <peter@peknet.com>
To: Swish-e Users Discussion List <users@lists.swish-e.org>
Date: Sun, 17 May 2009 19:07:15 -0500
Subject: Re: [swish-e] exact search problem

> 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


_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Mon May 18 04:01:29 2009