layer index only if bodsearch = true

the attribute bodsearch should be used for the layer index in sphinx
only layers with bodsearch=true should be indexed.