You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Walter Closenfleight <wa...@gmail.com> on 2011/06/28 22:07:03 UTC
Solr - search queries not returning results
Hello everyone,
I believe I am missing something very elementary. The following query
returns zero hits:
http://localhost:8983/solr/core0/select/?q=testabc
However, using solritas, it finds many results:
http://localhost:8983/solr/core0/itas?q=testabc
Do you have any idea what the issue may be?
Thanks in advance!
Re: Solr - search queries not returning results
Posted by Tomás Fernández Löbbe <to...@gmail.com>.
Hi Walter, probably solritas is using Dismax with a set of fields on the
"qf" parameter, while with your first query, you are just querying to the
default field.
On Tue, Jun 28, 2011 at 5:07 PM, Walter Closenfleight <
walter.p.closenfleight@gmail.com> wrote:
> Hello everyone,
>
> I believe I am missing something very elementary. The following query
> returns zero hits:
>
> http://localhost:8983/solr/core0/select/?q=testabc
>
> However, using solritas, it finds many results:
>
> http://localhost:8983/solr/core0/itas?q=testabc
>
> Do you have any idea what the issue may be?
>
> Thanks in advance!
>
Re: Solr - search queries not returning results
Posted by Walter Closenfleight <wa...@gmail.com>.
Thanks to both of you, I understand now and am now getting the expected
results.
Cheers!
On Wed, Jun 29, 2011 at 2:21 AM, Ahmet Arslan <io...@yahoo.com> wrote:
>
> > I believe I am missing something very elementary. The
> > following query
> > returns zero hits:
> >
> > http://localhost:8983/solr/core0/select/?q=testabc
>
> With this URL, you are hitting the RequestHandler defined as
> <requestHandler name="...." default="true" /> in your
> core0/conf/solrconfig.xml.
>
> > However, using solritas, it finds many results:
> >
> > http://localhost:8983/solr/core0/itas?q=testabc
>
> With this one, you are hitting the one registered as <requestHandler
> name="/itas">
>
> > Do you have any idea what the issue may be?
>
> Probably they have different default parameters configured.
>
> For example (e)dismax versus lucene query parser. lucene query parser
> searches testabc in your default field. dismax searches it in all of the
> fields defined in qf parameter.
>
> You can see the full parameter list by appending &echoParams=all to your
> search URL.
>
Re: Solr - search queries not returning results
Posted by Ahmet Arslan <io...@yahoo.com>.
> I believe I am missing something very elementary. The
> following query
> returns zero hits:
>
> http://localhost:8983/solr/core0/select/?q=testabc
With this URL, you are hitting the RequestHandler defined as <requestHandler name="...." default="true" /> in your core0/conf/solrconfig.xml.
> However, using solritas, it finds many results:
>
> http://localhost:8983/solr/core0/itas?q=testabc
With this one, you are hitting the one registered as <requestHandler name="/itas">
> Do you have any idea what the issue may be?
Probably they have different default parameters configured.
For example (e)dismax versus lucene query parser. lucene query parser searches testabc in your default field. dismax searches it in all of the fields defined in qf parameter.
You can see the full parameter list by appending &echoParams=all to your search URL.