这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ name = "bayard"
path = "src/main.rs"

[dependencies]
async-std = "1.3"
async-std = "1.4.0"
clap = "2.33.0"
crossbeam-channel = "0.3.9"
crossbeam-channel = "0.4.0"
ctrlc = { version = "3.1.3", features = ["termination"] }
env_logger = "0.7.0"
env_logger = "0.7.1"
futures = "0.1.29"
grpcio = { version = "0.4.5", features = [ "secure" ] }
grpcio = { version = "0.4.7", features = [ "secure" ] }
iron = "0.6.1"
job_scheduler = "1.1.0"
log = "0.4.8"
Expand All @@ -37,8 +37,8 @@ protobuf = "2.8.0"
raft = "0.4.3"
rand = "0.7.2"
router = "0.6.0"
serde = { version = "1.0.103", features = ["derive"] }
serde_json = "1.0.42"
serde = { version = "1.0.104", features = ["derive"] }
serde_json = "1.0.44"
stringreader = "0.1.1"
tantivy = "0.11.3"
urlencoded = "0.6.0"
9 changes: 3 additions & 6 deletions docs/cluster_mode.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,26 +158,23 @@ <h2><a class="header" href="#starting-in-cluster-mode-3-node-cluster" id="starti
--host=0.0.0.0 \
--port=5001 \
--data-directory=./data/1 \
--schema-file=./etc/schema.json \
--unique-key-field-name=id
--schema-file=./etc/schema.json
</code></pre>
<pre><code class="language-text">$ ./bin/bayard serve \
--id=2 \
--host=0.0.0.0 \
--port=5002 \
--peers=&quot;1=0.0.0.0:5001&quot; \
--data-directory=./data/2 \
--schema-file=./etc/schema.json \
--unique-key-field-name=id
--schema-file=./etc/schema.json
</code></pre>
<pre><code class="language-text">$ ./bin/bayard serve \
--id=3 \
--host=0.0.0.0 \
--port=5003 \
--peers=&quot;1=0.0.0.0:5001,2=0.0.0.0:5002&quot; \
--data-directory=./data/3 \
--schema-file=./etc/schema.json \
--unique-key-field-name=id
--schema-file=./etc/schema.json
</code></pre>
<p>The above commands run servers on the same host, so each server must listen on a different port. This would not be necessary if each server runs on a different host.
Recommend 3 or more odd number of servers in the cluster to avoid split-brain.<br />
Expand Down
39 changes: 24 additions & 15 deletions docs/getting_started.html
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ <h2><a class="header" href="#getting-schema" id="getting-schema">Getting schema<
<p>You'll see the result in JSON format. The result of the above command is:</p>
<pre><code class="language-json">[
{
&quot;name&quot;: &quot;id&quot;,
&quot;name&quot;: &quot;_id&quot;,
&quot;type&quot;: &quot;text&quot;,
&quot;options&quot;: {
&quot;indexing&quot;: {
Expand Down Expand Up @@ -251,21 +251,24 @@ <h2><a class="header" href="#getting-document" id="getting-document">Getting doc
</code></pre>
<p>You'll see the result in JSON format. The result of the above command is:</p>
<pre><code class="language-json">{
&quot;_id&quot;: [
&quot;1&quot;
],
&quot;category&quot;: [
&quot;/category/search/server&quot;,
&quot;/language/rust&quot;
],
&quot;description&quot;: [
&quot;Bayard is a full text search and indexing server, written in Rust, built on top of Tantivy.&quot;
],
&quot;id&quot;: [
&quot;1&quot;
],
&quot;name&quot;: [
&quot;Bayard&quot;
],
&quot;popularity&quot;: [
1132
1152
],
&quot;timestamp&quot;: [
&quot;2019-12-19T01:41:00+00:00&quot;
],
&quot;url&quot;: [
&quot;https://github.com/bayard-search/bayard&quot;
Expand All @@ -287,21 +290,24 @@ <h2><a class="header" href="#searching-documents" id="searching-documents">Searc
&quot;docs&quot;: [
{
&quot;fields&quot;: {
&quot;_id&quot;: [
&quot;8&quot;
],
&quot;category&quot;: [
&quot;/category/search/library&quot;,
&quot;/language/rust&quot;
],
&quot;description&quot;: [
&quot;Tantivy is a full-text search engine library inspired by Apache Lucene and written in Rust.&quot;
],
&quot;id&quot;: [
&quot;8&quot;
],
&quot;name&quot;: [
&quot;Tantivy&quot;
],
&quot;popularity&quot;: [
3100
3142
],
&quot;timestamp&quot;: [
&quot;2019-12-19T01:07:00+00:00&quot;
],
&quot;url&quot;: [
&quot;https://github.com/tantivy-search/tantivy&quot;
Expand All @@ -311,21 +317,24 @@ <h2><a class="header" href="#searching-documents" id="searching-documents">Searc
},
{
&quot;fields&quot;: {
&quot;_id&quot;: [
&quot;1&quot;
],
&quot;category&quot;: [
&quot;/category/search/server&quot;,
&quot;/language/rust&quot;
],
&quot;description&quot;: [
&quot;Bayard is a full text search and indexing server, written in Rust, built on top of Tantivy.&quot;
],
&quot;id&quot;: [
&quot;1&quot;
],
&quot;name&quot;: [
&quot;Bayard&quot;
],
&quot;popularity&quot;: [
1132
1152
],
&quot;timestamp&quot;: [
&quot;2019-12-19T01:41:00+00:00&quot;
],
&quot;url&quot;: [
&quot;https://github.com/bayard-search/bayard&quot;
Expand All @@ -336,9 +345,9 @@ <h2><a class="header" href="#searching-documents" id="searching-documents">Searc
],
&quot;facet&quot;: {
&quot;category&quot;: {
&quot;/category/search/server&quot;: 1,
&quot;/language/rust&quot;: 2,
&quot;/category/search/library&quot;: 1,
&quot;/language/rust&quot;: 2
&quot;/category/search/server&quot;: 1
}
}
}
Expand Down
48 changes: 27 additions & 21 deletions docs/print.html
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ <h2><a class="header" href="#getting-schema" id="getting-schema">Getting schema<
<p>You'll see the result in JSON format. The result of the above command is:</p>
<pre><code class="language-json">[
{
&quot;name&quot;: &quot;id&quot;,
&quot;name&quot;: &quot;_id&quot;,
&quot;type&quot;: &quot;text&quot;,
&quot;options&quot;: {
&quot;indexing&quot;: {
Expand Down Expand Up @@ -293,21 +293,24 @@ <h2><a class="header" href="#getting-document" id="getting-document">Getting doc
</code></pre>
<p>You'll see the result in JSON format. The result of the above command is:</p>
<pre><code class="language-json">{
&quot;_id&quot;: [
&quot;1&quot;
],
&quot;category&quot;: [
&quot;/category/search/server&quot;,
&quot;/language/rust&quot;
],
&quot;description&quot;: [
&quot;Bayard is a full text search and indexing server, written in Rust, built on top of Tantivy.&quot;
],
&quot;id&quot;: [
&quot;1&quot;
],
&quot;name&quot;: [
&quot;Bayard&quot;
],
&quot;popularity&quot;: [
1132
1152
],
&quot;timestamp&quot;: [
&quot;2019-12-19T01:41:00+00:00&quot;
],
&quot;url&quot;: [
&quot;https://github.com/bayard-search/bayard&quot;
Expand All @@ -329,21 +332,24 @@ <h2><a class="header" href="#searching-documents" id="searching-documents">Searc
&quot;docs&quot;: [
{
&quot;fields&quot;: {
&quot;_id&quot;: [
&quot;8&quot;
],
&quot;category&quot;: [
&quot;/category/search/library&quot;,
&quot;/language/rust&quot;
],
&quot;description&quot;: [
&quot;Tantivy is a full-text search engine library inspired by Apache Lucene and written in Rust.&quot;
],
&quot;id&quot;: [
&quot;8&quot;
],
&quot;name&quot;: [
&quot;Tantivy&quot;
],
&quot;popularity&quot;: [
3100
3142
],
&quot;timestamp&quot;: [
&quot;2019-12-19T01:07:00+00:00&quot;
],
&quot;url&quot;: [
&quot;https://github.com/tantivy-search/tantivy&quot;
Expand All @@ -353,21 +359,24 @@ <h2><a class="header" href="#searching-documents" id="searching-documents">Searc
},
{
&quot;fields&quot;: {
&quot;_id&quot;: [
&quot;1&quot;
],
&quot;category&quot;: [
&quot;/category/search/server&quot;,
&quot;/language/rust&quot;
],
&quot;description&quot;: [
&quot;Bayard is a full text search and indexing server, written in Rust, built on top of Tantivy.&quot;
],
&quot;id&quot;: [
&quot;1&quot;
],
&quot;name&quot;: [
&quot;Bayard&quot;
],
&quot;popularity&quot;: [
1132
1152
],
&quot;timestamp&quot;: [
&quot;2019-12-19T01:41:00+00:00&quot;
],
&quot;url&quot;: [
&quot;https://github.com/bayard-search/bayard&quot;
Expand All @@ -378,9 +387,9 @@ <h2><a class="header" href="#searching-documents" id="searching-documents">Searc
],
&quot;facet&quot;: {
&quot;category&quot;: {
&quot;/category/search/server&quot;: 1,
&quot;/language/rust&quot;: 2,
&quot;/category/search/library&quot;: 1,
&quot;/language/rust&quot;: 2
&quot;/category/search/server&quot;: 1
}
}
}
Expand Down Expand Up @@ -629,26 +638,23 @@ <h2><a class="header" href="#starting-in-cluster-mode-3-node-cluster" id="starti
--host=0.0.0.0 \
--port=5001 \
--data-directory=./data/1 \
--schema-file=./etc/schema.json \
--unique-key-field-name=id
--schema-file=./etc/schema.json
</code></pre>
<pre><code class="language-text">$ ./bin/bayard serve \
--id=2 \
--host=0.0.0.0 \
--port=5002 \
--peers=&quot;1=0.0.0.0:5001&quot; \
--data-directory=./data/2 \
--schema-file=./etc/schema.json \
--unique-key-field-name=id
--schema-file=./etc/schema.json
</code></pre>
<pre><code class="language-text">$ ./bin/bayard serve \
--id=3 \
--host=0.0.0.0 \
--port=5003 \
--peers=&quot;1=0.0.0.0:5001,2=0.0.0.0:5002&quot; \
--data-directory=./data/3 \
--schema-file=./etc/schema.json \
--unique-key-field-name=id
--schema-file=./etc/schema.json
</code></pre>
<p>The above commands run servers on the same host, so each server must listen on a different port. This would not be necessary if each server runs on a different host.
Recommend 3 or more odd number of servers in the cluster to avoid split-brain.<br />
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/searchindex.json

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions docs_src/cluster_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ $ ./bin/bayard serve \
--host=0.0.0.0 \
--port=5001 \
--data-directory=./data/1 \
--schema-file=./etc/schema.json \
--unique-key-field-name=id
--schema-file=./etc/schema.json
```

```text
Expand All @@ -25,8 +24,7 @@ $ ./bin/bayard serve \
--port=5002 \
--peers="1=0.0.0.0:5001" \
--data-directory=./data/2 \
--schema-file=./etc/schema.json \
--unique-key-field-name=id
--schema-file=./etc/schema.json
```

```text
Expand All @@ -36,8 +34,7 @@ $ ./bin/bayard serve \
--port=5003 \
--peers="1=0.0.0.0:5001,2=0.0.0.0:5002" \
--data-directory=./data/3 \
--schema-file=./etc/schema.json \
--unique-key-field-name=id
--schema-file=./etc/schema.json
```

The above commands run servers on the same host, so each server must listen on a different port. This would not be necessary if each server runs on a different host.
Expand Down
Loading