1> similar queries work for me just fine with the techproducts exapmle
2> that's not what I wanted, you just reiterated the _input_.
I asked for the results when adding &debug=query to the string so you
can see the parsed query.
You should see something similar to:

"parsed_filter_queries":["file_type:jpg file_type:jpeg"]}

Best,
Erick

On Wed, Dec 27, 2017 at 3:59 PM, Nawab Zada Asad Iqbal <khi...@gmail.com> wrote:
> 1. input: fq={!q.op=OR}file_type:(jpg%20jpeg)  (fails, no results)
>
>    - fq: [
>       - "id:file_258470818866",
>       - "{!q.op=OR}file_type:(jpg jpeg)"
>       ],
>
>
>
>
> 2. input: fq={!q.op=OR}file_type:(jpg%20OR%20jpeg) (This works)
>
>
>    - fq: [
>       - "id:file_258470818866",
>       - "{!q.op=OR}file_type:(jpg OR jpeg)"
>       ],
>
>
> 3. input: &fq=file_type:(jpg%20OR%20jpeg) (This also works)
>
>
>    - fq: [
>       - "id:file_258470818866",
>       - "file_type:(jpg OR jpeg)"
>       ],
>
>
>
> PS: I am using 7.0.0 (including almost all the updates from 7.0.1).
>
> Regards
> Nawab
> On Wed, Dec 27, 2017 at 3:54 PM, Erick Erickson <erickerick...@gmail.com>
> wrote:
>
>> What does adding &debug=query show in the two cases?
>>
>> Best,
>> Erick
>>
>> On Wed, Dec 27, 2017 at 3:40 PM, Nawab Zada Asad Iqbal <khi...@gmail.com>
>> wrote:
>> > Hi,
>> >
>> > Are the following two queries equal:
>> >
>> > In my understanding, I can specify the arguments the operator once in the
>> > {} local parameter syntax (example 1) or I can interleave OR between
>> > different clauses  (example 2). But I am getting my result in the second
>> > case only. What am I doing wrong?
>> >
>> > This was working fine in Solr 4 but not in Solr 7.
>> >
>> >
>> > 1:
>> > .../solr/filesearch/select?fq=id:258470818866&fq={!q.op=OR}
>> file_type:(jpg%20jpeg)
>> > --> Returns nothing.
>> >
>> >
>> > 2:
>> > .../solr/filesearch/select?fq=id:258470818866&fq={!q.op=OR}
>> file_type:(jpg%20OR%20jpeg)
>> > --> This returns the required document.
>> >
>> >
>> >
>> > Thanks
>> > Nawab
>>

Reply via email to