Re: Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-11 Thread Sthitaprajna
Thanks paras, after your comment i realized/found it is using managed
schema.

After reading solr documentations
https://lucene.apache.org/solr/guide/6_6/schema-factory-definition-in-solrconfig.html
Added on solrconfig.xml , reloaded and it works thanks



Thanks Erick Erickson & Alexandre Rafalovitch , you have also mentioned
same.

On Mon, Nov 11, 2019 at 2:28 PM Paras Lehana 
wrote:

> Hi Sthitaprajna,
>
> In Admin UI, select core and go to Schema. Select "title" and post the
> screenshot (try to host it). Do the same for "id".
>
> On Mon, 11 Nov 2019 at 09:14, Alexandre Rafalovitch 
> wrote:
>
> > You still have a mismatch between what you think the schema is
> > (uniqueKey=title) and message of uniqueKey being id. Focus on that. Try
> to
> > get schema FROM Solr instead og looking at one you are providing. Or look
> > in Admin UI what it shows for field title and for field id.
> >
> > Regards,
> > Alex
> >
> > On Mon, Nov 11, 2019, 2:30 PM Sthitaprajna, <
> iamonlyforu.frie...@gmail.com
> > >
> > wrote:
> >
> > >
> > >
> >
> https://stackoverflow.com/questions/58763657/solr-missing-mandatory-uniquekey-field-id-or-unknown-field?noredirect=1#comment103816164_58763657
> > >
> > > May be this will help ? I added screenshots.
> > >
> > > On Fri, 8 Nov 2019, 22:57 Alexandre Rafalovitch, 
> > > wrote:
> > >
> > > > Something does not make sense, because your schema defines "title" as
> > > > the uniqueKey field, but your message talks about "id". Are you
> > > > absolutely sure that the Solr/collection you get an error for is the
> > > > same Solr where you are checking the schema?
> > > >
> > > > Also, do you have a bit more of the error and stack trace. I find
> > > > "...or Unknown field" to be very puzzling. What are you trying to do
> > > > when you get this error?
> > > >
> > > > Regards,
> > > >   Alex.
> > > >
> > > > On Sat, 9 Nov 2019 at 01:05, Sthitaprajna <
> > iamonlyforu.frie...@gmail.com
> > > >
> > > > wrote:
> > > > >
> > > > > Thanks,
> > > > >
> > > > > I did reload after solr configuration upload to zk
> > > > > Yes i push the config set to zk and i can see all my changes are on
> > > cloud
> > > > > I turned off the managed schema
> > > > > Yes it has, ypu could have seen it if the attachment are
> available. I
> > > > have attached again may be it will be available.
> > > > >
> > > > > On Fri, 8 Nov 2019, 21:13 Erick Erickson,  >
> > > > wrote:
> > > > >>
> > > > >> Attachments are aggressively stripped by the mail server, so I
> can’t
> > > > see them.
> > > > >>
> > > > >> Possibilities
> > > > >> - you didn’t reload your core/collection
> > > > >> - you didn’t push the configset to Zookeeper if using SolrCloud
> > > > >> - you are using the managed schema, which uses a file called
> > > > “managed-schema” rather than classic, which uses schema.xml
> > > > >> - your input doesn’t really have a field “title”.
> > > > >> - the doc just doesn’t have a field called “title” in it when it’s
> > > sent
> > > > to Solr.
> > > > >>
> > > > >>
> > > > >> Best,
> > > > >> Erick
> > > > >>
> > > > >> > On Nov 8, 2019, at 4:41 AM, Sthitaprajna <
> > > > iamonlyforu.frie...@gmail.com> wrote:
> > > > >> >
> > > > >> > title
> > > > >>
> > > >
> > >
> >
>
>
> --
> --
> Regards,
>
> *Paras Lehana* [65871]
> Development Engineer, Auto-Suggest,
> IndiaMART Intermesh Ltd.
>
> 8th Floor, Tower A, Advant-Navis Business Park, Sector 142,
> Noida, UP, IN - 201303
>
> Mob.: +91-9560911996
> Work: 01203916600 | Extn:  *8173*
>
> --
> IMPORTANT:
> NEVER share your IndiaMART OTP/ Password with anyone.
>


-- 

*Regards$th!t@*


Re: Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-10 Thread Paras Lehana
Hi Sthitaprajna,

In Admin UI, select core and go to Schema. Select "title" and post the
screenshot (try to host it). Do the same for "id".

On Mon, 11 Nov 2019 at 09:14, Alexandre Rafalovitch 
wrote:

> You still have a mismatch between what you think the schema is
> (uniqueKey=title) and message of uniqueKey being id. Focus on that. Try to
> get schema FROM Solr instead og looking at one you are providing. Or look
> in Admin UI what it shows for field title and for field id.
>
> Regards,
> Alex
>
> On Mon, Nov 11, 2019, 2:30 PM Sthitaprajna,  >
> wrote:
>
> >
> >
> https://stackoverflow.com/questions/58763657/solr-missing-mandatory-uniquekey-field-id-or-unknown-field?noredirect=1#comment103816164_58763657
> >
> > May be this will help ? I added screenshots.
> >
> > On Fri, 8 Nov 2019, 22:57 Alexandre Rafalovitch, 
> > wrote:
> >
> > > Something does not make sense, because your schema defines "title" as
> > > the uniqueKey field, but your message talks about "id". Are you
> > > absolutely sure that the Solr/collection you get an error for is the
> > > same Solr where you are checking the schema?
> > >
> > > Also, do you have a bit more of the error and stack trace. I find
> > > "...or Unknown field" to be very puzzling. What are you trying to do
> > > when you get this error?
> > >
> > > Regards,
> > >   Alex.
> > >
> > > On Sat, 9 Nov 2019 at 01:05, Sthitaprajna <
> iamonlyforu.frie...@gmail.com
> > >
> > > wrote:
> > > >
> > > > Thanks,
> > > >
> > > > I did reload after solr configuration upload to zk
> > > > Yes i push the config set to zk and i can see all my changes are on
> > cloud
> > > > I turned off the managed schema
> > > > Yes it has, ypu could have seen it if the attachment are available. I
> > > have attached again may be it will be available.
> > > >
> > > > On Fri, 8 Nov 2019, 21:13 Erick Erickson, 
> > > wrote:
> > > >>
> > > >> Attachments are aggressively stripped by the mail server, so I can’t
> > > see them.
> > > >>
> > > >> Possibilities
> > > >> - you didn’t reload your core/collection
> > > >> - you didn’t push the configset to Zookeeper if using SolrCloud
> > > >> - you are using the managed schema, which uses a file called
> > > “managed-schema” rather than classic, which uses schema.xml
> > > >> - your input doesn’t really have a field “title”.
> > > >> - the doc just doesn’t have a field called “title” in it when it’s
> > sent
> > > to Solr.
> > > >>
> > > >>
> > > >> Best,
> > > >> Erick
> > > >>
> > > >> > On Nov 8, 2019, at 4:41 AM, Sthitaprajna <
> > > iamonlyforu.frie...@gmail.com> wrote:
> > > >> >
> > > >> > title
> > > >>
> > >
> >
>


-- 
-- 
Regards,

*Paras Lehana* [65871]
Development Engineer, Auto-Suggest,
IndiaMART Intermesh Ltd.

8th Floor, Tower A, Advant-Navis Business Park, Sector 142,
Noida, UP, IN - 201303

Mob.: +91-9560911996
Work: 01203916600 | Extn:  *8173*

-- 
IMPORTANT: 
NEVER share your IndiaMART OTP/ Password with anyone.


Re: Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-10 Thread Alexandre Rafalovitch
You still have a mismatch between what you think the schema is
(uniqueKey=title) and message of uniqueKey being id. Focus on that. Try to
get schema FROM Solr instead og looking at one you are providing. Or look
in Admin UI what it shows for field title and for field id.

Regards,
Alex

On Mon, Nov 11, 2019, 2:30 PM Sthitaprajna, 
wrote:

>
> https://stackoverflow.com/questions/58763657/solr-missing-mandatory-uniquekey-field-id-or-unknown-field?noredirect=1#comment103816164_58763657
>
> May be this will help ? I added screenshots.
>
> On Fri, 8 Nov 2019, 22:57 Alexandre Rafalovitch, 
> wrote:
>
> > Something does not make sense, because your schema defines "title" as
> > the uniqueKey field, but your message talks about "id". Are you
> > absolutely sure that the Solr/collection you get an error for is the
> > same Solr where you are checking the schema?
> >
> > Also, do you have a bit more of the error and stack trace. I find
> > "...or Unknown field" to be very puzzling. What are you trying to do
> > when you get this error?
> >
> > Regards,
> >   Alex.
> >
> > On Sat, 9 Nov 2019 at 01:05, Sthitaprajna  >
> > wrote:
> > >
> > > Thanks,
> > >
> > > I did reload after solr configuration upload to zk
> > > Yes i push the config set to zk and i can see all my changes are on
> cloud
> > > I turned off the managed schema
> > > Yes it has, ypu could have seen it if the attachment are available. I
> > have attached again may be it will be available.
> > >
> > > On Fri, 8 Nov 2019, 21:13 Erick Erickson, 
> > wrote:
> > >>
> > >> Attachments are aggressively stripped by the mail server, so I can’t
> > see them.
> > >>
> > >> Possibilities
> > >> - you didn’t reload your core/collection
> > >> - you didn’t push the configset to Zookeeper if using SolrCloud
> > >> - you are using the managed schema, which uses a file called
> > “managed-schema” rather than classic, which uses schema.xml
> > >> - your input doesn’t really have a field “title”.
> > >> - the doc just doesn’t have a field called “title” in it when it’s
> sent
> > to Solr.
> > >>
> > >>
> > >> Best,
> > >> Erick
> > >>
> > >> > On Nov 8, 2019, at 4:41 AM, Sthitaprajna <
> > iamonlyforu.frie...@gmail.com> wrote:
> > >> >
> > >> > title
> > >>
> >
>


Re: Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-10 Thread Sthitaprajna
https://stackoverflow.com/questions/58763657/solr-missing-mandatory-uniquekey-field-id-or-unknown-field?noredirect=1#comment103816164_58763657

May be this will help ? I added screenshots.

On Fri, 8 Nov 2019, 22:57 Alexandre Rafalovitch,  wrote:

> Something does not make sense, because your schema defines "title" as
> the uniqueKey field, but your message talks about "id". Are you
> absolutely sure that the Solr/collection you get an error for is the
> same Solr where you are checking the schema?
>
> Also, do you have a bit more of the error and stack trace. I find
> "...or Unknown field" to be very puzzling. What are you trying to do
> when you get this error?
>
> Regards,
>   Alex.
>
> On Sat, 9 Nov 2019 at 01:05, Sthitaprajna 
> wrote:
> >
> > Thanks,
> >
> > I did reload after solr configuration upload to zk
> > Yes i push the config set to zk and i can see all my changes are on cloud
> > I turned off the managed schema
> > Yes it has, ypu could have seen it if the attachment are available. I
> have attached again may be it will be available.
> >
> > On Fri, 8 Nov 2019, 21:13 Erick Erickson, 
> wrote:
> >>
> >> Attachments are aggressively stripped by the mail server, so I can’t
> see them.
> >>
> >> Possibilities
> >> - you didn’t reload your core/collection
> >> - you didn’t push the configset to Zookeeper if using SolrCloud
> >> - you are using the managed schema, which uses a file called
> “managed-schema” rather than classic, which uses schema.xml
> >> - your input doesn’t really have a field “title”.
> >> - the doc just doesn’t have a field called “title” in it when it’s sent
> to Solr.
> >>
> >>
> >> Best,
> >> Erick
> >>
> >> > On Nov 8, 2019, at 4:41 AM, Sthitaprajna <
> iamonlyforu.frie...@gmail.com> wrote:
> >> >
> >> > title
> >>
>


Re: Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-08 Thread Alexandre Rafalovitch
Something does not make sense, because your schema defines "title" as
the uniqueKey field, but your message talks about "id". Are you
absolutely sure that the Solr/collection you get an error for is the
same Solr where you are checking the schema?

Also, do you have a bit more of the error and stack trace. I find
"...or Unknown field" to be very puzzling. What are you trying to do
when you get this error?

Regards,
  Alex.

