*Schema :*
<field name="tenant_pool" type="text" stored="true"/>

*Code :*
SolrQuery q = new SolrQuery().setQuery("*:*");
q.set(GroupParams.GROUP, true);
q.set(GroupParams.GROUP_FIELD, "tenant_pool");

*Data :*
"tenant_pool" : "Baroda Farms"
"tenant_pool" : "Ketty Farms"

*Output coming :*
groupValue=Farms, docs=2

*Expected Output :*
groupValue=Baroda Farms, docs=1
groupValue=Ketty Farms, docs=1

Please guide me how i can tell solr not to tokenize stored field to decide
unique groups..

I want unique groups as exact value of field not the tokens which solr is
doing
currently.

Thanks
Naresh

Reply via email to