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 "Petersen, Robert" <ro...@buy.com> on 2013/01/23 02:07:25 UTC
firstSearcher and NewSearcher parameters
Hi guys,
I was wondering if there was a way to pass commonly used boost values in with commonly used filter queries in these solrConfig event handler sections. Could I just append the ^1.5 at the end of the fq value? IE can I do this:
<str name="fq">taxonomyCategoryTypeId:1^1.5</str>
Or perhaps this:
<str name="fq">(taxonomyCategoryTypeId:1)%5e1.5</str>
Is there a more comprehensive list of possible xml query parameters we can put in these config sections? Is it just anything normally passed in? So far these are the only ones I have seen used:
<listener event="newSearcher" class="solr.QuerySenderListener">
<arr name="queries">
<lst>
<str name="q">star:1</str>
<str name="facet.field">storeId</str>
<str name="start">0</str>
<str name="rows">35</str>
<str name="fq">taxonomyCategoryTypeId:0 TO 1</str>
...Etc etc...
Thanks,
Robi
RE: firstSearcher and NewSearcher parameters
Posted by "Petersen, Robert" <ro...@buy.com>.
Thanks Hoss, Good to know!
I have that exact situation: a complex function based on multiple field values that I always run for particular types of searches including global star searches to aid in sorting the results appropriately.
Robi
-----Original Message-----
From: Chris Hostetter [mailto:hossman_lucene@fucit.org]
Sent: Wednesday, January 23, 2013 11:40 AM
To: solr-user@lucene.apache.org
Subject: RE: firstSearcher and NewSearcher parameters
: OK I guess I see how that makes sense. If I use function queries for
: affecting the scoring of results, does it help to include those in the
: warm up queries or does the same thing go for those also? IE is it
: useless to add <str name="q">{!boost%20b=... ?
boosts on *queries* probably won't affect your warming queries (unless you have concerned about a particularly important/expensive query and you always want that exact query to be warmed) but if you typically boost on some functions of field values then including those functions in your warming queries can be helpul to ensure that the field caches for the fields used in those functions are warmed up.
-Hoss
RE: firstSearcher and NewSearcher parameters
Posted by Chris Hostetter <ho...@fucit.org>.
: OK I guess I see how that makes sense. If I use function queries for
: affecting the scoring of results, does it help to include those in the
: warm up queries or does the same thing go for those also? IE is it
: useless to add <str name="q">{!boost%20b=... ?
boosts on *queries* probably won't affect your warming queries (unless you
have concerned about a particularly important/expensive query and you
always want that exact query to be warmed) but if you typically boost on
some functions of field values then including those functions in your
warming queries can be helpul to ensure that the field caches for the
fields used in those functions are warmed up.
-Hoss
RE: firstSearcher and NewSearcher parameters
Posted by "Petersen, Robert" <ro...@buy.com>.
Hi Otis,
OK I guess I see how that makes sense. If I use function queries for affecting the scoring of results, does it help to include those in the warm up queries or does the same thing go for those also? IE is it useless to add <str name="q">{!boost%20b=... ?
Thanks,
Robi
-----Original Message-----
From: Otis Gospodnetic [mailto:otis.gospodnetic@gmail.com]
Sent: Tuesday, January 22, 2013 5:21 PM
To: solr-user@lucene.apache.org
Subject: Re: firstSearcher and NewSearcher parameters
Hi Robi,
Boosts don't do anything for warmup queries if that is what you're after...
Otis
Solr & ElasticSearch Support
http://sematext.com/
On Jan 22, 2013 8:08 PM, "Petersen, Robert" <ro...@buy.com> wrote:
> Hi guys,
>
> I was wondering if there was a way to pass commonly used boost values
> in with commonly used filter queries in these solrConfig event handler
> sections. Could I just append the ^1.5 at the end of the fq value?
> IE can I do this:
> <str name="fq">taxonomyCategoryTypeId:1^1.5</str>
> Or perhaps this:
> <str name="fq">(taxonomyCategoryTypeId:1)%5e1.5</str>
>
>
> Is there a more comprehensive list of possible xml query parameters we
> can put in these config sections? Is it just anything normally passed
> in? So far these are the only ones I have seen used:
>
> <listener event="newSearcher" class="solr.QuerySenderListener"> <arr
> name="queries"> <lst>
> <str name="q">star:1</str>
> <str name="facet.field">storeId</str>
> <str name="start">0</str>
> <str name="rows">35</str>
> <str name="fq">taxonomyCategoryTypeId:0 TO 1</str>
> ...Etc etc...
>
> Thanks,
> Robi
>
Re: firstSearcher and NewSearcher parameters
Posted by Otis Gospodnetic <ot...@gmail.com>.
Hi Robi,
Boosts don't do anything for warmup queries if that is what you're after...
Otis
Solr & ElasticSearch Support
http://sematext.com/
On Jan 22, 2013 8:08 PM, "Petersen, Robert" <ro...@buy.com> wrote:
> Hi guys,
>
> I was wondering if there was a way to pass commonly used boost values in
> with commonly used filter queries in these solrConfig event handler
> sections. Could I just append the ^1.5 at the end of the fq value? IE can
> I do this:
> <str name="fq">taxonomyCategoryTypeId:1^1.5</str>
> Or perhaps this:
> <str name="fq">(taxonomyCategoryTypeId:1)%5e1.5</str>
>
>
> Is there a more comprehensive list of possible xml query parameters we can
> put in these config sections? Is it just anything normally passed in? So
> far these are the only ones I have seen used:
>
> <listener event="newSearcher" class="solr.QuerySenderListener">
> <arr name="queries">
> <lst>
> <str name="q">star:1</str>
> <str name="facet.field">storeId</str>
> <str name="start">0</str>
> <str name="rows">35</str>
> <str name="fq">taxonomyCategoryTypeId:0 TO 1</str>
> ...Etc etc...
>
> Thanks,
> Robi
>