On Sat, 9 Nov 2019 at 01:05, Sthitaprajna  wrote:
>
> Thanks,
>
> I did reload after solr configuration upload to zk
> Yes i push the config set to zk and i can see all my changes are on cloud
> I turned off the managed schema
> Yes it has, ypu could have seen it if the attachment are available. I have 
> attached again may be it will be available.
>
> On Fri, 8 Nov 2019, 21:13 Erick Erickson,  wrote:
>>
>> Attachments are aggressively stripped by the mail server, so I can’t see 
>> them.
>>
>> Possibilities
>> - you didn’t reload your core/collection
>> - you didn’t push the configset to Zookeeper if using SolrCloud
>> - you are using the managed schema, which uses a file called 
>> “managed-schema” rather than classic, which uses schema.xml
>> - your input doesn’t really have a field “title”.
>> - the doc just doesn’t have a field called “title” in it when it’s sent to 
>> Solr.
>>
>>
>> Best,
>> Erick
>>
>> > On Nov 8, 2019, at 4:41 AM, Sthitaprajna  
>> > wrote:
>> >
>> > title
>>


Re: Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-08 Thread Sthitaprajna
Thanks,

I did reload after solr configuration upload to zk
Yes i push the config set to zk and i can see all my changes are on cloud
I turned off the managed schema
Yes it has, ypu could have seen it if the attachment are available. I have
attached again may be it will be available.

On Fri, 8 Nov 2019, 21:13 Erick Erickson,  wrote:

> Attachments are aggressively stripped by the mail server, so I can’t see
> them.
>
> Possibilities
> - you didn’t reload your core/collection
> - you didn’t push the configset to Zookeeper if using SolrCloud
> - you are using the managed schema, which uses a file called
> “managed-schema” rather than classic, which uses schema.xml
> - your input doesn’t really have a field “title”.
> - the doc just doesn’t have a field called “title” in it when it’s sent to
> Solr.
>
>
> Best,
> Erick
>
> > On Nov 8, 2019, at 4:41 AM, Sthitaprajna 
> wrote:
> >
> > title
>
>


Re: Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-08 Thread Erick Erickson
Attachments are aggressively stripped by the mail server, so I can’t see them.

Possibilities
- you didn’t reload your core/collection
- you didn’t push the configset to Zookeeper if using SolrCloud
- you are using the managed schema, which uses a file called “managed-schema” 
rather than classic, which uses schema.xml
- your input doesn’t really have a field “title”.
- the doc just doesn’t have a field called “title” in it when it’s sent to Solr.


Best,
Erick

> On Nov 8, 2019, at 4:41 AM, Sthitaprajna  
> wrote:
> 
> title



Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-08 Thread Sthitaprajna
I am using solr 8.1.1

Created core/collection. Then after update schema & solrconfig i am getting
these errors.

Before adding id field to schema.xml







[image: sol1.PNG]

After adding id field on schema.xml


[image: sol2.PNG]

Here are my schema.xml & solrconfig.xml, what is wrong i am doing ?

schema.xml :







title





solrconfig:




  
${tests.luceneMatchVersion:LUCENE_CURRENT}

  


  ${solr.ulog.dir:}
  

 
${solr.autoCommit.maxTime:15000}
   false


 
${solr.autoSoftCommit.maxTime:-1}
 
   

  

  

  
  /select
  title:*
  
  server-enabled.txt
  

  

  

  

true
 
   


Solr missing mandatory uniqueKey field: id or Unknown field

2019-11-08 Thread sthita



I am using solr 8.1.1

Created core/collection. Then after update schema & solrconfig i am getting
these errors. 
Before adding id field to schema.xml
 
After adding id field on schema.xml 
 

Here are my schema.xml & solrconfig.xml, what is wrong i am doing ?

schema.xml : 






title





solrconfig: 




 
${tests.luceneMatchVersion:LUCENE_CURRENT}
  

  


  ${solr.ulog.dir:}
  

  
${solr.autoCommit.maxTime:15000} 
   false 


  
${solr.autoSoftCommit.maxTime:-1} 
 
   

  

  

  
  /select
  title:*
  
  server-enabled.txt
  

  

  

  

true
 
   



--
Sent from: https://lucene.472066.n3.nabble.com/Solr-User-f472068.html