You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Michael Prichard <mi...@mac.com> on 2006/07/18 05:00:04 UTC

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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Building easy to use search guis? How to save queries...

Posted by marbux <ma...@gmail.com>.
Isys desktop search does something along the lines of what you speak of.
There's a screen shot of the UI on this page: <
http://www.llrx.com/features/isys2.htm>. The art is a bit too small to read,
but the UI displays the resulting command line as the user builds a query
(small type in lower left of screen shot).

Basically, the user enters a term in the top of the screen, selects an
operand and clicks/enters that operand, then on to the next term and
operand, etc.

The scheme is pretty well-designed. It's very easy to use for novices.

Best regards,

Marbux

On 7/17/06, Michael Prichard <mi...@mac.com> wrote:
>
> 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: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Re: Building easy to use search guis? How to save queries...

Posted by mark harwood <ma...@yahoo.co.uk>.
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 <mi...@mac.com>
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="foo@bar.com" />
       <from value="bar@foo.com" />
       <cc value="foo@bar.com" />
       <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:michael_prichard@mac.com] 
>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: java-user-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-user-help@lucene.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Building easy to use search guis? How to save queries...

Posted by "Michael J. Prichard" <mi...@mac.com>.
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="foo@bar.com" />
       <from value="bar@foo.com" />
       <cc value="foo@bar.com" />
       <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:michael_prichard@mac.com] 
>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: java-user-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-user-help@lucene.apache.org
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


RE: Building easy to use search guis? How to save queries...

Posted by Dejan Nenov <de...@jollyobject.com>.
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:michael_prichard@mac.com] 
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org