You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Andy <an...@yahoo.com> on 2010/06/10 05:37:57 UTC

Can query boosting be used with a custom request handlers?

I want to try out the bobo plugin for Solr, which is a custom request  handler  (http://code.google.com/p/bobo-browse/wiki/SolrIntegration).

At the same time I want to use BoostQParserPlugin to boost my queries, something like {!boost b=log(popularity)}foo

Can I use the {!boost} feature in conjunction with an external custom request handler like the bobo plugin, or does {!boost} only work with the standard request handler?    


      

Re: Can query boosting be used with a custom request handlers?

Posted by Erik Hatcher <er...@gmail.com>.
Can't answer this one definitively, as it would depend on what the  
request handler itself does with the q parameter.  Is this using  
Solr's standard QueryComponent underneath?  I don't know currently.   
But it is entirely up to the request handler on how parameters are  
handled.

	Erik

On Jun 9, 2010, at 11:37 PM, Andy wrote:

> I want to try out the bobo plugin for Solr, which is a custom  
> request  handler  (http://code.google.com/p/bobo-browse/wiki/SolrIntegration 
> ).
>
> At the same time I want to use BoostQParserPlugin to boost my  
> queries, something like {!boost b=log(popularity)}foo
>
> Can I use the {!boost} feature in conjunction with an external  
> custom request handler like the bobo plugin, or does {!boost} only  
> work with the standard request handler?
>
>
>


Re: Can query boosting be used with a custom request handlers?

Posted by Chris Hostetter <ho...@fucit.org>.
: > Maybe this helps:
: > http://wiki.apache.org/solr/SolrPlugins#QParserPlugin

Right ... from the point of view of a custom RequestHandler (or 
SearchComponent) they key is to follow the model used by QueryComponent 
and use "QParser.getParser(...)" to deal with parsing query strings.

Then all of the various registered QParserPlugins can be used w/o any 
custom code.




-Hoss


Re: Can query boosting be used with a custom request handlers?

Posted by John Wang <jo...@gmail.com>.
Thanks Marc!

-John

On Mon, Jun 21, 2010 at 2:08 PM, Marc Sturlese <ma...@gmail.com>wrote:

>
> Maybe this helps:
> http://wiki.apache.org/solr/SolrPlugins#QParserPlugin
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Can-query-boosting-be-used-with-a-custom-request-handlers-tp884499p912691.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Re: Can query boosting be used with a custom request handlers?

Posted by Marc Sturlese <ma...@gmail.com>.
Maybe this helps:
http://wiki.apache.org/solr/SolrPlugins#QParserPlugin
-- 
View this message in context: http://lucene.472066.n3.nabble.com/Can-query-boosting-be-used-with-a-custom-request-handlers-tp884499p912691.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: solr itas

Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: solr itas
: In-Reply-To: <98...@web111303.mail.gq1.yahoo.com>
: References: <98...@web111303.mail.gq1.yahoo.com>

http://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists

When starting a new discussion on a mailing list, please do not reply to 
an existing message, instead start a fresh email.  Even if you change the 
subject line of your email, other mail headers still track which thread 
you replied to and your question is "hidden" in that thread and gets less 
attention.   It makes following discussions in the mailing list archives 
particularly difficult.
See Also:  http://en.wikipedia.org/wiki/User:DonDiego/Thread_hijacking




-Hoss


Re: solr itas

Posted by Erik Hatcher <er...@gmail.com>.
On Jun 11, 2010, at 9:44 AM, <sv...@icarinae.com> <sv...@icarinae.com> wrote:
> Thanks for responding. Yeah actully it was directly from trunk..but  
> I got
> it working after following your webminar yesterday. nice  
> presentation...
> I have a followup question on that.
>
> As suggested at http://www.intellog.com/blog/?p=208 to include
> "&hl.simple.pre=%3CB%3E&hl.simple.post=%3CB%2F%3E" . Where can we  
> add it to
> include the parameters in query url by default.

Basing it off my webinar materials, the way I'd do it is put that in  
the /browse handler in solrconfig.xml.  Careful with escaping/encoding.

	Erik


Re: solr itas

Posted by sv...@icarinae.com.
Hi Eric,

Thanks for responding. Yeah actully it was directly from trunk..but I got
it working after following your webminar yesterday. nice presentation...
I have a followup question on that. 

As suggested at http://www.intellog.com/blog/?p=208 to include
"&hl.simple.pre=%3CB%3E&hl.simple.post=%3CB%2F%3E" . Where can we add it to
include the parameters in query url by default.

Regards,

SV



On Fri, 11 Jun 2010 08:24:23 -0400, Erik Hatcher <er...@gmail.com>
wrote:
> Yeah, certainly the /itas handler is there, or you'd get an error.   
> The culprit is surely the missing definition of the  
> VelocityResponseWriter in solrconfig.xml.  What version of Solr are  
> you running?   It comes wired into trunk's example and the LucidWorks  
> for Solr distro, but isn't wired into 1.4 automatically.
> 
> 	Erik
> 
> On Jun 11, 2010, at 6:39 AM, olivier sallou wrote:
> 
>> did you update solrconfig.xml to add /itas query handler?
>>
>> 2010/6/11 <sv...@icarinae.com>
>>
>>> Hi,
>>>
>>> When I type http://127.0.0.1:8080/solr/itas
>>>
>>> I receive this result in the webpage instead of html page. Does  
>>> anyone
>>> know the reason and/or suggestion to fix it.
>>>
>>> <?xml version="1.0" encoding="UTF-8" ?>
>>> - <response>
>>> - <lst name="responseHeader">
>>> <int name="status">0</int>
>>> <int name="QTime">62</int>
>>> </lst>
>>> - <result name="response" numFound="3" start="0" maxScore="1.0">
>>> - <doc>
>>> <float name="score">1.0</float>
>>> - <arr name="company">
>>> <str>Lucid Imagination</str>
>>> </arr>
>>> - <arr name="country">
>>> <str>USA</str>
>>> </arr>
>>> - <arr name="first">
>>>
>>>
>>>
>>>
>>> Thanks,
>>>
>>>
>>>

Re: solr itas

Posted by Erik Hatcher <er...@gmail.com>.
Yeah, certainly the /itas handler is there, or you'd get an error.   
The culprit is surely the missing definition of the  
VelocityResponseWriter in solrconfig.xml.  What version of Solr are  
you running?   It comes wired into trunk's example and the LucidWorks  
for Solr distro, but isn't wired into 1.4 automatically.

	Erik

On Jun 11, 2010, at 6:39 AM, olivier sallou wrote:

> did you update solrconfig.xml to add /itas query handler?
>
> 2010/6/11 <sv...@icarinae.com>
>
>> Hi,
>>
>> When I type http://127.0.0.1:8080/solr/itas
>>
>> I receive this result in the webpage instead of html page. Does  
>> anyone
>> know the reason and/or suggestion to fix it.
>>
>> <?xml version="1.0" encoding="UTF-8" ?>
>> - <response>
>> - <lst name="responseHeader">
>> <int name="status">0</int>
>> <int name="QTime">62</int>
>> </lst>
>> - <result name="response" numFound="3" start="0" maxScore="1.0">
>> - <doc>
>> <float name="score">1.0</float>
>> - <arr name="company">
>> <str>Lucid Imagination</str>
>> </arr>
>> - <arr name="country">
>> <str>USA</str>
>> </arr>
>> - <arr name="first">
>>
>>
>>
>>
>> Thanks,
>>
>>
>>


Re: solr itas

Posted by olivier sallou <ol...@gmail.com>.
did you update solrconfig.xml to add /itas query handler?

2010/6/11 <sv...@icarinae.com>

> Hi,
>
> When I type http://127.0.0.1:8080/solr/itas
>
> I receive this result in the webpage instead of html page. Does anyone
> know the reason and/or suggestion to fix it.
>
> <?xml version="1.0" encoding="UTF-8" ?>
> - <response>
> - <lst name="responseHeader">
>  <int name="status">0</int>
>  <int name="QTime">62</int>
>  </lst>
> - <result name="response" numFound="3" start="0" maxScore="1.0">
> - <doc>
>  <float name="score">1.0</float>
> - <arr name="company">
>  <str>Lucid Imagination</str>
>  </arr>
> - <arr name="country">
>  <str>USA</str>
>  </arr>
> - <arr name="first">
>
>
>
>
> Thanks,
>
>
>

solr itas

Posted by sv...@icarinae.com.
Hi,

When I type http://127.0.0.1:8080/solr/itas 

I receive this result in the webpage instead of html page. Does anyone
know the reason and/or suggestion to fix it.

<?xml version="1.0" encoding="UTF-8" ?> 
- <response>
- <lst name="responseHeader">
  <int name="status">0</int> 
  <int name="QTime">62</int> 
  </lst>
- <result name="response" numFound="3" start="0" maxScore="1.0">
- <doc>
  <float name="score">1.0</float> 
- <arr name="company">
  <str>Lucid Imagination</str> 
  </arr>
- <arr name="country">
  <str>USA</str> 
  </arr>
- <arr name="first">




Thanks,



Re: Can query boosting be used with a custom request handlers?

Posted by John Wang <jo...@gmail.com>.
Hi Chris:

     Can you please elaborate on how to use the QParser framework?

Thanks!

-John

On Fri, Jun 11, 2010 at 10:56 AM, Chris Hostetter
<ho...@fucit.org>wrote:

>
> : So it's possible to use both dismax and custom request handler in the
> same query?
>
> it *really* depends on the request handler ... if it uses the QParser
> framework for query parsing, then yes it should work fine -- but the
> request handler has to be written to work that way.
>
>
> -Hoss
>
>

Re: Can query boosting be used with a custom request handlers?

Posted by Chris Hostetter <ho...@fucit.org>.
: So it's possible to use both dismax and custom request handler in the same query?

it *really* depends on the request handler ... if it uses the QParser 
framework for query parsing, then yes it should work fine -- but the 
request handler has to be written to work that way.


-Hoss


Re: Can query boosting be used with a custom request handlers?

Posted by Andy <an...@yahoo.com>.
Thanks Bill.

So it's possible to use both dismax and custom request handler in the same query?

So the entire query would look something like this? -

wt=bobo&qt=bobo&bobo.groupby.category&q={!boost b=log(popularity) defType=dismax}foo 

Thanks.

--- On Thu, 6/10/10, Bill Au <bi...@gmail.com> wrote:

> From: Bill Au <bi...@gmail.com>
> Subject: Re: Can query boosting be used with a custom request handlers?
> To: solr-user@lucene.apache.org
> Date: Thursday, June 10, 2010, 11:15 AM
> You can use the defType param ni the
> boost local params  to use a different
> handler.  Here is an example for using dismax:
> 
> {!boost b=log(popularity) defType=dismax}foo
> 
> I do this with a custom handler that I have implemented fro
> my app.
> 
> Bill
> 
> 
> 
> On Wed, Jun 9, 2010 at 11:37 PM, Andy <an...@yahoo.com>
> wrote:
> 
> > I want to try out the bobo plugin for Solr, which is a
> custom request
> >  handler  (http://code.google.com/p/bobo-browse/wiki/SolrIntegration).
> >
> > At the same time I want to use BoostQParserPlugin to
> boost my queries,
> > something like {!boost b=log(popularity)}foo
> >
> > Can I use the {!boost} feature in conjunction with an
> external custom
> > request handler like the bobo plugin, or does {!boost}
> only work with the
> > standard request handler?
> >
> >
> >
> >
> 


      

Re: Can query boosting be used with a custom request handlers?

Posted by Bill Au <bi...@gmail.com>.
You can use the defType param ni the boost local params  to use a different
handler.  Here is an example for using dismax:

{!boost b=log(popularity) defType=dismax}foo

I do this with a custom handler that I have implemented fro my app.

Bill



On Wed, Jun 9, 2010 at 11:37 PM, Andy <an...@yahoo.com> wrote:

> I want to try out the bobo plugin for Solr, which is a custom request
>  handler  (http://code.google.com/p/bobo-browse/wiki/SolrIntegration).
>
> At the same time I want to use BoostQParserPlugin to boost my queries,
> something like {!boost b=log(popularity)}foo
>
> Can I use the {!boost} feature in conjunction with an external custom
> request handler like the bobo plugin, or does {!boost} only work with the
> standard request handler?
>
>
>
>