2013-03-05 18:15:22 +00:00
|
|
|
/*
|
|
|
|
Copyright 2013 The Camlistore Authors.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
package search
|
|
|
|
|
|
|
|
func SetTestHookBug121(hook func()) {
|
|
|
|
testHookBug121 = hook
|
|
|
|
}
|
2013-12-04 02:24:02 +00:00
|
|
|
|
2013-12-12 07:34:07 +00:00
|
|
|
func ExportSetCandidateSourceHook(fn func(string)) { candSourceHook = fn }
|
2013-12-04 02:24:02 +00:00
|
|
|
|
2013-12-07 18:53:30 +00:00
|
|
|
func ExportBufferedConst() int { return buffered }
|
|
|
|
|
2013-12-04 02:24:02 +00:00
|
|
|
func (s *SearchQuery) ExportPlannedQuery() *SearchQuery {
|
2013-12-21 23:59:11 +00:00
|
|
|
return s.plannedQuery(nil)
|
2013-12-04 02:24:02 +00:00
|
|
|
}
|
2014-04-30 00:07:32 +00:00
|
|
|
|
|
|
|
var SortName = sortName
|