Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
Amazon-Selection-Data
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abel_cjy
Amazon-Selection-Data
Commits
d0d73a41
Commit
d0d73a41
authored
Jan 23, 2026
by
chenyuanjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流量选品-ES索引自定义分词器
parent
e830c5eb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletions
+31
-1
es_util.py
Pyspark_job/utils/es_util.py
+31
-1
No files found.
Pyspark_job/utils/es_util.py
View file @
d0d73a41
...
@@ -50,6 +50,35 @@ class EsUtils(object):
...
@@ -50,6 +50,35 @@ class EsUtils(object):
"number_of_shards"
:
"3"
,
"number_of_shards"
:
"3"
,
"number_of_replicas"
:
"1"
,
"number_of_replicas"
:
"1"
,
"analysis"
:
{
"analysis"
:
{
"filter"
:
{
"en_snowball"
:
{
"type"
:
"snowball"
,
"language"
:
"English"
},
"en_synonym"
:
{
"type"
:
"synonym_graph"
,
"synonyms_path"
:
"analysis/synonyms_en.txt"
,
"updateable"
:
"true"
}
},
"analyzer"
:
{
"en_analyzer"
:
{
"type"
:
"custom"
,
"tokenizer"
:
"standard"
,
"filter"
:
[
"lowercase"
,
"en_snowball"
]
},
"en_search_analyzer"
:
{
"tokenizer"
:
"standard"
,
"filter"
:
[
"lowercase"
,
"en_synonym"
,
"en_snowball"
]
}
},
"normalizer"
:
{
"normalizer"
:
{
"lowercase_normalizer"
:
{
"lowercase_normalizer"
:
{
"type"
:
"custom"
,
"type"
:
"custom"
,
...
@@ -71,7 +100,8 @@ class EsUtils(object):
...
@@ -71,7 +100,8 @@ class EsUtils(object):
},
},
"title"
:
{
"title"
:
{
"type"
:
"text"
,
"type"
:
"text"
,
"analyzer"
:
"standard"
,
"analyzer"
:
"en_analyzer"
,
"search_analyzer"
:
"en_search_analyzer"
,
"fields"
:
{
"fields"
:
{
"keyword"
:
{
"keyword"
:
{
"ignore_above"
:
32766
,
"ignore_above"
:
32766
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment