RE: Multiple Schema File

2008-06-05 Thread Sachit P. Menon
Hi Noble, Climbingrose,

 

Thanks for that reply.

 

We can have a scenario like this:

 

We have a story with attributes like story id, title, headline, author name,
etc. Here story id will be a unique key. 

We also have an author profile which contains attributes like author name,
address, etc.

Here author name will be a unique key.

 

So if we continue to have core fields of the model we have a situation of
having the field author name which is unique id for 1 core model and ordinary
attribute for another core model.

 

How can we implement this? 

And can we have multiple unique ids in the same file?

 

Thanks and Regards

Sachit 

 

-Original Message-
From: climbingrose [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 11:19 AM
To: solr-user@lucene.apache.org
Subject: Re: Multiple Schema File

 

Hi Sachit,

 

I think what you could do is to create all the "core fields" of your models

such as username, role, title, body, images... You can name them with prefix

like user.username, user.role, article.title, article.body... If you want to

dynamically add more fields to your schema, you can use dynamic fields and

keep a mapping between your model's properties and these fields somewhere.

Have a look at the default schema.xml for examples. I did use this approach

for a previous project and it worked fine for me.

 

Cheers,

Cuong

 

On Thu, Jun 5, 2008 at 3:43 PM, Sachit P. Menon <[EMAIL PROTECTED]>

wrote:

 

> Hi folks,

> 

> 

> 

> I have a scenario as follows:

> 

> 

> 

> I have a CMS where in I'm storing all the contents. I need to index all

> these

> contents and have a search on these indexes. For indexing, I can define a

> schema for all the contents. Some of the properties are like title,

> headline,

> body, keywords, images, etc.

> 

> Now I have a user management wherein I store all the user information. I

> need

> to index this also. This may have properties like user name, role, joining

> date, etc.

> 

> 

> 

> I want to use only one Solr instance. That means I can have only one schema

> file.

> 

> How can I define all these totally different properties in one schema file?

> 

> The unique id storage for content and user management may also be

> different.

> How can I achieve this?

> 

> 

> 

> 

> 

> Thanks and Regards

> 

> Sachit 

> 

> DISCLAIMER:

> This message (including attachment if any) is confidential and may be

> privileged. If you have received this message by mistake please notify the

> sender by return e-mail and delete this message from your system. Any

> unauthorized use or dissemination of this message in whole or in part is

> strictly prohibited.

> E-mail may contain viruses. Before opening attachments please check them

> for viruses and defects. While MindTree Limited (MindTree) has put in place

> checks to minimize the risks, MindTree will not be responsible for any

> viruses or defects or any forwarded attachments emanating either from
within

> MindTree or outside.

> Please note that e-mails are susceptible to change and MindTree shall not

> be liable for any improper, untimely or incomplete transmission.

> MindTree reserves the right to monitor and review the content of all

> messages sent to or from MindTree e-mail address. Messages sent to or from

> this e-mail address may be stored on the MindTree e-mail system or else

> where.

> 

 

 

 

-- 

Regards,

 

Cuong Hoang



DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. If you have received this message by mistake please notify the 
sender by return e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for 
viruses and defects. While MindTree Limited (MindTree) has put in place checks 
to minimize the risks, MindTree will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or 
outside.
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages 
sent to or from MindTree e-mail address. Messages sent to or from this e-mail 
address may be stored on the MindTree e-mail system or else where.


Re: Multiple Schema File

2008-06-04 Thread climbingrose
Hi Sachit,

I think what you could do is to create all the "core fields" of your models
such as username, role, title, body, images... You can name them with prefix
like user.username, user.role, article.title, article.body... If you want to
dynamically add more fields to your schema, you can use dynamic fields and
keep a mapping between your model's properties and these fields somewhere.
Have a look at the default schema.xml for examples. I did use this approach
for a previous project and it worked fine for me.

Cheers,
Cuong

On Thu, Jun 5, 2008 at 3:43 PM, Sachit P. Menon <[EMAIL PROTECTED]>
wrote:

> Hi folks,
>
>
>
> I have a scenario as follows:
>
>
>
> I have a CMS where in I'm storing all the contents. I need to index all
> these
> contents and have a search on these indexes. For indexing, I can define a
> schema for all the contents. Some of the properties are like title,
> headline,
> body, keywords, images, etc.
>
> Now I have a user management wherein I store all the user information. I
> need
> to index this also. This may have properties like user name, role, joining
> date, etc.
>
>
>
> I want to use only one Solr instance. That means I can have only one schema
> file.
>
> How can I define all these totally different properties in one schema file?
>
> The unique id storage for content and user management may also be
> different.
> How can I achieve this?
>
>
>
>
>
> Thanks and Regards
>
> Sachit P. Menon| Programmer Analyst| MindTree Ltd. |West Campus, Phase-1,
> Global Village, RVCE Post, Mysore Road, Bangalore-560 059, INDIA |Voice +91
> 80 26264000 |Extn  64872|Fax +91 80 26264100 | Mob : +91
> 9986747356|www.mindtree.com
> <
> https://indiamail.mindtree.com/exchweb/bin/redir.asp?URL=http://www.mindtree
> .com/>  |
>
>
>
>
>
> DISCLAIMER:
> This message (including attachment if any) is confidential and may be
> privileged. If you have received this message by mistake please notify the
> sender by return e-mail and delete this message from your system. Any
> unauthorized use or dissemination of this message in whole or in part is
> strictly prohibited.
> E-mail may contain viruses. Before opening attachments please check them
> for viruses and defects. While MindTree Limited (MindTree) has put in place
> checks to minimize the risks, MindTree will not be responsible for any
> viruses or defects or any forwarded attachments emanating either from within
> MindTree or outside.
> Please note that e-mails are susceptible to change and MindTree shall not
> be liable for any improper, untimely or incomplete transmission.
> MindTree reserves the right to monitor and review the content of all
> messages sent to or from MindTree e-mail address. Messages sent to or from
> this e-mail address may be stored on the MindTree e-mail system or else
> where.
>



-- 
Regards,

Cuong Hoang


Re: Multiple Schema File

2008-06-04 Thread Noble Paul നോബിള്‍ नोब्ळ्
hi ,
use multi-core Solr. Each core can have its own schema.

If possible the DISCLAIMER can be dropped.
--Noble

On Thu, Jun 5, 2008 at 11:13 AM, Sachit P. Menon
<[EMAIL PROTECTED]> wrote:
> Hi folks,
>
>
>
> I have a scenario as follows:
>
>
>
> I have a CMS where in I'm storing all the contents. I need to index all these
> contents and have a search on these indexes. For indexing, I can define a
> schema for all the contents. Some of the properties are like title, headline,
> body, keywords, images, etc.
>
> Now I have a user management wherein I store all the user information. I need
> to index this also. This may have properties like user name, role, joining
> date, etc.
>
>
>
> I want to use only one Solr instance. That means I can have only one schema
> file.
>
> How can I define all these totally different properties in one schema file?
>
> The unique id storage for content and user management may also be different.
> How can I achieve this?
>
>
>
>
>
> Thanks and Regards
>
> Sachit P. Menon| Programmer Analyst| MindTree Ltd. |West Campus, Phase-1,
> Global Village, RVCE Post, Mysore Road, Bangalore-560 059, INDIA |Voice +91
> 80 26264000 |Extn  64872|Fax +91 80 26264100 | Mob : +91
> 9986747356|www.mindtree.com
>  .com/>  |
>
>
>
>
>
> DISCLAIMER:
> This message (including attachment if any) is confidential and may be 
> privileged. If you have received this message by mistake please notify the 
> sender by return e-mail and delete this message from your system. Any 
> unauthorized use or dissemination of this message in whole or in part is 
> strictly prohibited.
> E-mail may contain viruses. Before opening attachments please check them for 
> viruses and defects. While MindTree Limited (MindTree) has put in place 
> checks to minimize the risks, MindTree will not be responsible for any 
> viruses or defects or any forwarded attachments emanating either from within 
> MindTree or outside.
> Please note that e-mails are susceptible to change and MindTree shall not be 
> liable for any improper, untimely or incomplete transmission.
> MindTree reserves the right to monitor and review the content of all messages 
> sent to or from MindTree e-mail address. Messages sent to or from this e-mail 
> address may be stored on the MindTree e-mail system or else where.
>



-- 
--Noble Paul


Multiple Schema File

2008-06-04 Thread Sachit P. Menon
Hi folks,

 

I have a scenario as follows: 

 

I have a CMS where in I'm storing all the contents. I need to index all these
contents and have a search on these indexes. For indexing, I can define a
schema for all the contents. Some of the properties are like title, headline,
body, keywords, images, etc. 

Now I have a user management wherein I store all the user information. I need
to index this also. This may have properties like user name, role, joining
date, etc. 

 

I want to use only one Solr instance. That means I can have only one schema
file. 

How can I define all these totally different properties in one schema file? 

The unique id storage for content and user management may also be different.
How can I achieve this? 

 

 

Thanks and Regards

Sachit P. Menon| Programmer Analyst| MindTree Ltd. |West Campus, Phase-1,
Global Village, RVCE Post, Mysore Road, Bangalore-560 059, INDIA |Voice +91
80 26264000 |Extn  64872|Fax +91 80 26264100 | Mob : +91
9986747356|www.mindtree.com
  |

 



DISCLAIMER:
This message (including attachment if any) is confidential and may be 
privileged. If you have received this message by mistake please notify the 
sender by return e-mail and delete this message from your system. Any 
unauthorized use or dissemination of this message in whole or in part is 
strictly prohibited.
E-mail may contain viruses. Before opening attachments please check them for 
viruses and defects. While MindTree Limited (MindTree) has put in place checks 
to minimize the risks, MindTree will not be responsible for any viruses or 
defects or any forwarded attachments emanating either from within MindTree or 
outside.
Please note that e-mails are susceptible to change and MindTree shall not be 
liable for any improper, untimely or incomplete transmission.
MindTree reserves the right to monitor and review the content of all messages 
sent to or from MindTree e-mail address. Messages sent to or from this e-mail 
address may be stored on the MindTree e-mail system or else where.