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 Bhawani Sharma <bh...@aol.com> on 2009/01/06 10:39:23 UTC
Default Solr Query
Hi All,
I want to fetch all the data from database.
so what my Solr query should be to get all documents from database?
like in mysql syntex is : SELECT * FROM table;
so what will be the syntex of this query in solr ?
Please reply ASAP.
Thanks in Advance.
Thanks:
Bhawani Sharma
--
View this message in context: http://www.nabble.com/Default-Solr-Query-tp21307309p21307309.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Default Solr Query
Posted by Sandeep_metacube <sa...@metacube.com>.
Hi Bhawani'
Ur Query should be *:*.Try this and have fun.....!
Bhawani Sharma wrote:
>
> Hi All,
>
> I want to fetch all the data from database.
> so what my Solr query should be to get all documents from database?
> like in mysql syntex is : SELECT * FROM table;
> so what will be the syntex of this query in solr ?
> Please reply ASAP.
> Thanks in Advance.
>
> Thanks:
> Bhawani Sharma
>
--
View this message in context: http://www.nabble.com/Default-Solr-Query-tp21307309p21308455.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Default Solr Query
Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Tue, Jan 6, 2009 at 3:09 PM, Bhawani Sharma <bh...@aol.com>wrote:
>
> Hi All,
>
> I want to fetch all the data from database.
> so what my Solr query should be to get all documents from database?
> like in mysql syntex is : SELECT * FROM table;
> so what will be the syntex of this query in solr ?
If you meant that you want all documents (i.e. without any queries or
filters), you should use q=*:*
If however you meant that you want *all* the documents inside Solr at once
(a full dump), it is probably a bad idea due to the performance issues.
>
> --
> View this message in context:
> http://www.nabble.com/Default-Solr-Query-tp21307309p21307309.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
--
Regards,
Shalin Shekhar Mangar.