This file contains 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
# Sample code using Sunspot 1.2.1 to retry a search when partialResults=true | |
# | |
# I hope this code will be somewhat deprecated in Sunspot 1.2.2, since we have to | |
# use instance_eval to access the otherwise inaccessible @solr_response instance variable. | |
# | |
class Post | |
# ... |
This file contains 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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"io" | |
"net" | |
"net/http" | |
"os" |