summaryrefslogtreecommitdiff
blob: cc3596ad1584cc5c14c40fb423a0144a08c6a2f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ThinkingSphinx::Index.define :bug, :with => :active_record do
  indexes whiteboard

  has revision_id
end

ThinkingSphinx::Index.define :cve_comment, :with => :active_record do
  indexes comment
  has user_id, cve_id
end

ThinkingSphinx::Index.define :cve, :with => :active_record do
  indexes cve_id, :sortable => true
  indexes state,  :sortable => true
  indexes summary

  has published_at, last_changed_at
end

ThinkingSphinx::Index.define :glsa, :with => :active_record do
  indexes glsa_id, :sortable => true
end

ThinkingSphinx::Index.define :revision, :with => :active_record do
  indexes title
  indexes synopsis
  indexes description
  indexes impact
  indexes workaround
  indexes resolution
  indexes is_release

  has glsa_id, revid, release_revision
end