2011-03-13 23:10:15 +00:00
|
|
|
/*
|
2013-11-28 22:11:52 +00:00
|
|
|
Copyright 2011 The Camlistore Authors.
|
2011-03-13 23:10:15 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
|
2013-07-08 04:12:18 +00:00
|
|
|
// Package search describes and answers Camlistore search queries.
|
2013-11-28 22:11:52 +00:00
|
|
|
//
|
|
|
|
// Many of the search methods or functions provide results that are
|
|
|
|
// ordered by modification time, or at least depend on modification
|
|
|
|
// times. In that context, (un)deletions (of permanodes, or attributes)
|
|
|
|
// are not considered modifications and therefore the time at which they
|
|
|
|
// occured does not affect the result.
|
2016-03-14 01:59:26 +00:00
|
|
|
package search // import "camlistore.org/pkg/search"
|
2014-07-21 20:20:17 +00:00
|
|
|
|
|
|
|
type QueryDescriber interface {
|
|
|
|
Query(*SearchQuery) (*SearchResult, error)
|
|
|
|
Describe(*DescribeRequest) (*DescribeResponse, error)
|
|
|
|
}
|