Hello, I'm indexing a collection of terms representing asset names(computer models, printers, peripherals and so on). However, the entire collection lies in just 1(one) document. I need to match terms given in an outer file against the ones stored in the index, returning the best matches and their scores(similarity values).
I did like this: - for each term to find, build a FuzzyQuery object like this: fq = new FuzzyQuery(new Term("contents", queryString), minSimilarity) - as the FuzzyQuery.getEnum() method is protected - and my program is in another package, I added a getEnumWrapper() method to the FuzzyQuery class. It does the same as getEnum() - returns a FilteredTermEnum collection but it's public. - finally, the program iterates through all the items returned by getEnumWrapper() displaying the best matches. My question is: can I have access outside of the OAL(org.apache.lucene) package to the TermEnum collection WITHOUT adding getEnumWrapper() ? Bogdan -- View this message in context: http://www.nabble.com/Access-to-the-TermEnum-collection-outside-OAL-package-tp16416884p16416884.html Sent from the Lucene - Java Developer mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]