So I have a ferret question. Suppose I have a bunch of documents I
indexed using ferret. For the sake of simplicity, all my documents have
basically 1 relevant field: “city”, which I set up during indexing.
So my question is: how do I get all the different values for ‘city’ ?
(without having to go through every single document).
There’s got to be something that can tell me all the different cities
used in all my document, like [‘NY’, ‘SF’, ‘LA’] (assuming all my
documents are either in LA, SF or NY)
Thanks for your help
ps: I know that I can already get the list of ‘field names’ using:
reader = Index::IndexReader.open()
but I can’t seem to find the missing link to get to the list of values
for a given term…