Created
November 18, 2014 16:54
-
-
Save Jeiwan/e87118b17527cd066417 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ThinkingSphinx::Index.define :question, with: :active_record, delta: true do | |
#fields | |
indexes title, sortable: true | |
indexes body | |
indexes user.username, as: :author, sortable: true | |
#attributes | |
has created_at, updated_at, votes_sum | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment