> >> Heres my problem : > >> > >> field1 (text) - subject > >> q=david bowie changes > >> > >> Problem : If a record mentions david bowie a lot, > it beats out something more relevant (more unique matches) > ... > >> > >> A. (now appearing david bowie at the cineplex 7pm > david bowie goes on stage, then mr. bowie will sign > autographs) > >> B. song :david bowie - changes > >> > >> (A) ends up more relevant because of the frequency > or number of words in it.. not cool... > >> I want it so the number of words matching will > trump density/weight....
You need to disable to Term Frequency (tf) factor. I am not sure just omitTf is available but omitTermFreqAndPositions exists. If you mark your field as omitTermFreqAndPositions="true" you will obtain what you want. But this with phrase queries won't work.