rowser to be sure the problem is not in your code.
>>>
>>> http://192.168.0.1:8983/solr/collection1/select?q=*:*&group=true&group.field=tenant_pool
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://lucene.472066.n3.nabble.com/Solr-grouping-problem-need-help-tp4179149p4179464.html
>>> Sent from the Solr - User mailing list archive at Nabble.com.
>>>
>>
>>
>>
>>
>
>
>
>
Try direct query in browser to be sure the problem is not in your code.
>>
>> http://192.168.0.1:8983/solr/collection1/select?q=*:*&group=true&group.field=tenant_pool
>>
>>
>>
>> --
>> View this message in context:
>> http://lucene.472066.n3.
u expect it to work.
>
> Try direct query in browser to be sure the problem is not in your code.
>
> http://192.168.0.1:8983/solr/collection1/select?q=*:*&group=true&group.field=tenant_pool
>
>
>
> --
> View this message in context:
> http://lucene.47206
t:
http://lucene.472066.n3.nabble.com/Solr-grouping-problem-need-help-tp4179149p4179464.html
Sent from the Solr - User mailing list archive at Nabble.com.
Thanks much, now i got better idea on stored & indexed works internally in
solr.
>From this i tried and modified few things to understand grouping logic.
*Schema :*
*Code :*
SolrQuery q = new SolrQuery().setQuery("type:t1");
q.set(GroupParams.GROUP, true);
q.set(GroupParams.GROUP_FIELD, "tenant
bq: My question is for indexed=false, stored=true field..what is optimized way
to get unique values in such field.
There isn't any. To do this you'll have to read the doc from disk,
it'll be decompressed
along the way and then the field is read. Note that this happens
automatically when
you call d
Erick, my schema is same no change in that..
*Schema :*
my guess is i had not mentioned indexed true or falsemay be default
indexed is true
My question is for indexed=false, stored=true field..what is optimized way
to get unique values in such field..
On Tue, Jan 13, 2015 at 10:07 PM
Something is very wrong here. Have you perhaps been changing your
schema without re-indexing? And I recommend you completely remove
your data directory (the one with "index" and "tlog" subdirectories) after
you change your schema.xml file.
Because you're trying to group on a field that is _not_ in
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
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 wrote:
> *Schema :*
>
>
> *Code :*
> SolrQuery q = new SolrQuery().setQuery("*:*");
> q.set(GroupParams.GROUP, true);
> q.set(GroupParams.GROUP_FIELD, "ten
*Schema :*
*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=Baro
11 matches
Mail list logo