On Sun, Mar 24, 2013 at 4:19 AM, John Nielsen <j...@mcb.dk> wrote: > Schema with DocValues attempt at solving problem: > http://pastebin.com/Ne23NnW4 > Config: http://pastebin.com/x1qykyXW >
This schema isn't using docvalues, due to a typo in your config. it should not be DocValues="true" but docValues="true". Are you not getting an error? Solr needs to throw exception if you provide invalid attributes to the field. Nothing is more frustrating than having a typo or something in your configuration and solr just ignores this, reports no error, and "doesnt work the way you want". I'll look into this (I already intend to add these checks to analysis factories for the same reason). Separately, if you really want the terms data and so on to remain on disk, it is not enough to "just enable docvalues" for the field. The default implementation uses the heap. So if you want that, you need to set docValuesFormat="Disk" on the fieldtype. This will keep the majority of the data on disk, and only some key datastructures in heap memory. This might have significant performance impact depending upon what you are doing so you need to test that.