Hi jack,

Thanks for replying, i am new to solr please guide me on this. I have many
such columns in my schema
so copy field will create lot of duplicate fields beside i do not need any
search on original field.

My usecase is i do not want any search on tenant_pool field thats why i
declared it as stored field not indexed.
I just need to get unique values in this field. Please show some direction.


On Tue, Jan 13, 2015 at 6:16 PM, Jack Krupansky <jack.krupan...@gmail.com>
wrote:

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



-- 
Cheers,

Naresh Yadav
+919960523401
http://nareshyadav.blogspot.com/
SSE, MetrixLine Inc.

Reply via email to