Impementing Solr

2007-07-18 Thread John Ni
Hi all,
 I just started working with the Solr.. i also tried the tutorial 
as well and was able to understand the concept.  However, when I tried looking 
into the "SolrServlet", it is depricated...(I'm gonna looking into Javadoc as 
well) but just looking for the quick answer ... which new classes shld I be 
using to get the similar result as in the tutorial.  let's say, I'm doing the 
filter search and I'm sending the query params through a form to the Solr 
server and get the result back.  Any help will be appericated!
  Regards,
  Jonny

   
-
Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV. 

Re: Impementing Solr

2007-07-20 Thread John Ni
Hi Chris,
 Thank you very much for giving me the pointer. EmbeddedSolr was the 
one that I was trying to implement. BTW, just curious, how about implementing 
filter query "fq" if I gonna implement EmbeddedSolr.any suggestion.  For 
example, let say I have the following form
   
  Bird: [ x] Parrot [x ] Eagle [ ] Dove  ..say I'm looking for the articles 
related those two birds.  How can I search on that?  Any suggestion will be 
appericated!!
  Cheers,
  Jonny

Chris Hostetter <[EMAIL PROTECTED]> wrote:
  
: I tried looking into the "SolrServlet", it is depricated...(I'm gonna
: looking into Javadoc as well) but just looking for the quick answer ...
: which new classes shld I be using to get the similar result as in the
: tutorial. let's say, I'm doing the filter search and I'm sending the
: query params through a form to the Solr server and get the result back.

i'm not really sure if i understand your question ... if you are
interested in learning more about how the internals of Solr works, then I
would suggest you start by reading the documentaiton of the various Plugin
classes ... they'll give you a lot of insight into how data/input flows
through Solr and will help you learn what the other key lower level
classes are...

http://wiki.apache.org/solr/SolrPlugins

...if your interest is in uses the Solr code inside of another (non
webapp) application (which i'm guesisng based on the wording of your
question) then you may want to check out the docs on embedding solr...

http://wiki.apache.org/solr/EmbeddedSolr



-Hoss



   
-
Luggage? GPS? Comic books? 
Check out fitting  gifts for grads at Yahoo! Search.

Filter Search!

2007-07-21 Thread John Ni
Hi all, 
I have a question regarding filter Search with the subset: Let say, I have 
the following form
   
  Search article [xyz]
  Subject: {x] Math [X]English [ ] Science
  Grade: [ ] freshman [x] junior [x]senior
   
  so the query syntax would be 
q=xyz&fq=Subject:Math+English&fq=Grade:junior+senior
   
  Basically, I'm seaching for the article containg "xyz" in either in Math or 
English subject for either junior or senior grade.  Currenlty, I'm trying 
EmbeddedSolr http://wiki.apache.org/solr/EmbeddedSolr , but I having a hard 
time implementing above filter search.  I was just wonder anybody had 
implemented similar case using EmbeddedSolr or any other method.  If anybody 
has any idea/suggestion please let this newbie know.  
  Cheers,
  Jonny 

   
-
Moody friends. Drama queens. Your life? Nope! - their life, your story.
 Play Sims Stories at Yahoo! Games. 

Re: Filter Search!

2007-07-23 Thread John Ni
Hi all,
 The root of this posting regarding "Filter Search" might sound specific to 
the embedded solr mode but if anyone has experience handle the similar 
situation with different implementations, multiple subtype filter search( I 
might not be using the right words to describe it but please look at the root 
of this thread to understand the case) please suggest me how to handle those 
kind of situation.  So far I have able to use the javascript to create the 
query syntax before sending it to my servlet.  My javascript creates, for 
example, the following string:
   
  ?q=xyz&fq=subject:Math+English$fq=grade:junior+senior 
  then send this string to servlet to handle the query.  But just wondering, is 
there the other way to handle the same issue.  Looking forward to hearing any 
comments/suggestion.
  Regards,
  Jonny

Mike Klaas <[EMAIL PROTECTED]> wrote:
  
On 21-Jul-07, at 11:19 PM, John Ni wrote:

> Hi all,
> I have a question regarding filter Search with the subset: Let 
> say, I have the following form
>
> Search article [xyz]
> Subject: {x] Math [X]English [ ] Science
> Grade: [ ] freshman [x] junior [x]senior
>
> so the query syntax would be q=xyz&fq=Subject:Math 
> +English&fq=Grade:junior+senior
>
> Basically, I'm seaching for the article containg "xyz" in either 
> in Math or English subject for either junior or senior grade. 
> Currenlty, I'm trying EmbeddedSolr http://wiki.apache.org/solr/ 
> EmbeddedSolr , but I having a hard time implementing above filter 
> search. I was just wonder anybody had implemented similar case 
> using EmbeddedSolr or any other method. If anybody has any idea/ 
> suggestion please let this newbie know.

I'm not sure what is the canonical way of passing parameters in 
embedded mode, but the main problem is likely the values of your 
parameters. you probably want:

Subject:(Math English)
Grade:(junior senior)

-Mike


   
-
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.