Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only index the most recently pushed version of each jar. #57

  • Loading branch information...
commit 7885732371b62d4d9f0e39fddf2d2385558ec859 1 parent 0934c42
Alex Osborne authored
Showing with 9 additions and 8 deletions.
  1. +9 −8 tools/reindex.sql
17 tools/reindex.sql
View
@@ -11,12 +11,13 @@
begin;
delete from search;
insert into search (id, jar_name, group_name, content)
- select new.id, new.jar_name, new.group_name,
- new.jar_name || ' ' ||
- new.group_name || ' ' ||
- new.version || ' ' ||
- coalesce(new.authors, '') || ' ' ||
- new.user || ' ' ||
- coalesce(new.description, '')
- from jars new;
+ select id, jar_name, group_name,
+ jar_name || ' ' ||
+ group_name || ' ' ||
+ version || ' ' ||
+ coalesce(authors, '') || ' ' ||
+ user || ' ' ||
+ coalesce(description, '')
+ from jars
+ group by group_name, jar_name;
commit;
Please sign in to comment.
Something went wrong with that request. Please try again.