Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon CloudSearch: Is it possible to write a query that returns... everything?

I've put together a simple search form, with a search box and a couple of filters as dropdowns. Everything works as you'd expect, except that I want the behavior to be that when the user leaves everything completely blank (no search query, no filters) they simply get everything returned (paginated of course).

I'm currently achieving this by detecting this special case and querying my local database, but there are some advantages to doing it 100% with CloudSearch. Is there a way to build a request that simply returns a paginated list of every document? In other words, is there a CloudSearch equivalent to "SELECT id FROM x LIMIT n?"

Thanks in advance! Joe

like image 772
Joe Avatar asked Dec 30 '13 22:12

Joe


People also ask

Is Amazon CloudSearch deprecated?

Yes. Existing search domains created with the 2011-02-01 version of Amazon CloudSearch will continue to work.

What is CloudSearch used for?

Amazon CloudSearch is a managed service in the AWS Cloud that makes it simple and cost-effective to set up, manage, and scale a search solution for your website or application. Amazon CloudSearch supports 34 languages and popular search features such as highlighting, autocomplete, and geospatial search.

Does Amazon use SOLR?

Bitnami has partnered with AWS to make Apache Solr available in the Amazon Web Services.

What does Amazon Cloud Search enable you to do?

The Amazon CloudSearch console enables you to easily create, configure, and monitor your search domains, upload documents, and run test searches. Using the console is the easiest way to get started with Amazon CloudSearch and provides a central command center for ongoing management of your search domains.


1 Answers

See the Search API. ?q=matchall&q.parser=structured will match all the documents.

like image 148
user2602740 Avatar answered Sep 17 '22 08:09

user2602740