-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge: ea08dc9 fd4ec56 Author: Jörn Friedrich Dreyer <[email protected]> Date: Mon May 2 19:25:07 2022 +0200 Merge pull request #3635 from aduffeck/search Add initial version of the search extension
- Loading branch information
Showing
16 changed files
with
269 additions
and
12 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Autogenerated | ||
tracing: | ||
enabled: false | ||
type: "" | ||
endpoint: "" | ||
collector: "" | ||
log: | ||
level: "" | ||
pretty: false | ||
color: false | ||
file: "" | ||
debug: | ||
addr: 127.0.0.1:9224 | ||
token: "" | ||
pprof: false | ||
zpages: false | ||
grpc: | ||
addr: 127.0.0.1:9220 | ||
data_path: ~/.ocis/search | ||
reva: | ||
address: 127.0.0.1:9142 | ||
events: | ||
events_endpoint: 127.0.0.1:9233 | ||
events_cluster: ocis-cluster | ||
events_group: search | ||
machine_auth_api_key: change-me-please |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Environment Variables | ||
|
||
| Name | Type | Default Value | Description | | ||
|------|------|---------------|-------------| | ||
| SEARCH_DEBUG_ADDR | string | 127.0.0.1:9224 | | | ||
| SEARCH_DEBUG_TOKEN | string | | | | ||
| SEARCH_DEBUG_PPROF | bool | false | | | ||
| SEARCH_DEBUG_ZPAGES | bool | false | | | ||
| ACCOUNTS_GRPC_ADDR | string | 127.0.0.1:9220 | The address of the grpc service.| | ||
| SEARCH_DATA_PATH | string | ~/.ocis/search | | | ||
| REVA_GATEWAY | string | 127.0.0.1:9142 | | | ||
| SEARCH_EVENTS_ENDPOINT | string | 127.0.0.1:9233 | the address of the streaming service| | ||
| SEARCH_EVENTS_CLUSTER | string | ocis-cluster | the clusterID of the streaming service. Mandatory when using nats| | ||
| SEARCH_EVENTS_GROUP | string | search | the customergroup of the service. One group will only get one copy of an event| | ||
| OCIS_MACHINE_AUTH_API_KEY;SEARCH_MACHINE_AUTH_API_KEY | string | change-me-please | | |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,4 +44,5 @@ web: | |
- external | ||
- user-management | ||
external_apps: [] | ||
options: {} | ||
options: | ||
hideSearchBar: false |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
--- | ||
title: "ocis.messages.search.v0" | ||
url: /grpc_apis/ocis_messages_search_v0 | ||
date: 2022-05-02T17:29:10Z | ||
weight: 50 | ||
geekdocRepo: https://github.com/owncloud/ocis | ||
--- | ||
|
||
{{< toc >}} | ||
|
||
|
||
|
||
## ocis/messages/search/v0/search.proto | ||
|
||
### Entity | ||
|
||
|
||
|
||
| Field | Type | Label | Description | | ||
| ----- | ---- | ----- | ----------- | | ||
| ref | [Reference](#reference) | | | | ||
| id | [ResourceID](#resourceid) | | | | ||
| name | [string](#string) | | | | ||
| etag | [string](#string) | | | | ||
| size | [uint64](#uint64) | | | | ||
| last_modified_time | [google.protobuf.Timestamp](#googleprotobuftimestamp) | | | | ||
| mime_type | [string](#string) | | | | ||
| permissions | [string](#string) | | | | ||
| type | [uint64](#uint64) | | | | ||
| deleted | [bool](#bool) | | | | ||
|
||
### Match | ||
|
||
|
||
|
||
| Field | Type | Label | Description | | ||
| ----- | ---- | ----- | ----------- | | ||
| entity | [Entity](#entity) | | the matched entity | | ||
| score | [float](#float) | | the match score | | ||
|
||
### Reference | ||
|
||
|
||
|
||
| Field | Type | Label | Description | | ||
| ----- | ---- | ----- | ----------- | | ||
| resource_id | [ResourceID](#resourceid) | | | | ||
| path | [string](#string) | | | | ||
|
||
### ResourceID | ||
|
||
|
||
|
||
| Field | Type | Label | Description | | ||
| ----- | ---- | ----- | ----------- | | ||
| storage_id | [string](#string) | | | | ||
| opaque_id | [string](#string) | | | | ||
|
||
|
||
## Scalar Value Types | ||
|
||
| .proto Type | Notes | C++ | Java | | ||
| ----------- | ----- | --- | ---- | | ||
| {{< div id="double" content="double" >}} | | double | double | | ||
| {{< div id="float" content="float" >}} | | float | float | | ||
| {{< div id="int32" content="int32" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | | ||
| {{< div id="int64" content="int64" >}} | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | | ||
| {{< div id="uint32" content="uint32" >}} | Uses variable-length encoding. | uint32 | int | | ||
| {{< div id="uint64" content="uint64" >}} | Uses variable-length encoding. | uint64 | long | | ||
| {{< div id="sint32" content="sint32" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | | ||
| {{< div id="sint64" content="sint64" >}} | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | | ||
| {{< div id="fixed32" content="fixed32" >}} | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | | ||
| {{< div id="fixed64" content="fixed64" >}} | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | | ||
| {{< div id="sfixed32" content="sfixed32" >}} | Always four bytes. | int32 | int | | ||
| {{< div id="sfixed64" content="sfixed64" >}} | Always eight bytes. | int64 | long | | ||
| {{< div id="bool" content="bool" >}} | | bool | boolean | | ||
| {{< div id="string" content="string" >}} | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | | ||
| {{< div id="bytes" content="bytes" >}} | May contain any arbitrary sequence of bytes. | string | ByteString | | ||
|
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
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
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
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
Oops, something went wrong.