lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James liu" <liuping.ja...@gmail.com>
Subject Re: faceted query result
Date Sun, 17 Jun 2007 05:24:47 GMT
thks.

2007/6/17, Yonik Seeley <yonik@apache.org>:
>
> On 6/16/07, James liu <liuping.james@gmail.com> wrote:
> > i wanna show keyword: a and facet sid: 2
> >
> > my url:
> >
> http://localhost:8080/solr1/select?q=a+sid:2&start=0&rows=10&fl=*&wt=json
> >
> > but it show me count bigger than facetnum.
>
> '+' in a URL is like a space, so your query is the same as
> default_field:a OR sid:2
>   instead of
> default_field:a AND sid:2
>
> This should work:
> q=a+%2Bsid:2
> or preferably use a filter query
> q=a&fq=sid:2
>
> -Yonik
>



-- 
regards
jl

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