t: Re: AND Queries
When I send that query:
select?pf=url^10+title^8&fl=url,content,title&start=0&q=lang:en+AND+(cat+AND+dog+AND+pencil)&qf=content^5+url^8.0+title^6&wt=xml&debugQuery=on
It is debugged as:
+(+lang:en +(+(content:cat^5.0 | title:cat^6.0 | url:cat^8.0)
+(co
Because you specified the search fields to use with 'qf' which overrides
the default search field.
Franck Brisbart
Le lundi 29 juillet 2013 à 13:01 +0300, Furkan KAMACI a écrit :
> When I send that query:
>
> select?pf=url^10+title^8&fl=url,content,title&start=0&q=lang:en+AND+(cat+AND+dog+AND+p
When I send that query:
select?pf=url^10+title^8&fl=url,content,title&start=0&q=lang:en+AND+(cat+AND+dog+AND+pencil)&qf=content^5+url^8.0+title^6&wt=xml&debugQuery=on
It is debugged as:
+(+lang:en +(+(content:cat^5.0 | title:cat^6.0 | url:cat^8.0)
+(content:dog^5.0 | title:dog^6.0 | url:dog^8.0)
It's because when you don't specify any field, it's the default field
which is used.
So,
lang:en AND url:book AND pencil AND cat
is interpreted as :
ang:en AND url:book AND :pencil AND :cat
The default search field is defined in your schema.xml file
(defaultSearchField)
Franck Brisbart
Le l
Hello!
Try turning on debugQuery and see what I happening. From what I see
you are searching the en term in lang field, the book term in url
field and the pencil and cat terms in the default search field, but
from your second query I see that you would like to find the last two
terms in the url.