Skip to main content.
home | support | download

Back to List Archive

Re: thank you and query parser

From: J Robinson <jrobinson852(at)>
Date: Tue Sep 14 2004 - 20:28:06 GMT
Hello Jonas;

That query parser looks interesting, but I couldn't
really figure out how to use it.  

Can you post a short example of its usage in the
context of SWISH::API?

Thanks in advance!

--- Jonas Wolf <> wrote:

> Hi all,
> My job here is coming to and end, and I would like
> to take this 
> opportunity to thank everyone that has been
> answering my questions over 
> the last few months. Especially, I would like to
> thank Bill Moseley, I 
> think everyone around here knows he is the man that
> makes swish-e what it 
> is. And thank you for this wonderful piece of
> software!
> Ok, enough with the praise, before I leave I would
> like to share my query 
> parser with anyone who is interested. It uses
> Parse::RecDescent, so you 
> can define any query syntax you like. This pacakge
> performs two functions. 
> Firstly, it checks that the query conforms to the
> specified syntax. And 
> secondly, I use this package to generate the
> equivalent swish-e query 
> string. This means in particular that I translate a
> search term 'query' 
> into something like 'query or meta=query or
> meta2=query' and so on.
> So this parser can be useful if you are using lots
> of metanames and would 
> like to search all of them at the same time, but it
> can also be used as a 
> general purpose query parser. Of course you have to
> adjust the grammar to 
> whatever you like.
> I know it's not the best code, but it does the job,
> so feel free to use it 
> any way you like.
> Jonas
> #!C:\Perl\bin\perl.exe -w
> #     #
> # This package takes a query string and parses it
> according to the     #
> # defined syntax.     # 

Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
Received on Tue Sep 14 13:28:36 2004