Hi everyone, thank you for the help last time.

A quick question, through rereading the ferret tutorial I realized
that by adding :key => :id to the index loading, I could access my
documents through index["11"], in addition to using the doc_id from
ferret through index[122]... This is great, and saves me a line or two
a lot of places in my code. However, is there a way of extracting the
doc_id from an object you find like this. Ie I want to know the doc_id
for document index["11"]. The reason for this is that I need the
doc_id for the highlight function (this won't work based only on a
document key will it?)

My code works as it is, but it's still annoying and I'd love to "clean
it up" just a bit.

Thank you very much
Stian
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to