But in this case the fuzzy is performed on the overall index? The QueryFilter do his job after ? I'm not sure to understand the QueryFilter meaning?
But I test the QueryFilter also this way and the time to doing this search it's the same. The fuzzy is time consuming, this is normal, so I'm searching a solution to having less term to compare with fuzzy algorithm. I'm checking the FuzzyTermEnum class and searching how to redifine this to implement a FuzzySubsetTermEnum with constructor : FuzzySubsetTermEnum(IndexReader reader, Term term, Term subset) For retrieving only the term which also Erik Hatcher wrote : >> >>QueryFilter would do the trick if you instead used the >>query you handed >>to it to be the one to single out a "sub-category". It >>would limit the >>documents searched to just the sub-category, and the >>fuzzy search would >>be done using IndexSearcher.search, only handing it the >>filter then as >>well. >> >>Will this scheme work for you? >> >> Erik >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: >>[EMAIL PROTECTED] >>For additional commands, e-mail: >>[EMAIL PROTECTED] >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
