I'm a little back logged on mail or i would have replied to your word
count email earlier...

one thing to keep in mind is that the index doesn't deal in "words" it
deals in "terms" -- the differnece being a term has "field" and a "token"
-- what was discussed in the mail archives leading up to the creation of
SOLR-106, SOLR-116 and SOLR-117 is that you can get the lists of
frequently used "terms" per field doing a faceted search, and if you want
to iterate through a lot the terms for a field you can now do so
(SOLR-106) ... or you can restrict the terms not just by a field name, but
also by a prefix (SOLR-117).

what you can't do is get a list of the ocunts of all the times a *word*
appears in your index -- to accomplish this you would need to have a
single field that you copyField all of your other fields into, and then
get the facet counts on it.

note that do do a faceted search, you have to search on soemthing ... if
you want the counts across your entire index, you can search on foo:[* TO
*] where "foo" is the name of whatever field in your schema is your
uniqueKey field.


-Hoss

Reply via email to