Do I have to define the <str> name/values as exactly same as acturl query
(order...)?

Here is actual query

indent=on&version=2.2&facet=true&facet.mincount=1
&facet.field=phys_state&facet.field=sic1&facet.limit=-1
&sort=sales_volume_us+desc&q=%28phys_country%3A%22United+States%22%29
&start=0&rows=20&fl=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="facet">true</str>
        <str name="facet.mincount">1</str>
        <str name="facet.field">phys_state</str>
        <str name="facet.field">sic1</str>
        <str name="sort">sales_volume_us desc</str>
        <str name="q">phys_country:"United States"</str>
        <str name="start">0</str>
        <str name="rows">20</str>
        <str name="fl">duns_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=20&start=0&facet.query=attribute_id:1003278&facet.query=attribute_id:1003928&sort=merchant_count+desc&facet=true&facet.field=min_price_cad_rounded_to_tens&facet.field=manufacturer_id&facet.field=merchant_id&facet.field=has_coupon&facet.field=has_bundle&facet.field=has_sale_price&facet.field=has_promo&fq=product_is_active:true&fq=product_status_code:complete&fq=category_id:"1001143"&qt=sti_dismax_en&f.min_price_cad_rounded_to_tens.facet.limit=-1
> >
> > all you have to do is put each key=val pair as a <str
> name="key">val</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="rows">20</str>
> >           <str name="start">0</str>
> >           <str name="facet.query">attribute_id:1003278</str>
> >           <str name="facet.query">attribute_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.
>
>

Reply via email to