mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user