Yonik:
Pasted the wrong URL as I was trying various things.

I did not work with OR
http://localhost:8983/solr/cars/select?fl=text,score&defType=edismax&q=suv&boost=query($boostq,1)&boostq=toyota%20OR%20honda&debug=true

See dumps below.

Many thanks.


INPUT
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">882</int>
<lst name="params">
<str name="boostq">toyota OR honda</str>
<str name="fl">text,score</str>
<str name="q">suv</str>
<str name="boost">query($boostq,1)</str>
<str name="debug">true</str>
<str name="defType">edismax</str>
</lst>
</lst>

DEBUG:
<lst name="debug">
<str name="rawquerystring">suv</str>
<str name="querystring">suv</str>
<str name="parsedquery">
BoostedQuery(boost(+(text:suv),query(text:toyota text:honda,def=1.0)))
</str>
<str name="parsedquery_toString">
boost(+(text:suv),query(text:toyota text:honda,def=1.0))
</str>
<lst name="explain">




On Sun, Apr 7, 2013 at 9:07 AM, Yonik Seeley <yo...@lucidworks.com> wrote:

> On Sun, Apr 7, 2013 at 8:39 AM, dc tech <dctech1...@gmail.com> wrote:
> > Yonik,
> > Many thanks.
> > The OR is still not working... here is the full URL
> > 1. Honda or Toyota individually work
> >
> http://localhost:8983/solr/cars/select?fl=text,score&defType=edismax&q=suv&boost=query($boostq,1)&boostq=honda
> >
> http://localhost:8983/solr/cars/select?fl=text,score&defType=edismax&q=suv&boost=query($boostq,1)&boostq=toyota
> > I can see the scores increasing on the matching models.
> >
> > 2. But the OR does not work
> >
> http://localhost:8983/solr/cars/select?fl=text,score&defType=edismax&q=suv&boost=query($boostq,1)&boostq=toyota%20or%20honda
>
> I still see a lowercase "or" in there that should be uppercase.
>
> You can also add debug=query to see exactly what query is generated.
>
> -Yonik
> http://lucidworks.com
>

Reply via email to