Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

SearchApp is a CouchDB application that enables full text search and creates a simple search page for any CouchApp or CouchDB database hosted on Cloudant's hosted CouchDB (https://cloudant.com)

branch: master
README.md

SearchApp

SearchApp is a CouchDB application that enables full text search and creates a simple search page for any CouchApp or CouchDB database hosted on cloudant.com.

Requirements

cloudant hosted account (sign up at https://cloudant.com/sign-up/), couchapp

Install

cd SearchApp
cat > .couchapprc
{"env":{"default":{"db":"https://<user>:<pass>@<user>.cloudant.com/<db_or_couchapp_you_want_to_search>"}}}
^C

that last line means hit CTRL-C

To configure the display of the search results, modify the file:

_attachments/index.html

To configure the indexing of documents, modify the file:

_docs/lucene.json

following the insturctions on https://cloudant.com/for-developers/search/. By default, all json values are indexed as text using the Lucene Standard analyzer, and put into a single default field call "all".

The default search.html example works for Twitter data and is based on the style of https://github.com/doppler/TweetEater

couchapp push

Now view your app at

https://<user>.cloudant.com/<db_or_couchapp_you_want_to_search>/_design/searchapp/index.html

By default, searches are executed against the field "all".

Something went wrong with that request. Please try again.