Skip to main content.
home | support | download

Back to List Archive

Re: [swish-e] Return matched text's tag into result

From: at <Ander>
Date: Fri, 05 Oct 2012 08:02:23 +0200
On Friday 05/10/2012 at 3:20 am, Peter Karman  wrote:
> Ander Garmendia wrote on 10/1/12 4:58 AM:
>>
>> Hi,
>>
>> I'm indexing some XML files and I would like swish-e to return me the
>> tag where the query matches. Is there any way to archieve this?
>>
>> Here is a little example:
>>
>> XML:
>> <book>
>> <title>the name of rose</title>
>> <author>umberto eco</author>
>> </book>
>>
>>
>> $ swish-e -w 'book=rose' -f index.idx
>> title
>>
>>
>> $swish-e -w 'book=eco' -f index.idx
>> author
>>
>>
>> Any help would be appreciated.
>>
>
> There's no way I know of to do this in swish-e.
>
> I have implemented such a feature though, in Swish3:
>
> http://search.cpan.org/~karman/SWISH-Prog-Lucy-0.11/lib/SWISH/Prog/Lucy/Result.pm#relevant_fields
>
> There's currently no feature in the swish3 tool itself to return that 
> list of
> matching fields, but if you suggest an interface, I'd be happy to take 
> a stab at
> adding it. You can see the usage/options here:
>
> http://dev.swish-e.org/browser/perl/SWISH-Prog/trunk/examples/swish3#L21
>
>

Hi,

I was afraid that there was no such feature in swish-e.

I'll check your implementation for swish3 and think about it.

Thanks for your response.
>
>
>
> --
> Peter Karman  . http://peknet.com/ .  peter(at)not-real.peknet.com
> _______________________________________________
> Users mailing list
> Users(at)not-real.lists.swish-e.org
> http://lists.swish-e.org/listinfo/users
>
Ander.




_______________________________________________
Users mailing list
Users(at)not-real.lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Fri Oct 05 2012 - 06:08:23 GMT