palantir / stash-codesearch-plugin

Provides global repository, commit, and file content search for Atlassian Stash instances
Apache License 2.0
62 stars 20 forks source link

Enhancement: Some way of indicating the last time a Repository was (full?)index. #4

Open ultimav opened 9 years ago

ultimav commented 9 years ago

When i am troubleshooting a developers search that should return results but is not, i think it would be helpful to had some kind of indicator on the Repo to should the last time it was fully indexed or or even added/updated. I know i can look in the logs, but i think it also helps give developers confidence in the results..

I may look at it for something to down the road, but i wanted to throw it out there.. I have did a lot of parsing/indexing with Lucene indexes but not much with elasticSearch.

terabyte commented 9 years ago

Good suggestion! It wouldn't be hard to add an column to the config table that tracks the last time a complete index was performed and surface that to the user.

ultimav commented 9 years ago

Would that be some where in src/main/java/com/palantir/stash/codesearch/updater/SearchUpdateJobImpl.java? Or am i looking in the wrong place to add it