# django-bosssearch

Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

# django-bosssearch

Search the web or a specific domain in your Django project using the Yahoo BOSS API.

## Installation

Using the BOSS API requires a key and a secret. Get them from http://developer.yahoo.com/search/boss/ and add them to your projects settings:

BOSS_API_KEY = ''
BOSS_API_SECRET = ''


Then include the views in your projects urlconf:

urlpatterns = patterns('',
url(r'^search/\$', include('djangobosssearch.bosssearch_urls')),
)


If you want the search to be limited to a certain domain add the following to the settings:

BOSS_SITE_SEARCH_DOMAIN = 'example.com'


## Templates

The templates provided are just an example. Pagination on the results page (bosssearch/results.html) is done using django-pagination.

## Configuration

Besides the previously mentioned configuration keys, the following options are also useful if you use the provided urlpatterns and view.

BOSS_SEARCH_MARKET The region (country) to search in (default: 'en-us').

BOSS_RESULTS_PER_PAGE The number of results per page (default: 50).

# Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.