James Moger
2012-03-15 905d31391cb6a808605d9f5b58a8d30274c01e1a
refs
author James Moger <james.moger@gitblit.com>
Thursday, March 15, 2012 19:46 -0400
committer James Moger <james.moger@gitblit.com>
Thursday, March 15, 2012 19:46 -0400
commit905d31391cb6a808605d9f5b58a8d30274c01e1a
tree 16bf27ae1a60296ee0c2111e5b6b6abf12155c29 tree | zip | gz
parent d896e62505a429ee27237b3302d7c04e7ff8e6df view | diff
Use reflection to determine source repository index

Unfortunately Lucene's MultiReader class does not expose a public method
for determining which index reader a document comes from. There is a
private method which determines this information.

My new approach is to use reflection to call this private method and
determine the actual source index at runtime instead of storing the
repository name in the index. This gets me out of the "rename
repository" problem at the expense of a little runtime performance.
1 files modified
96 ■■■■■ changed files
src/com/gitblit/LuceneExecutor.java 96 ●●●●● diff | view | raw | blame | history