On 8/8/2011 4:34 PM, Jason Toy wrote: > Aelexei, thank you , that does seem to work. > > My sort results seem to be totally wrong though, I'm not sure if its because > of my sort function or something else. > > My query consists of: > sort=termfreq(all_lists_text,'indie+music')+desc&q=*:*&rows=100 > And I get back 4571232 hits.
That would be the total number of docs, I guess. Since your query is *:*, ie "find everything". > All the results don't have the phrase "indie music" anywhere in their data. You are only sorting on termfreq of indie music, you are not querying documents that contain it.