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