Hi Niraj,

Should I expect it to check the following bigram phrases?

Yes it will check.

ex- documents & query is given below

http://localhost:8983/solr/myfile/select?wt=xml&fl=name&indent=on&q=*System
AND Memory AND (OEM OR Retail)*&rows=50&wt=json&*qf=_text_&pf2=_text_*
&debug=true&defType=edismax

<result name="response" numFound="3" start="0">
<doc>
<arr name="name">
<str>
A-DATA V-Series 1GB 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) System
Memory - OEM
</str>
</arr>
</doc>
<doc>
<arr name="name">
<str>
CORSAIR ValueSelect 1GB 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200)
System Memory - Retail
</str>
</arr>
</doc>
<doc>
<arr name="name">
<str>
CORSAIR XMS 2GB (2 x 1GB) 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200)
Dual Channel Kit System Memory - Retail
</str>
</arr>
</doc>
</result>


*Below is the parsed query*

<str name="parsedquery_toString">
+(+(_text_:system) +(_text_:memory) +((_text_:oem) (_text_:retail)))
((_text_:"system memory") (_text_:"memory oem") (_text_:"oem retail"))
</str>

In case if you are in such scenarios where you need to knwo what query will
form, then you could us the debug=true to know more about the query &
timings of different component.

*And when the ps2 is not specified default ps will be applied on pf2.*

I hope this helps.

With Regards
Aman Tandon

On Mon, Jul 31, 2017 at 4:18 AM, Niraj Aswani <nirajasw...@gmail.com> wrote:

> Hi,
>
> I am using solr 4.4 and bit confused about how does the edismax parser
> treat the pf2 parameter when both the AND and OR operators are used in the
> query with ps2=0
>
> For example:
>
> pf2=title^100
> q=HDMI AND Video AND (Wire OR Cable)
>
> Should I expect it to check the following bigram phrases?
>
> hdmi video
> video wire
> video cable
>
> Regards
> Niraj
>

Reply via email to