That's your job. The easiest way is to do a copyField to a "string" field.

-- Jack Krupansky

On Tue, Jan 13, 2015 at 7:33 AM, Naresh Yadav <nyadav....@gmail.com> wrote:

> *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