RE: Re: Re: Unique key field

2022-06-07 Thread Poorna Murali
Thanks Vincenzo! I will check the schema too. On 2022/06/07 16:08:21 Vincenzo D'Amore wrote: > The easiest thing to do is double check your schema.xml and see how the > field type "string" is defined. > > On Tue, Jun 7, 2022 at 3:44 PM Poorna Murali wrote: > > > If docValues are enabled by defaul

RE: Re: Re: Re: Unique key field

2022-06-07 Thread Poorna Murali
Thanks Thomas! I will check the same. On 2022/06/07 19:01:37 Thomas Corthals wrote: > You can ask Luke: > http://localhost:8983/solr/techproducts/admin/luke?show=all&fl=id > > On Solr 8.11.1, I get this snippet as part of the output: > > "fields":{ > "id":{ > "type":"string", > "

Re: Re: Re: Unique key field

2022-06-07 Thread Thomas Corthals
You can ask Luke: http://localhost:8983/solr/techproducts/admin/luke?show=all&fl=id On Solr 8.11.1, I get this snippet as part of the output: "fields":{ "id":{ "type":"string", "schema":"I-S-U-OF-l", If it had docValues="true" in the schema, the fourth flag would be a D

RE: Re: Re: Unique key field

2022-06-07 Thread Poorna Murali
Thanks Gus! The only way to check if docValues is enabled for a field is by ensuring that the field cache is not getting populated while we do a sort on that field. Please confirm if my understanding is correct. On 2022/06/07 15:27:23 Gus Heck wrote: > Sorry, was thinking this was about doc values

Re: Re: Unique key field

2022-06-07 Thread Vincenzo D'Amore
The easiest thing to do is double check your schema.xml and see how the field type "string" is defined. On Tue, Jun 7, 2022 at 3:44 PM Poorna Murali wrote: > If docValues are enabled by default for string field, then the sort queries > on the field will not occupy field cache and would rather re

Re: Re: Unique key field

2022-06-07 Thread Gus Heck
Sorry, was thinking this was about doc values as stored... but re-reading that might not be the case (a mail client adding RE: is messing up the threading here)... Another common problem is if you are using old schemas from old versions, some of the "by default" stuff is based on the default schema

Re: Re: Unique key field

2022-06-07 Thread Gus Heck
check your schema version attribute https://github.com/apache/solr/blob/main/solr/server/solr/configsets/_default/conf/managed-schema.xml#L41 On Tue, Jun 7, 2022 at 9:43 AM Poorna Murali wrote: > If docValues are enabled by default for string field, then the sort queries > on the field will not

RE: Re: Unique key field

2022-06-07 Thread Poorna Murali
If docValues are enabled by default for string field, then the sort queries on the field will not occupy field cache and would rather rely on docValues. But in our case, it is filling up the field cache and that is the reason we are planning to enable docValues for that field. Is this functionalit