lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Furkan KAMACI <furkankam...@gmail.com>
Subject Re: AND Queries
Date Mon, 29 Jul 2013 10:01:49 GMT
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) +(content:pencil^5.0 |
title:pencil^6.0 | url:pencil^8.0))) (url:"cat dog pencil"^10.0)
(title:"(cat dog pencil)"^8.0)

Why default field is not applied at this situation?



2013/7/29 fbrisbart <fbrisbart@bestofmedia.com>

> 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 <default_field>:pencil AND <default_field>:cat
>
>
> The default search field is defined in your schema.xml file
> (defaultSearchField)
>
>
> Franck Brisbart
>
> Le lundi 29 juillet 2013 à 12:06 +0300, Furkan KAMACI a écrit :
> > I am searching for a keyword as like that:
> >
> > lang:en AND url:book pencil cat
> >
> > It returns me results however none of them includes both book, pencil and
> > cat keywords. How should I rewrite my query?
> >
> > I tried this:
> >
> > lang:en AND url:(book AND pencil AND cat)
> >
> > and looks like OK. However this not:
> >
> >
> > lang:en AND url:book AND pencil AND cat
> >
> > why?
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message