sunspot

https://github.com/sunspot/sunspot

JavaScript

Solr-powered search for Ruby objects

Sunspot::DSL::Scope#field_list

Build a restriction to return only fields of the type in the results.

Source | Google | Stack overflow

Edit

git clone [email protected]:sunspot/sunspot.git

cd sunspot

open sunspot/lib/sunspot/dsl/scope.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Sunspot--DSL--Scope-field_list-for-pr


# Commit to git

git add sunspot/lib/sunspot/dsl/scope.rbgit commit -m "better docs for Sunspot::DSL::Scope#field_list"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Sunspot--DSL--Scope-field_list-for-pr

hub pull-request


# Celebrate!