Displaying 1 result from an estimated 1 matches for "query_obj".
2008 Mar 05
0
Index Searcher Causes GC Memory Error: "irb: double free or corruption"
...{doc_id}\n" << e.backtrace.join("\n")
return nil
end
alias :[] :doc
#############################
# Querying methods
def process_query(query)
query.is_a?(Ferret::Search::Query) ? query : SearchIndex::QUERY_PARSER.parse(query)
end
def search(query, options = {})
query_obj = process_query(query)
self.searcher.search( query_obj, options )
end
def search_each (query, options = {})
query_obj = process_query(query)
self.searcher.search_each( query_obj, options )
end
def explain (query, doc)
query_obj = process_query(query)
self.searcher.explain( query_obj...