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 Siddhant Goel <si...@gmail.com> on 2010/01/13 11:38:53 UTC

Queries of type field:value not functioning

Hi all,

Any query I make which is of type field:value does not return any documents.
Same is the case for the *:* query. The *:* query doesn't return any result
either. The index size is close to 1GB now, so it should be returning some
documents. The rest of the queries are functioning properly. Any help?

Thanks,

-- 
- Siddhant

Re: Queries of type field:value not functioning

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Siddhant,

Check the enhanced dismax patch in JIRA if you need fielded queries to work with dismax.

Otis
--
Sematext -- http://sematext.com/ -- Solr - Lucene - Nutch



----- Original Message ----
> From: Siddhant Goel <si...@gmail.com>
> To: solr-user@lucene.apache.org
> Sent: Wed, January 13, 2010 11:09:12 PM
> Subject: Re: Queries of type field:value not functioning
> 
> Hi,
> 
> Thanks for the responses.
> q.alt did the job. Turns out that the dismax query parser was at fault, and
> wasn't able to handle queries of the type *:*. Putting the query in q.alt,
> or adding a defType=lucene (as pointed out to me on the irc channel) worked.
> 
> Thanks,
> 
> 
> -- 
> - Siddhant


Re: Queries of type field:value not functioning

Posted by Siddhant Goel <si...@gmail.com>.
Hi,

Thanks for the responses.
q.alt did the job. Turns out that the dismax query parser was at fault, and
wasn't able to handle queries of the type *:*. Putting the query in q.alt,
or adding a defType=lucene (as pointed out to me on the irc channel) worked.

Thanks,


-- 
- Siddhant

Re: Queries of type field:value not functioning

Posted by Otis Gospodnetic <ot...@yahoo.com>.
Hi,

Pointers:
* What happens when you don't use a field name?
* What are your logs showing?
* What is &debugQuery=on showing?
* What is the Analysis page for some of the problematic queries showing?

Otis
--
Sematext -- http://sematext.com/ -- Solr - Lucene - Nutch




________________________________
From: Siddhant Goel <si...@gmail.com>
To: solr-user@lucene.apache.org
Sent: Wed, January 13, 2010 5:38:53 AM
Subject: Queries of type field:value not functioning

Hi all,

Any query I make which is of type field:value does not return any documents.
Same is the case for the *:* query. The *:* query doesn't return any result
either. The index size is close to 1GB now, so it should be returning some
documents. The rest of the queries are functioning properly. Any help?

Thanks,

-- 
- Siddhant

Re: Queries of type field:value not functioning

Posted by Chantal Ackermann <ch...@btelligent.de>.
try /solr/select?q.alt=*:*&qt=dismax
or /solr/select?q=some search term&qt=dismax

dismax should be configured in solrconfig.xml by default, but you have 
to adapt it to list the fields from your schema.xml

and for anything with known field:
/solr/select?q=field:value&qt=standard

Cheers,
Chantal



Siddhant Goel schrieb:
> Hi all,
> 
> Any query I make which is of type field:value does not return any documents.
> Same is the case for the *:* query. The *:* query doesn't return any result
> either. The index size is close to 1GB now, so it should be returning some
> documents. The rest of the queries are functioning properly. Any help?
> 
> Thanks,
> 
> --
> - Siddhant