Friday, November 9, 2012

SOLR adding custom attributes in SRCHATTRPROP !


If you need to filter SOLR queries based on a dynamic attribute. In the sample java code below the value for the custom attribute _custom.ItemType is retrieved from SRCHATTRPROP table. The code uses out of the box getIndexColumnNameByType on SolrSearchConfigurationRegistry object to retrieve the custom attribute value.

1 comment:

  1. Places you need to visit in 2020? Upgrade your travel photos with these lightweigh camera that pack a punch. Enjoy the world ‘s best reviews to travel with Things to do.

    ReplyDelete