I need to index a large number of Java properties and manifest files.
The data in the files is just key-value pairs.
I am thinking to use Lucene for this.
However, I do not need any real full-text search capabilities, as the data is quite structured. I only need to search for exact matches of property values, and the property key is always known. There is no need for tokenizing, and there is also no "default" field. The number of unique property keys could be quite large.
I should also add that I hope to be able to hold the index entirely in memory (in Lucene that would be a RAMDirectory).
So, is Lucene (as primarily a full-text search-engine) still a good match, or does something else fit better?
Update: A simple HashMap will not do, because I want to find the files that define property A as value B. It would need to be at least a nested HashMap to hold the triples ( Key , Value, Filename ).