Added support for neighborhood weights during searches.
Fixed some issues with neighborhood weights.