From 89388bb589990523d48905fc97c31d67310b0929 Mon Sep 17 00:00:00 2001 From: teolemon Date: Wed, 4 Sep 2024 07:09:16 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20openfood?= =?UTF-8?q?facts/search-a-licious@d6d17c357dd4b25abc40ad940fe8f057b7453aba?= =?UTF-8?q?=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sitemap.xml | 30 +++++++++--------- sitemap.xml.gz | Bin 374 -> 374 bytes .../searchalicious-config-schema.html | 2 +- .../searchalicious-settings-schema.html | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/sitemap.xml b/sitemap.xml index 251d7f16..048ae17b 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -2,77 +2,77 @@ https://openfoodfacts.github.io/search-a-licious/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/devs/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/reports/2024-06%20thoughts%20on%20scoring/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/explain-configuration/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/explain-query-language/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/how-to-install/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/how-to-update-index/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/how-to-use-scripts/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/ref-config/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/ref-openapi/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/ref-python/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/ref-settings/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/ref-web-components/ - 2024-09-03 + 2024-09-04 daily https://openfoodfacts.github.io/search-a-licious/users/tutorial/ - 2024-09-03 + 2024-09-04 daily \ No newline at end of file diff --git a/sitemap.xml.gz b/sitemap.xml.gz index c436408947065c141a1adb6969dd1fd6c7ecc1b1..1ae632aeec0a10d9616917131e988e6b4fc985ad 100644 GIT binary patch delta 323 zcmV-J0lfb90`>w2ABzYG_6FFI2Oj}dktZX6?#>6lJV7FdVOzb{O|^tzv3FtIR^MNr z>b=@^i#8`uz)J}Zw5=xQ_@VVY&ow!QgNamQ8a3HTK1e^Dx~Vr+w^+)!Cb(O-(R#Gq zH48}^j1UIIelV7)9vx44Upv$UCfP|D<(+kyNw@ks?Kz7fK49Oin$=o08`Z2OBsU+M45fhWXgT1}18lEtZ6O))2(Zjh| z4Frm8a*@kx=>)^0or^@jPBGCH$sR8*a*l-}(dD+qa^RL(?lbJAw2ABzYGK_AzV2Oj}9ktZX6Zclr^JVGLeVN*TVO|^tzv3FtIRNr5p z>b=@_i#8`uz)J}Zw5cZM_@VVY&ow!Qy@^y~8a3HTK1ko4x~bPyw^+)!B)D1E(R#Gq zB@0O!j1UIIelV7)9vx44S3A@MCfP|D<(+kyNw@kk?JV{aHlMGvQ9 zH4rGW$we-&r4tPIb}kbAGQ~t!BzrtA%Q+T`M3>tZ%Yj>FxzDhZlHW%R5DM&A&Mdbb V^A9`z^(DW$`vHfxhKz^{001hilX?IE diff --git a/users/ref-config/searchalicious-config-schema.html b/users/ref-config/searchalicious-config-schema.html index 2c38e4db..b25e3c9c 100644 --- a/users/ref-config/searchalicious-config-schema.html +++ b/users/ref-config/searchalicious-config-schema.html @@ -30,4 +30,4 @@

Preprocessor

Default: null

Type: string

The full qualified reference to the preprocessor
to use before data import.

This class must inherit app.indexing.BaseDocumentPreprocessor
and specialize the preprocess method.

This is used to adapt the data schema
or to add search-a-licious specific fields
for example.


Example:

app.openfoodfacts.DocumentPreprocessor
 

Result Processor

Default: null

Type: string

The full qualified reference to the elasticsearch result processor
to use after search query to Elasticsearch.

) This class must inherit app.postprocessing.BaseResultProcessor
and specialize the process_after

                This is can be used to add custom fields computed from index content.
 

Example:

app.openfoodfacts.ResultProcessor
-

Scripts

Default: null

Type: object

You can add scripts that can be used for sorting results.

Each key is a script name, with it's configuration.

Each additional property must conform to the following schema

Type: object

Scripts can be used to sort results of a search.

This use ElasticSearch internal capabilities

Type: enum (of string) Default: "expression"

The script language, as supported by Elasticsearch

Must be one of:

  • "expression"
  • "painless"

Source

Type: string

The source of the script

Params


Type: object

Params for the scripts. We need this to retrieve and validate parameters

Static Params


Type: object

Additional params for the scripts that can't be supplied by the API (constants)

Match Phrase Boost

Type: number Default: 2.0

How much we boost exact matches on individual fields

This only makes sense when using "best match" order.

Document Denylist

Type: array of string

list of documents IDs to ignore.

Use this to skip some documents at indexing time.

All items must be unique

No Additional Items

Each item of this array must be:

Redis Stream Name

Default: null

Name of the Redis stream to read from when listening to document updates.

If not provided, document updates won't be listened to for this index.

Default Index

Type: string

the default index to use when no index is specified in the query

\ No newline at end of file +

Scripts

Default: null

Type: object

You can add scripts that can be used for sorting results.

Each key is a script name, with it's configuration.

Each additional property must conform to the following schema

Type: object

Scripts can be used to sort results of a search.

This use ElasticSearch internal capabilities

Type: enum (of string) Default: "expression"

The script language, as supported by Elasticsearch

Must be one of:

  • "expression"
  • "painless"

Source

Type: string

The source of the script

Params


Type: object

Params for the scripts. We need this to retrieve and validate parameters

Static Params


Type: object

Additional params for the scripts that can't be supplied by the API (constants)

Match Phrase Boost

Type: number Default: 2.0

How much we boost exact matches on individual fields

This only makes sense when using "best match" order.

Document Denylist

Type: array of string

list of documents IDs to ignore.

Use this to skip some documents at indexing time.

All items must be unique

No Additional Items

Each item of this array must be:

Redis Stream Name

Default: null

Name of the Redis stream to read from when listening to document updates.

If not provided, document updates won't be listened to for this index.

Default Index

Type: string

the default index to use when no index is specified in the query

\ No newline at end of file diff --git a/users/ref-settings/searchalicious-settings-schema.html b/users/ref-settings/searchalicious-settings-schema.html index 6b8b7926..31a2547b 100644 --- a/users/ref-settings/searchalicious-settings-schema.html +++ b/users/ref-settings/searchalicious-settings-schema.html @@ -1,4 +1,4 @@ JSON schema for search-a-licious configuration file

JSON schema for search-a-licious configuration file

Type: object

Settings for Search-a-licious

The most important settings is config_path.

Those settings can be overridden through environment
by using the name in capital letters.
If you use docker compose, a good way to do that
is to modify those values in your .env file.

No Additional Properties

Config Path

Default: null

Path to the search-a-licious yaml configuration file.

See Explain configuration file for more information

Type: stringFormat: path
Type: null

Elasticsearch Url

Type: string Default: "http://localhost:9200"

URL to the ElasticSearch instance

Bare in mind this is from inside the container.

Redis Host

Type: string Default: "localhost"

Host for the Redis instance containing event stream

Bare in mind this is from inside the container.

Redis Port

Type: integer Default: 6379

Port for the redis host instance containing event stream

Redis Reader Timeout

Type: integer Default: 5

timeout in seconds to read redis event stream

Sentry Dns

Default: null

Sentry DNS to report incident, if None no incident is reported

Type: string
Type: null

Type: enum (of string) Default: "INFO"

Log level. Accepted logging levels

* NOTSET - means no los
 * DEBUG / INFO / WARNING / ERROR / CRITICAL
   - match standard Python logging levels
-

Must be one of:

  • "NOTSET"
  • "DEBUG"
  • "INFO"
  • "WARNING"
  • "ERROR"
  • "CRITICAL"

Taxonomy Cache Dir

Type: stringFormat: path Default: "data/taxonomies"

Directory where to store taxonomies before ingestion to ElasticSearch

User Agent

Type: string Default: "search-a-licious"

User-Agent used when fetching resources (taxonomies) or documents

\ No newline at end of file +

Must be one of:

  • "NOTSET"
  • "DEBUG"
  • "INFO"
  • "WARNING"
  • "ERROR"
  • "CRITICAL"

Taxonomy Cache Dir

Type: stringFormat: path Default: "data/taxonomies"

Directory where to store taxonomies before ingestion to ElasticSearch

User Agent

Type: string Default: "search-a-licious"

User-Agent used when fetching resources (taxonomies) or documents

\ No newline at end of file