Hey .. what you should do is to write your own analyzer.. that splits the HWAddress at the : and therefore stores each part of the MAC address as a separate token.. this can be done using the RegExpAnalyzer .. maybe like that:
RegExpAnalyzer.new(/[^:]+/, true) [1] I would then search via SpanNearQueries [2] to search for certain MAC parts in a specific order.. like that query = SpanNearQuery.new(:slop => 5, :in_order => true) query << SpanTermQuery.new(:hwaddr, "11") query << SpanTermQuery.new(:fhwaddr, "22") this should find all items with 11<something>22 Hope that helps .. Ben [1] http://ferret.davebalmain.com/api/classes/Ferret/Analysis/ RegExpAnalyzer.html [2] http://ferret.davebalmain.com/api/classes/Ferret/Search/Spans/ SpanNearQuery.html _______________________________________________ Ferret-talk mailing list [email protected] http://rubyforge.org/mailman/listinfo/ferret-talk

