Re: Syntax for newSearcher query
Do I have to define the str name/values as exactly same as acturl query (order...)? Here is actual query indent=onversion=2.2facet=truefacet.mincount=1 facet.field=phys_statefacet.field=sic1facet.limit=-1 sort=sales_volume_us+descq=%28phys_country%3A%22United+States%22%29 start=0rows=20fl=duns_number%2Ccompany_name%2Cphys_address%2C+ phys_state%2C+phys_city%2C+phys_zip%2C+ticker_symbol%2C+status_id_descr%2Cscore qt=wt=explainOther=hl.fl= In the newSearch event, I defined as listener event=newSearcher class=solr.QuerySenderListener arr name=queries lst str name=facettrue/str str name=facet.mincount1/str str name=facet.fieldphys_state/str str name=facet.fieldsic1/str str name=sortsales_volume_us desc/str str name=qphys_country:United States/str str name=start0/str str name=rows20/str str name=flduns_number, company_name, phys_address, phys_state, phys_city, phys_ zip, ticker_symbol, status_id_descr, score/str /lst /arr /listener But, I am not sure this is working or not (may be not!). Is there anything else I missed in configuration? Thanks, Jae On 10/10/07, BrendanD [EMAIL PROTECTED] wrote: Awesome! Thanks! hossman wrote: : looking queries that I'm not quite sure how to specify in my solrconfig.xml : file in the newSearcher section. : rows=20start=0facet.query=attribute_id:1003278facet.query=attribute_id:1003928sort=merchant_count+descfacet=truefacet.field=min_price_cad_rounded_to_tensfacet.field=manufacturer_idfacet.field=merchant_idfacet.field=has_couponfacet.field=has_bundlefacet.field=has_sale_pricefacet.field=has_promofq=product_is_active:truefq=product_status_code:completefq=category_id:1001143qt=sti_dismax_enf.min_price_cad_rounded_to_tens.facet.limit=-1 all you have to do is put each key=val pair as a str name=keyval/str it doesn't matter what the param is, or if it's a param that has multiple values, just list each of them the same way... listener event=firstSearcher class=solr.QuerySenderListener arr name=queries lst !-- first query -- str name=rows20/str str name=start0/str str name=facet.queryattribute_id:1003278/str str name=facet.queryattribute_id:1003928/str ... /lst lst !-- second query -- ... -Hoss -- View this message in context: http://www.nabble.com/Syntax-for-newSearcher-query-tf4604487.html#a13148914 Sent from the Solr - User mailing list archive at Nabble.com.
Syntax for newSearcher query
Hi, The examples that I've found in the solrconfig.xml file and on this site are fairly basic for pre-warming specific queries. I have some rather complex looking queries that I'm not quite sure how to specify in my solrconfig.xml file in the newSearcher section. Here's an example of 3 queries that I'd like to pre-warm. The category ids will change with each query (there are 977 different category_ids): rows=20start=0facet.query=attribute_id:1003278facet.query=attribute_id:1003928sort=merchant_count+descfacet=truefacet.field=min_price_cad_rounded_to_tensfacet.field=manufacturer_idfacet.field=merchant_idfacet.field=has_couponfacet.field=has_bundlefacet.field=has_sale_pricefacet.field=has_promofq=product_is_active:truefq=product_status_code:completefq=category_id:1001143qt=sti_dismax_enf.min_price_cad_rounded_to_tens.facet.limit=-1 rows=0start=0sort=merchant_count+descf.attribute_id_decimal_value_pair.facet.limit=-1facet=truefacet.field=attribute_id_decimal_value_pairfq=product_is_active:truefq=product_status_code:completefq=category_id:1001143qt=sti_dismax_enf.attribute_id_decimal_value_pair.facet.prefix=1003278 rows=0start=0sort=merchant_count+descf.attribute_id_value_en_pair.facet.prefix=1003928facet=truef.attribute_id_value_en_pair.facet.limit=-1facet.field=attribute_id_value_en_pairfq=product_is_active:truefq=product_status_code:completefq=category_id:1001143qt=sti_dismax_en I'm not sure if it's necessary to have all those parameters in my query for pre-warming, but those are just the queries I see in my catalina.out file when the user clicks on a specific category. I'd like to pre-warm the first page of results from all of my categories. Thanks, Brendan -- View this message in context: http://www.nabble.com/Syntax-for-newSearcher-query-tf4604487.html#a13147569 Sent from the Solr - User mailing list archive at Nabble.com.
Re: Syntax for newSearcher query
: looking queries that I'm not quite sure how to specify in my solrconfig.xml : file in the newSearcher section. : rows=20start=0facet.query=attribute_id:1003278facet.query=attribute_id:1003928sort=merchant_count+descfacet=truefacet.field=min_price_cad_rounded_to_tensfacet.field=manufacturer_idfacet.field=merchant_idfacet.field=has_couponfacet.field=has_bundlefacet.field=has_sale_pricefacet.field=has_promofq=product_is_active:truefq=product_status_code:completefq=category_id:1001143qt=sti_dismax_enf.min_price_cad_rounded_to_tens.facet.limit=-1 all you have to do is put each key=val pair as a str name=keyval/str it doesn't matter what the param is, or if it's a param that has multiple values, just list each of them the same way... listener event=firstSearcher class=solr.QuerySenderListener arr name=queries lst !-- first query -- str name=rows20/str str name=start0/str str name=facet.queryattribute_id:1003278/str str name=facet.queryattribute_id:1003928/str ... /lst lst !-- second query -- ... -Hoss
Re: Syntax for newSearcher query
Awesome! Thanks! hossman wrote: : looking queries that I'm not quite sure how to specify in my solrconfig.xml : file in the newSearcher section. : rows=20start=0facet.query=attribute_id:1003278facet.query=attribute_id:1003928sort=merchant_count+descfacet=truefacet.field=min_price_cad_rounded_to_tensfacet.field=manufacturer_idfacet.field=merchant_idfacet.field=has_couponfacet.field=has_bundlefacet.field=has_sale_pricefacet.field=has_promofq=product_is_active:truefq=product_status_code:completefq=category_id:1001143qt=sti_dismax_enf.min_price_cad_rounded_to_tens.facet.limit=-1 all you have to do is put each key=val pair as a str name=keyval/str it doesn't matter what the param is, or if it's a param that has multiple values, just list each of them the same way... listener event=firstSearcher class=solr.QuerySenderListener arr name=queries lst !-- first query -- str name=rows20/str str name=start0/str str name=facet.queryattribute_id:1003278/str str name=facet.queryattribute_id:1003928/str ... /lst lst !-- second query -- ... -Hoss -- View this message in context: http://www.nabble.com/Syntax-for-newSearcher-query-tf4604487.html#a13148914 Sent from the Solr - User mailing list archive at Nabble.com.