You're probably hitting different request handlers. From the fragment
you posted, the one that returns 8 is going to the /browse handler
(see solrconfig.xml). The admin UI goes to either /select or /query.
These are configured totally differently in terms of what fields are
searched etc.

Attach &debug=query to the URL and look in Velocity for the "debug"
info and you'll see that that parsed query is significantly different.

At least that's my guess.

Best,
Erick

On Mon, Feb 23, 2015 at 11:01 PM, arthur.hk.c...@gmail.com
<arthur.hk.c...@gmail.com> wrote:
> Hi,
>
> My Solr is 4.10.2
>
> When I use the web UI to run a simple query: "00001"+AND+"00002"
>
>
> 1) from the log, I can see the hits=8
> 7629109 [qtp1702388274-16] INFO  org.apache.solr.core.SolrCore  – [infocast] 
> webapp=/solr path=/clustering 
> params={q="00001"+AND+"00002"&wt=velocity&v.template=cluster_results} hits=8 
> status=0 QTime=21
>
> However, from the query page, it returns
> 2) 0 results found in 5 ms Page 0 of 0
>       0 results found. Page 0 of 0
>
>
> 3) If I use Admin page to ruyn the query, I can get 3 back
>
> {
>   "responseHeader": {
>     "status": 0,
>     "QTime": 5,
>     "params": {
>       "indent": "true",
>       "q": "\"00001\" AND \"00002\"",
>       "_": "1424761089223",
>       "wt": "json"
>     }
>   },
>   "response": {
>     "numFound": 3,
>     "start": 0,
>     "docs": [
>       {
>         "title": [ ….
>
> Very strange to me, please help!
>
> Regards

Reply via email to