We plan to use lucene as FTI-service. Amongst other things, we want to build a tag-index, based on a tag-attribute of our documents that simply contains space-delimited tags.
Now for suggesting tag-completions, it would be great if there was a way to access all unique keywords of a given index. Lucene must be able to do that internally, as it uses that to complete like-queries to rewrite them using OR.
Any suggestions?