Have you looked at the XML Query Parser in the "contrib" section of the SVN repository? I have been using XSLT recently to mix dynamic content with query templates expressed as XML and then parsed by this framework.
If you don't like the default XML syntax used the parser can be configured to support your own choice of XML syntax and can be extended with custom QueryBuilder classes. See the Junit tests for examples. Cheers Mark ----- Original Message ---- From: Michael J. Prichard <[EMAIL PROTECTED]> To: java-user@lucene.apache.org Sent: Tuesday, 18 July, 2006 2:56:13 PM Subject: Re: Building easy to use search guis? How to save queries... That is really cool. But I am looking for something that I could save and then recreate. I am thinking of building an XML representation such as: <if arg1="CONTENT" expr="EQ" arg2="aliens"> <then> <action type="email" > <to value="[EMAIL PROTECTED]" /> <from value="[EMAIL PROTECTED]" /> <cc value="[EMAIL PROTECTED]" /> <message value="blah" /> </action> <then> </if> or something similar. I just want to see if anyone has done something like this before.... even up to the point of saving searches....do you just save the query? Thanks, Michael Dejan Nenov wrote: >Michael - > >Please take a look at our MakeTime UI here: http://www.maketime.com >It is in fact Lucene on the back end - albeit very hard to tell :) > >Dejan > >-----Original Message----- >From: Michael Prichard [mailto:[EMAIL PROTECTED] >Sent: Monday, July 17, 2006 8:00 PM >To: java-user@lucene.apache.org >Subject: Building easy to use search guis? How to save queries... > >Not sure if anyone out is doing this, thought about doing this or is just >plain curious. I want to figure out a way to build a search/rule gui's >whereas the user can build searches much like building rules in some mail >clients such as outlook or thunderbird. For example, the user could use >drop downs and text fields to build something like: > >IF CONTENT MATCHES "aliens" THEN DO SOMETHING > >Importantly lucene would be used to match "content" for "aliens" and then >something would happen. Going the other way, I need to be able to produce >the statement in the GUI as represented. > >SO, should I build an XML representation of what I need and parse that? Is >there something out there already doing something similar? Ideas? > >Thanks, >Michael > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]