Hi,
I've discovered ferret and aaf this evening, I've just done some tests
and it seems perfect for my needs.
I'm indexing text data (title, description, etc) and also ethernet
hardware addresses (MAC).
Sorry if that sounds trivial but I can't find the way to correctly
index and achieve correct searches on MAC addresses.
If I do something like this:
index = Index::Index.new()
index << {:hwaddr => '00:11:22:33:44:55'}
index.search_each('"11:11"') do |id, score|
puts "Document #{id} found with a score of #{score}"
end
it matches.
if i search '11\:11' it also matches.
if the search is '00*11*' or '*11*22*' it does not matches
if hwaddr = '00z11z22z33z44z55' it works as expected.
If tried with untokenized index but that didn't help.
Should I escape : before indexing ? (that's not convenient)
Should I use another Analyzer ?
Any help would be appreciated.
Thanks in advance.
--
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk