mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
Support elastic search for code search (#10273)
* Support elastic search for code search * Finished elastic search implementation and add some tests * Enable test on drone and added docs * Add new fields to elastic search * Fix bug * remove unused changes * Use indexer alias to keep the gitea indexer version * Improve codes * Some code improvements * The real indexer name changed to xxx.v1 Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
d257485bc0
commit
9bc69ff26e
14 changed files with 694 additions and 164 deletions
|
@ -49,15 +49,15 @@
|
|||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ui bottom attached table segment">
|
||||
<div class="ui bottom attached table segment">
|
||||
{{if $result.Language}}
|
||||
<i class="color-icon" style="background-color: {{$result.Color}}"></i>{{$result.Language}}
|
||||
<i class="color-icon" style="background-color: {{$result.Color}}"></i>{{$result.Language}}
|
||||
{{end}}
|
||||
|
||||
{{if not $result.UpdatedUnix.IsZero}}
|
||||
<span class="ui small grey text pull right">{{$.i18n.Tr "explore.code_last_indexed_at" (TimeSinceUnix $result.UpdatedUnix $.i18n.Lang) | Safe}} </span>
|
||||
{{end}}
|
||||
</div>
|
||||
{{if not $result.UpdatedUnix.IsZero}}
|
||||
<span class="ui small grey text pull right">{{$.i18n.Tr "explore.code_last_indexed_at" (TimeSinceUnix $result.UpdatedUnix $.i18n.Lang) | Safe}} </span>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue