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 ;)
--
Thomas
-----Original Message-----
From: Peter Karman <peter@peknet.com>
To: Swish-e Users Discussion List <users@lists.swish-e.org>
Date: Sun, 17 May 2009 12:52:05 -0500
Subject: Re: [swish-e] exact search problem
> Thomas den Braber wrote on 5/17/09 9:09 AM:
> > Peter,
> >
> > I used it from perl with the Swish api.
> > I use Swish-e 2.4.7.
> >
> > This is the command:
> >
> > ...
> > my $search = $swish->New_Search_Object;
> > $search->SetSort( $order );
> > my $query = q|"M. Jones"|;
> > my $results = $search->Execute( $query);
> >
>
> you need to explicitly name the MetaName (persons) since you've indexed
> "M.
> Jones" under that MetaName:
>
> my $query = q|persons="M. Jones"|;
>
> same thing as my previous example (below):
>
>
> >>
> >> [karpet@pekmac:~/tmp]$ swish-e -w jones
> >> # SWISH format: 2.4.7
> >> # Search words: jones
> >> # Removed stopwords:
> >> err: no results
> >> .
> >> [karpet@pekmac:~/tmp]$ swish-e -w persons=jones
> >> # SWISH format: 2.4.7
> >> # Search words: persons=jones
> >> # Removed stopwords:
> >> # Number of hits: 1
> >> # Search time: 0.000 seconds
> >> # Run time: 0.004 seconds
> >> 1000 jones.xml "jones.xml" 42
> >> .
>
> --
> 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 Sun May 17 15:34:07 2009