Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6f712321
Commit
6f712321
authored
Jan 20, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Elastic 5 update. Update mapping to be compatible with ES 5
parent
f74ea853
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
22 deletions
+22
-22
app/models/concerns/elastic/issues_search.rb
app/models/concerns/elastic/issues_search.rb
+4
-4
app/models/concerns/elastic/merge_requests_search.rb
app/models/concerns/elastic/merge_requests_search.rb
+6
-6
app/models/concerns/elastic/milestones_search.rb
app/models/concerns/elastic/milestones_search.rb
+2
-2
app/models/concerns/elastic/notes_search.rb
app/models/concerns/elastic/notes_search.rb
+1
-1
app/models/concerns/elastic/projects_search.rb
app/models/concerns/elastic/projects_search.rb
+5
-5
app/models/concerns/elastic/snippets_search.rb
app/models/concerns/elastic/snippets_search.rb
+4
-4
No files found.
app/models/concerns/elastic/issues_search.rb
View file @
6f712321
...
...
@@ -7,14 +7,14 @@ module Elastic
mappings
_parent:
{
type:
'project'
}
do
indexes
:id
,
type: :integer
indexes
:iid
,
type: :integer
,
index: :not_analyzed
indexes
:title
,
type: :
string
,
indexes
:iid
,
type: :integer
indexes
:title
,
type: :
text
,
index_options:
'offsets'
indexes
:description
,
type: :
string
,
indexes
:description
,
type: :
text
,
index_options:
'offsets'
indexes
:created_at
,
type: :date
indexes
:updated_at
,
type: :date
indexes
:state
,
type: :
string
indexes
:state
,
type: :
text
indexes
:project_id
,
type: :integer
indexes
:author_id
,
type: :integer
indexes
:assignee_id
,
type: :integer
...
...
app/models/concerns/elastic/merge_requests_search.rb
View file @
6f712321
...
...
@@ -8,18 +8,18 @@ module Elastic
mappings
_parent:
{
type:
'project'
}
do
indexes
:id
,
type: :integer
indexes
:iid
,
type: :integer
indexes
:target_branch
,
type: :
string
,
indexes
:target_branch
,
type: :
text
,
index_options:
'offsets'
indexes
:source_branch
,
type: :
string
,
indexes
:source_branch
,
type: :
text
,
index_options:
'offsets'
indexes
:title
,
type: :
string
,
indexes
:title
,
type: :
text
,
index_options:
'offsets'
indexes
:description
,
type: :
string
,
indexes
:description
,
type: :
text
,
index_options:
'offsets'
indexes
:created_at
,
type: :date
indexes
:updated_at
,
type: :date
indexes
:state
,
type: :
string
indexes
:merge_status
,
type: :
string
indexes
:state
,
type: :
text
indexes
:merge_status
,
type: :
text
indexes
:source_project_id
,
type: :integer
indexes
:target_project_id
,
type: :integer
indexes
:author_id
,
type: :integer
...
...
app/models/concerns/elastic/milestones_search.rb
View file @
6f712321
...
...
@@ -7,9 +7,9 @@ module Elastic
mappings
_parent:
{
type:
'project'
}
do
indexes
:id
,
type: :integer
indexes
:title
,
type: :
string
,
indexes
:title
,
type: :
text
,
index_options:
'offsets'
indexes
:description
,
type: :
string
,
indexes
:description
,
type: :
text
,
index_options:
'offsets'
indexes
:project_id
,
type: :integer
indexes
:created_at
,
type: :date
...
...
app/models/concerns/elastic/notes_search.rb
View file @
6f712321
...
...
@@ -7,7 +7,7 @@ module Elastic
mappings
_parent:
{
type:
'project'
}
do
indexes
:id
,
type: :integer
indexes
:note
,
type: :
string
,
indexes
:note
,
type: :
text
,
index_options:
'offsets'
indexes
:project_id
,
type: :integer
indexes
:created_at
,
type: :date
...
...
app/models/concerns/elastic/projects_search.rb
View file @
6f712321
...
...
@@ -7,16 +7,16 @@ module Elastic
mappings
do
indexes
:id
,
type: :integer
indexes
:name
,
type: :
string
,
indexes
:name
,
type: :
text
,
index_options:
'offsets'
indexes
:path
,
type: :
string
,
indexes
:path
,
type: :
text
,
index_options:
'offsets'
indexes
:name_with_namespace
,
type: :
string
,
indexes
:name_with_namespace
,
type: :
text
,
index_options:
'offsets'
,
analyzer: :my_ngram_analyzer
indexes
:path_with_namespace
,
type: :
string
,
indexes
:path_with_namespace
,
type: :
text
,
index_options:
'offsets'
indexes
:description
,
type: :
string
,
indexes
:description
,
type: :
text
,
index_options:
'offsets'
indexes
:namespace_id
,
type: :integer
indexes
:created_at
,
type: :date
...
...
app/models/concerns/elastic/snippets_search.rb
View file @
6f712321
...
...
@@ -7,15 +7,15 @@ module Elastic
mappings
do
indexes
:id
,
type: :integer
indexes
:title
,
type: :
string
,
indexes
:title
,
type: :
text
,
index_options:
'offsets'
indexes
:file_name
,
type: :
string
,
indexes
:file_name
,
type: :
text
,
index_options:
'offsets'
indexes
:content
,
type: :
string
,
indexes
:content
,
type: :
text
,
index_options:
'offsets'
indexes
:created_at
,
type: :date
indexes
:updated_at
,
type: :date
indexes
:state
,
type: :
string
indexes
:state
,
type: :
text
indexes
:project_id
,
type: :integer
indexes
:author_id
,
type: :integer
indexes
:visibility_level
,
type: :integer
...
...
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