Skip to content

Commit

Permalink
refactor(plugin-elasticsearch): update mapping to include _sc content…
Browse files Browse the repository at this point in the history
… fields
  • Loading branch information
critocrito committed Nov 10, 2019
1 parent 1bfeda6 commit bfcb417
Showing 1 changed file with 109 additions and 0 deletions.
109 changes: 109 additions & 0 deletions packages/plugin-elasticsearch/lib/mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,115 @@ export default {
},
},

$sc_observation: {
type: "keyword",
ignore_above: 64,
},

$sc_author: {
type: "text",
fields: {
keyword: {
type: "keyword",
ignore_above: 256,
},
},
},

$sc_channel: {
type: "text",
fields: {
keyword: {
type: "keyword",
ignore_above: 256,
},
},
},

$sc_channel_href: {
type: "text",
fields: {
keyword: {
type: "keyword",
ignore_above: 256,
},
},
},

$sc_author_href: {
type: "text",
fields: {
keyword: {
type: "keyword",
ignore_above: 256,
},
},
},

$sc_title: {
type: "text",
analyzer: "english",
fields: {
exact: {
type: "text",
analyzer: "exact",
},
general: {
type: "text",
analyzer: "trigrams",
},
},
},

$sc_description: {
type: "text",
index_options: "offsets",
analyzer: "english",
fields: {
exact: {
type: "text",
analyzer: "exact",
},
general: {
type: "text",
index_options: "offsets",
analyzer: "trigrams",
},
},
},

$sc_body: {
type: "text",
index_options: "offsets",
analyzer: "english",
fields: {
exact: {
type: "text",
analyzer: "exact",
},
general: {
type: "text",
index_options: "offsets",
analyzer: "trigrams",
},
},
},

$sc_href: {
type: "text",
fields: {
keyword: {
type: "keyword",
ignore_above: 256,
},
},
},

$sc_language: {
type: "keyword",
ignore_above: 256,
},

$sc_downloads: {
type: "nested",
properties: {
Expand Down

0 comments on commit bfcb417

Please sign in to comment.