Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] exact search problem

From: Peter Karman <peter(at)not-real.peknet.com>
Date: Sun May 17 2009 - 17:52:05 GMT
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
Received on Sun May 17 13:52:07 2009