Hi Mikhail,

thanks for your help.
After some more reading and testing I found the solution.
Just in case someone else needs it here are the results.

original query:
q=collection:ftmuenster+AND+-description:*&fl=*
--> numFound="1877"

frange query:
q=collection:ftmuenster&fq={!frange+l=0+u=0}exists(description)
--> numFound="1877"

original query:
q=collection:ftmuenster+AND+description:*&fl=*
--> numFound="4152"

frange query:
q=collection:ftmuenster&fq={!frange+l=1+u=1}exists(description)
--> numFound="4152"


Regards
Bernd

Am 16.03.2017 um 19:53 schrieb Mikhail Khludnev:
> Hello,
> A function query matches all docs. Use {!frange} if you want to select docs
> with some particular values.
> 
> On Thu, Mar 16, 2017 at 6:08 PM, Bernd Fehling <
> bernd.fehl...@uni-bielefeld.de> wrote:
> 
>> I'm testing some function queries and have some questions.
>>
>> original queries:
>> 1. q=collection:ftmuenster&fl=*
>> --> numFound="6029"
>>
>> 2. q=collection:ftmuenster+AND+-description:*&fl=*
>> --> numFound="1877"
>>
>> 3. q=collection:ftmuenster+AND+description:*&fl=*
>> --> numFound="4152"
>>
>> This looks good.
>>
>> But now with function query:
>>
>> q={!func}exists(description)&fq=collection:ftmuenster&fl=*
>> --> numFound="6029"
>>
>> I'm was hoping to get numFound=4152, why not?
>>
>> I also tried:
>> q={!func}exists(description)&fq=collection:ftmuenster&q.op=AND&fl=*
>> --> numFound="6029"
>>
>> What are the function queries equivalent to queries 2. and 3. above?
>>
>> Regards
>> Bernd
>>
>>

Reply via email to