RE: 2 IDs in schema.xml

2008-07-16 Thread dudes dudes

oh right so the uniquekey is used by Solr to do internal house keeping ?  

and also I suppose it is not possible to have 2 schemas on one solr  ? 

thnx
ak

 Date: Wed, 16 Jul 2008 03:07:41 +0530
 From: [EMAIL PROTECTED]
 To: solr-user@lucene.apache.org
 Subject: Re: 2 IDs in schema.xml
 
 Multiple uniqueKeys are not supported. You must use only one field as the
 uniqueKey.
 
 On Tue, Jul 15, 2008 at 11:52 PM, dudes dudes  wrote:
 

 Hi

 With some strange reason hotmail doesn't send any XML tags through. I have
 attached a file with all the necessary xml tags there , thanks :)

 I have a rare situation and I'm not too sure how to resolve it.
  I have defined 2 fields.. one is call userID and the other one is called
 companyID in schema.xml file Please see part 1 of the attached xml file.


 Then I have both of them fields specified as uniquekeys . PLease see part 2
 of the attached document.


 when I try to post a test6.xml ( ie java -jar post.jar test6.xml) it gives
 me the following error:

 SimplePostTool:FATAL:Solr returned an error:
 Document_null_missing_required_field_userID

 However; if I replace CompanyID with userID under test6.xml file, it
 commits without any problems.

 any thoughts about this ?

 Many thanks to all
 ak


 _
 The John Lewis Clearance - save up to 50% with FREE delivery
 http://clk.atdmt.com/UKM/go/101719806/direct/01/
 
 
 
 
 -- 
 Regards,
 Shalin Shekhar Mangar.

_
The John Lewis Clearance - save up to 50% with FREE delivery
http://clk.atdmt.com/UKM/go/101719806/direct/01/

Re: 2 IDs in schema.xml

2008-07-16 Thread Erik Hatcher


On Jul 16, 2008, at 3:29 AM, dudes dudes wrote:

and also I suppose it is not possible to have 2 schemas on one solr  ?


You can have multiple cores per Solr webapp (see MultiCore in the  
wiki).  But each core has a single schema.


Erik



RE: 2 IDs in schema.xml

2008-07-16 Thread dudes dudes

thanks, I will have a try and for any technical issues I will bother you guys 
again :)

ak

 From: [EMAIL PROTECTED]
 To: solr-user@lucene.apache.org
 Subject: Re: 2 IDs in schema.xml
 Date: Wed, 16 Jul 2008 04:50:18 -0400
 
 
 On Jul 16, 2008, at 3:29 AM, dudes dudes wrote:
 and also I suppose it is not possible to have 2 schemas on one solr  ?
 
 You can have multiple cores per Solr webapp (see MultiCore in the  
 wiki).  But each core has a single schema.
 
   Erik
 

_
Find the best and worst places on the planet
http://clk.atdmt.com/UKM/go/101719807/direct/01/

2 IDs in schema.xml

2008-07-15 Thread dudes dudes

Hi

With some strange reason hotmail doesn't send any XML tags through. I have 
attached a file with all the necessary xml tags there , thanks :)

I have a rare situation and I'm not too sure how to resolve it.
 I have defined 2 fields.. one is call userID and the other one is called 
companyID in schema.xml file Please see part 1 of the attached xml file.


Then I have both of them fields specified as uniquekeys . PLease see part 2 of 
the attached document.


when I try to post a test6.xml ( ie java -jar post.jar test6.xml) it gives me 
the following error:

SimplePostTool:FATAL:Solr returned an error: 
Document_null_missing_required_field_userID

However; if I replace CompanyID with userID under test6.xml file, it commits 
without any problems.

any thoughts about this ?

Many thanks to all
ak


_
The John Lewis Clearance - save up to 50% with FREE delivery
http://clk.atdmt.com/UKM/go/101719806/direct/01/
//I have defined 2 fields as shown bellow:


 field name=userID type=string indexed=true stored=true required=false /
 field name=companyID type=string indexed=true stored=true  required=false /

//UniqueKeys 

  uniqueKeyuserID/uniqueKey
  uniqueKeycompanyID/uniqueKey

//copy field commands

copyField source=userID dest=text/
copyField source=companyID dest=text/




add
doc
   field name=companyid44/field 
   /doc
/add


Re: 2 IDs in schema.xml

2008-07-15 Thread Shalin Shekhar Mangar
Multiple uniqueKeys are not supported. You must use only one field as the
uniqueKey.

On Tue, Jul 15, 2008 at 11:52 PM, dudes dudes [EMAIL PROTECTED] wrote:


 Hi

 With some strange reason hotmail doesn't send any XML tags through. I have
 attached a file with all the necessary xml tags there , thanks :)

 I have a rare situation and I'm not too sure how to resolve it.
  I have defined 2 fields.. one is call userID and the other one is called
 companyID in schema.xml file Please see part 1 of the attached xml file.


 Then I have both of them fields specified as uniquekeys . PLease see part 2
 of the attached document.


 when I try to post a test6.xml ( ie java -jar post.jar test6.xml) it gives
 me the following error:

 SimplePostTool:FATAL:Solr returned an error:
 Document_null_missing_required_field_userID

 However; if I replace CompanyID with userID under test6.xml file, it
 commits without any problems.

 any thoughts about this ?

 Many thanks to all
 ak


 _
 The John Lewis Clearance - save up to 50% with FREE delivery
 http://clk.atdmt.com/UKM/go/101719806/direct/01/




-- 
Regards,
Shalin Shekhar Mangar.