lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bogdan71 <>
Subject Access to the TermEnum collection outside OAL package
Date Tue, 01 Apr 2008 08:23:36 GMT


  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)
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
     but it's public.
  - finally, the program iterates through all the items returned by
     displaying the best matches.

  My question is: can I have access outside of the OAL(org.apache.lucene)
to the TermEnum collection WITHOUT adding getEnumWrapper() ?

View this message in context:
Sent from the Lucene - Java Developer mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message